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