7853
|
1 |
#
|
|
2 |
# spec file for package libgksu
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
8564
|
8 |
# Owner: jim
|
|
9 |
#
|
7853
|
10 |
Name: libgksu1.2
|
|
11 |
License: GPL
|
|
12 |
Group: Development/Libraries
|
|
13 |
Version: 1.3.1
|
|
14 |
Release: 1
|
|
15 |
Distribution: Java Desktop System
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Simple API for embedded_su, pfexec and sudo (optional)
|
|
18 |
Source: http://people.debian.org/~kov/gksu/libgksu1.2/%{name}-%{version}.tar.gz
|
|
19 |
Patch1: libgksu1.2-01-Makefile.diff
|
8393
|
20 |
Patch2: libgksu1.2-02-config.diff
|
7853
|
21 |
Patch3: libgksu1.2-03-mkdtemp.diff
|
|
22 |
Patch4: libgksu1.2-04-rbac-support.diff
|
8265
|
23 |
Patch5: libgksu1.2-05-gnu_gettext.diff
|
7853
|
24 |
URL: http://www.nongnu.org/gksu/
|
|
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
26 |
Docdir: %{_defaultdocdir}/%{name}
|
|
27 |
Autoreqprov: on
|
|
28 |
Prereq: GConf
|
|
29 |
|
|
30 |
|
|
31 |
BuildRequires: gettext, bison, pkgconfig, glib2-devel, gtk-doc
|
|
32 |
|
|
33 |
%description
|
|
34 |
LibGKSu is a library from the gksu program that provides a simple API for
|
|
35 |
using su and sudo in programs that need to execute tasks as other users.
|
|
36 |
It provides X authentication facilities for running programs in a X session.
|
|
37 |
|
|
38 |
%package devel
|
|
39 |
Summary: Header files, libraries and development documentation for %{name}.
|
|
40 |
Group: Development/Libraries
|
|
41 |
Requires: %{name} = %{version}-%{release}
|
|
42 |
|
|
43 |
%description devel
|
|
44 |
This package contains the header files, static libraries and development
|
|
45 |
documentation for %{name}. If you like to develop programs using %{name},
|
|
46 |
you will need to install %{name}-devel.
|
|
47 |
|
|
48 |
%prep
|
|
49 |
%setup -q
|
|
50 |
%patch1 -p1
|
|
51 |
%patch2 -p1
|
|
52 |
%patch3 -p1
|
|
53 |
%patch4 -p1
|
8265
|
54 |
%patch5 -p1
|
7853
|
55 |
|
|
56 |
%build
|
|
57 |
%ifos linux
|
|
58 |
if [ -x /usr/bin/getconf ]; then
|
|
59 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
60 |
fi
|
|
61 |
%else
|
|
62 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
63 |
%endif
|
|
64 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
65 |
CPUS=1
|
|
66 |
fi
|
|
67 |
|
8265
|
68 |
glib-gettextize -f
|
|
69 |
aclocal $ACLOCAL_FLAGS
|
|
70 |
libtoolize --force
|
7853
|
71 |
# automake -a -c -f
|
8225
|
72 |
autoconf
|
7853
|
73 |
|
|
74 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
75 |
./configure \
|
|
76 |
--prefix=%{_prefix} \
|
|
77 |
--sysconfdir=%{_sysconfdir} \
|
|
78 |
--libexecdir=%{_libexecdir} \
|
|
79 |
--mandir=%{_mandir} \
|
|
80 |
--disable-scrollkeeper
|
|
81 |
make -j $CPUS
|
|
82 |
|
|
83 |
%install
|
|
84 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
85 |
|
|
86 |
%post
|
|
87 |
/sbin/ldconfig 2>/dev/null
|
|
88 |
|
|
89 |
%postun
|
|
90 |
/sbin/ldconfig 2>/dev/null
|
|
91 |
|
|
92 |
%clean
|
|
93 |
# rm -rf $RPM_BUILD_ROOT
|
|
94 |
|
|
95 |
%files
|
|
96 |
%defattr(-, root, root)
|
|
97 |
%doc AUTHORS ChangeLog COPYING INSTALL
|
|
98 |
%{_libdir}/libgksu*.so.*
|
|
99 |
%{_libdir}/libgksu*/
|
|
100 |
%{_datadir}/gtk-doc/html/libgksu*/
|
|
101 |
%{_datadir}/locale/*/*/libgksu*
|
|
102 |
|
|
103 |
%files devel
|
|
104 |
%defattr(-, root, root)
|
|
105 |
%{_includedir}/gksu*.h
|
|
106 |
%{_libdir}/libgksu*.a
|
|
107 |
%{_libdir}/libgksu*.so
|
|
108 |
%{_libdir}/pkgconfig/libgksu*pc
|
|
109 |
# %exclude %{_libdir}/libgksu*.la
|
|
110 |
|
|
111 |
%changelog
|
8393
|
112 |
* Sat Oct 21 2006 Jim Li <[email protected]>
|
|
113 |
- reorg all patches
|
|
114 |
- Put all configure.ac changes into config.diff
|
|
115 |
- Put all gksu-context.c changes into rbac-support.diff
|
|
116 |
- remove forkpty.diff since it already exists in rbac-support.diff.
|
|
117 |
- remove package_name.diff since it already exists in rbac-support.diff.
|
8303
|
118 |
* Tue Oct 10 2006 [email protected]
|
8302
|
119 |
- Add patch, 06-package_name, to use PACKAGE_NAME from config.h in as PACKAGE
|
|
120 |
is incorrectly expanded by the preprocessor.
|
|
121 |
* Wed Oct 04 2006 [email protected]
|
8265
|
122 |
- Add patch, 04-gnu_gettext, to use GNU gettext. Add associated autofoo.
|
8225
|
123 |
* Thu Sep 28 2006 Darren Kenny <[email protected]>
|
|
124 |
- Run autoconf since we're patching configure.ac to look for libsecdb
|
7853
|
125 |
* Sat Apr 08 2006 Dries Verachtert <[email protected]> - 1.3.7-1.2
|
|
126 |
- Rebuild for Fedora Core 5.
|
|
127 |
* Tue Dec 06 2005 Dries Verachtert <[email protected]> - 1.3.7-1
|
|
128 |
- Initial package.
|