author | dc144907 |
Tue, 10 Oct 2006 09:50:50 +0000 | |
changeset 8303 | 16fd4d40212e |
parent 8302 | 43c2d0935865 |
child 8393 | 96b43c2324f8 |
permissions | -rw-r--r-- |
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 |
# |
|
8 |
Name: libgksu1.2 |
|
9 |
License: GPL |
|
10 |
Group: Development/Libraries |
|
11 |
Version: 1.3.1 |
|
12 |
Release: 1 |
|
13 |
Distribution: Java Desktop System |
|
14 |
Vendor: Sun Microsystems, Inc. |
|
15 |
Summary: Simple API for embedded_su, pfexec and sudo (optional) |
|
16 |
Source: http://people.debian.org/~kov/gksu/libgksu1.2/%{name}-%{version}.tar.gz |
|
17 |
Patch1: libgksu1.2-01-Makefile.diff |
|
18 |
Patch2: libgksu1.2-02-forkpty.diff |
|
19 |
Patch3: libgksu1.2-03-mkdtemp.diff |
|
20 |
Patch4: libgksu1.2-04-rbac-support.diff |
|
8265 | 21 |
Patch5: libgksu1.2-05-gnu_gettext.diff |
8302 | 22 |
Patch6: libgksu1.2-06-package_name.diff |
7853 | 23 |
URL: http://www.nongnu.org/gksu/ |
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
25 |
Docdir: %{_defaultdocdir}/%{name} |
|
26 |
Autoreqprov: on |
|
27 |
Prereq: GConf |
|
28 |
||
29 |
||
30 |
BuildRequires: gettext, bison, pkgconfig, glib2-devel, gtk-doc |
|
31 |
||
32 |
%description |
|
33 |
LibGKSu is a library from the gksu program that provides a simple API for |
|
34 |
using su and sudo in programs that need to execute tasks as other users. |
|
35 |
It provides X authentication facilities for running programs in a X session. |
|
36 |
||
37 |
%package devel |
|
38 |
Summary: Header files, libraries and development documentation for %{name}. |
|
39 |
Group: Development/Libraries |
|
40 |
Requires: %{name} = %{version}-%{release} |
|
41 |
||
42 |
%description devel |
|
43 |
This package contains the header files, static libraries and development |
|
44 |
documentation for %{name}. If you like to develop programs using %{name}, |
|
45 |
you will need to install %{name}-devel. |
|
46 |
||
47 |
%prep |
|
48 |
%setup -q |
|
49 |
%patch1 -p1 |
|
50 |
%patch2 -p1 |
|
51 |
%patch3 -p1 |
|
52 |
%patch4 -p1 |
|
8265 | 53 |
%patch5 -p1 |
8302 | 54 |
%patch6 -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 |
|
8303 | 112 |
* Tue Oct 10 2006 [email protected] |
8302 | 113 |
- Add patch, 06-package_name, to use PACKAGE_NAME from config.h in as PACKAGE |
114 |
is incorrectly expanded by the preprocessor. |
|
115 |
||
116 |
* Wed Oct 04 2006 [email protected] |
|
8265 | 117 |
- Add patch, 04-gnu_gettext, to use GNU gettext. Add associated autofoo. |
118 |
||
8225 | 119 |
* Thu Sep 28 2006 Darren Kenny <[email protected]> |
120 |
- Run autoconf since we're patching configure.ac to look for libsecdb |
|
8227
427e11f1bac5
Add blank line in %changelog to be consistent with earlier entries.
dc144907
parents:
8225
diff
changeset
|
121 |
|
7853 | 122 |
* Sat Apr 08 2006 Dries Verachtert <[email protected]> - 1.3.7-1.2 |
123 |
- Rebuild for Fedora Core 5. |
|
124 |
||
125 |
* Tue Dec 06 2005 Dries Verachtert <[email protected]> - 1.3.7-1 |
|
126 |
- Initial package. |