base-specs/libgksu.spec
author gman
Thu, 30 Sep 2010 21:37:28 +0000
branchgnome-2-30
changeset 20130 c7dfc176dcbd
parent 17893 36619080451b
child 21083 de7054b6aef0
child 21297 4f167a4bee11
permissions -rw-r--r--
2010-10-01 Glynn Foster <[email protected]> * specs/SUNWos-welcome.spec: Bump to 1.0.6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package libgksu
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16426
diff changeset
     8
%define owner lin
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
16426
6e0af232ec80 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16206
diff changeset
    10
6e0af232ec80 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16206
diff changeset
    11
%define OSR 4532:1.x
6e0af232ec80 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16206
diff changeset
    12
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Name:         libgksu1.2
14564
7553ba655f1f 2008-11-06 Jim Li <[email protected]>
jim
parents: 14422
diff changeset
    14
License:      LGPL v2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Group:        Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Version:      1.3.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Distribution: Java Desktop System
17893
36619080451b 2010-04-21 Christian Kelly <[email protected]>
chrisk
parents: 17865
diff changeset
    19
Vendor:       www.nongnu.org/gksu
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Summary:      Simple API for embedded_su, pfexec and sudo (optional)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Source:       http://people.debian.org/~kov/gksu/old_stuff/libgksu1.2/%{name}-%{version}.tar.gz
15334
a28a390c68a7 2009-03-10 Harry Lu <[email protected]>
harrylu
parents: 14564
diff changeset
    22
# date:2006-10-21 owner:lin type:feature
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Patch1:	      libgksu1.2-01-Makefile.diff
15334
a28a390c68a7 2009-03-10 Harry Lu <[email protected]>
harrylu
parents: 14564
diff changeset
    24
# date:2006-10-21 owner:lin type:feature
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Patch2:	      libgksu1.2-02-config.diff
15334
a28a390c68a7 2009-03-10 Harry Lu <[email protected]>
harrylu
parents: 14564
diff changeset
    26
# date:2006-10-21 owner:lin type:feature
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Patch3:	      libgksu1.2-03-mkdtemp.diff
15334
a28a390c68a7 2009-03-10 Harry Lu <[email protected]>
harrylu
parents: 14564
diff changeset
    28
# date:2006-10-21 owner:lin type:feature
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
Patch4:	      libgksu1.2-04-rbac-support.diff
15334
a28a390c68a7 2009-03-10 Harry Lu <[email protected]>
harrylu
parents: 14564
diff changeset
    30
# date:2006-10-21 owner:lin type:feature
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Patch5:       libgksu1.2-05-gnu_gettext.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
URL:          http://www.nongnu.org/gksu/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Docdir:       %{_defaultdocdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Prereq:       GConf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
BuildRequires: gettext, bison, pkgconfig, glib2-devel, gtk-doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
LibGKSu is a library from the gksu program that provides a simple API for
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
using su and sudo in programs that need to execute tasks as other users.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
It provides X authentication facilities for running programs in a X session.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
Summary: Header files, libraries and development documentation for %{name}.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
Group: Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
Requires: %{name} = %{version}-%{release}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
This package contains the header files, static libraries and development
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
documentation for %{name}. If you like to develop programs using %{name},
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
you will need to install %{name}-devel.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%patch2 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%patch3 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%patch4 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
%patch5 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
16206
5b6c20a76753 2009-08-05 Lin Ma <[email protected]>
lin
parents: 15334
diff changeset
    76
# Automake will fail without these files.
5b6c20a76753 2009-08-05 Lin Ma <[email protected]>
lin
parents: 15334
diff changeset
    77
touch NEWS README
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
glib-gettextize -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
aclocal $ACLOCAL_FLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
libtoolize --force
16206
5b6c20a76753 2009-08-05 Lin Ma <[email protected]>
lin
parents: 15334
diff changeset
    81
automake -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
CFLAGS="$RPM_OPT_FLAGS" \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
  ./configure \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
	--prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
	--sysconfdir=%{_sysconfdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
        --libexecdir=%{_libexecdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
        --mandir=%{_mandir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
	--disable-scrollkeeper
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
make -i install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
/sbin/ldconfig 2>/dev/null
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
/sbin/ldconfig 2>/dev/null
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
# rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%doc AUTHORS ChangeLog COPYING INSTALL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%{_libdir}/libgksu*.so.*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%{_libdir}/libgksu*/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%{_datadir}/gtk-doc/html/libgksu*/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%{_datadir}/locale/*/*/libgksu*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%{_includedir}/gksu*.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
%{_libdir}/libgksu*.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
%{_libdir}/libgksu*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
%{_libdir}/pkgconfig/libgksu*pc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
# %exclude %{_libdir}/libgksu*.la
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
%changelog
16206
5b6c20a76753 2009-08-05 Lin Ma <[email protected]>
lin
parents: 15334
diff changeset
   122
* Wed Aug 05 2009 - [email protected]
5b6c20a76753 2009-08-05 Lin Ma <[email protected]>
lin
parents: 15334
diff changeset
   123
- Updated 01, 02 patches and spec to fix gettext issue.
15334
a28a390c68a7 2009-03-10 Harry Lu <[email protected]>
harrylu
parents: 14564
diff changeset
   124
* Tue Mar 10 2009 - [email protected]
a28a390c68a7 2009-03-10 Harry Lu <[email protected]>
harrylu
parents: 14564
diff changeset
   125
- Change owner to Lin Ma
13658
1900cec8d1b2 2008-09-18 Li Yuan <[email protected]>
liyuan
parents: 9931
diff changeset
   126
* Thu Sep 18 2008 - [email protected]
1900cec8d1b2 2008-09-18 Li Yuan <[email protected]>
liyuan
parents: 9931
diff changeset
   127
- Add patch libgksu1.2-06-exit.diff. Quit gksu after launch the child process.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
* Sun Jan 28 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
- fix download url
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
* Sat Oct 21 2006 Jim Li <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
- reorg all patches
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
- Put all configure.ac changes into config.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
- Put all gksu-context.c changes into rbac-support.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
- remove forkpty.diff since it already exists in rbac-support.diff.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
- remove package_name.diff since it already exists in rbac-support.diff.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
* Tue Oct 10 2006 [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
- Add patch, 06-package_name, to use PACKAGE_NAME from config.h in as PACKAGE
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
  is incorrectly expanded by the preprocessor.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
* Wed Oct 04 2006 [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
- Add patch, 04-gnu_gettext, to use GNU gettext. Add associated autofoo.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
* Thu Sep 28 2006 Darren Kenny <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
- Run autoconf since we're patching configure.ac to look for libsecdb
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
* Sat Apr 08 2006 Dries Verachtert <[email protected]> - 1.3.7-1.2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
- Rebuild for Fedora Core 5.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
* Tue Dec 06 2005 Dries Verachtert <[email protected]> - 1.3.7-1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
- Initial package.