9397
|
1 |
#
|
|
2 |
# spec file for package libgksuui
|
|
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 |
|
15569
|
13 |
%include l10n.inc
|
9397
|
14 |
Name: libgksuui
|
14564
|
15 |
License: LGPL v2
|
9397
|
16 |
Group: Applications/Utilities
|
|
17 |
Version: 1.0.5
|
|
18 |
Release: 1
|
|
19 |
Distribution: Java Desktop System
|
17893
|
20 |
Vendor: www.nongnu.org/gksu
|
9397
|
21 |
Summary: Shows dialogs for asking passwords
|
|
22 |
Source: http://people.debian.org/~kov/gksu/old_stuff/libgksuui1.0/libgksuui1.0-%{version}.tar.gz
|
15569
|
23 |
Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2
|
|
24 |
Source2: l10n-configure.sh
|
15334
|
25 |
# date:2006-10-21 owner:lin type:feature
|
9397
|
26 |
Patch1: libgksuui1.0-01-Makefile.diff
|
15334
|
27 |
# date:2006-10-21 owner:lin type:feature
|
9397
|
28 |
Patch2: libgksuui1.0-02-GUI-update.diff
|
15569
|
29 |
# date:2009-04-06 owner:fujiwara type:bug state:upstreamed
|
|
30 |
Patch3: libgksuui1.0-03-build.diff
|
9397
|
31 |
URL: http://savannah.nongnu.org/projects/gksu/
|
|
32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
33 |
Docdir: %{_defaultdocdir}/%{name}
|
|
34 |
Autoreqprov: on
|
|
35 |
Prereq: GConf
|
|
36 |
|
|
37 |
|
|
38 |
BuildRequires: gettext, bison, gtk-doc, pkgconfig, gtk2-devel
|
|
39 |
|
|
40 |
%description
|
|
41 |
Libgksuui uses the Gtk+2 library to show the dialog asking for the target
|
|
42 |
user's password when needed. It is used by gksu.
|
|
43 |
|
|
44 |
%package devel
|
|
45 |
Summary: Header files, libraries and development documentation for %{name}.
|
|
46 |
Group: Development/Libraries
|
|
47 |
Requires: %{name} = %{version}-%{release}
|
|
48 |
|
|
49 |
%description devel
|
|
50 |
This package contains the header files, static libraries and development
|
|
51 |
documentation for %{name}. If you like to develop programs using %{name},
|
|
52 |
you will need to install %{name}-devel.
|
|
53 |
|
|
54 |
%prep
|
|
55 |
%setup -n libgksuui1.0-%{version}
|
15569
|
56 |
sh -x %SOURCE2 --enable-sun-linguas
|
|
57 |
/bin/rm -f po/stamp-po
|
|
58 |
bzcat %SOURCE1 | tar xf -
|
|
59 |
cd po-sun; make; cd ..
|
9397
|
60 |
%patch1 -p1
|
|
61 |
%patch2 -p1
|
15569
|
62 |
%patch3 -p1
|
9397
|
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 |
|
|
76 |
# libtoolize --force
|
|
77 |
# aclocal $ACLOCAL_FLAGS
|
15569
|
78 |
autoheader
|
|
79 |
autoconf
|
9397
|
80 |
# automake -a -c -f
|
|
81 |
|
|
82 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
83 |
./configure \
|
|
84 |
--prefix=%{_prefix} \
|
|
85 |
--sysconfdir=%{_sysconfdir} \
|
|
86 |
--libexecdir=%{_libexecdir} \
|
|
87 |
--mandir=%{_mandir} \
|
|
88 |
--disable-scrollkeeper
|
|
89 |
make -j $CPUS
|
|
90 |
|
|
91 |
%install
|
|
92 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
93 |
|
|
94 |
%post
|
|
95 |
/sbin/ldconfig 2>/dev/null
|
|
96 |
|
|
97 |
%postun
|
|
98 |
/sbin/ldconfig 2>/dev/null
|
|
99 |
|
|
100 |
%clean
|
|
101 |
# rm -rf $RPM_BUILD_ROOT
|
|
102 |
|
|
103 |
%files
|
|
104 |
%defattr(-, root, root)
|
|
105 |
%doc AUTHORS ChangeLog COPYING INSTALL
|
|
106 |
%{_libdir}/libgksuui*.so.*
|
|
107 |
%{_datadir}/gtk-doc/html/libgksuui*/
|
|
108 |
%{_datadir}/libgksuui*/gksu-auth.png
|
|
109 |
%{_datadir}/locale/*/*/libgksuui*
|
|
110 |
|
|
111 |
%files devel
|
|
112 |
%defattr(-, root, root)
|
|
113 |
%{_includedir}/*.h
|
|
114 |
%{_libdir}/libgksuui*.a
|
|
115 |
%{_libdir}/libgksuui*.so
|
|
116 |
# %exclude %{_libdir}/*.la
|
|
117 |
%{_libdir}/pkgconfig/libgksuui*.pc
|
|
118 |
|
|
119 |
%changelog
|
15569
|
120 |
* Mon Apr 06 2009 - [email protected]
|
|
121 |
- Add l10n tarball.
|
|
122 |
- Add patch build.diff for autoconf
|
|
123 |
- Update patch GUI-update.diff for SUN_BRANDING.
|
15334
|
124 |
* Tue Mar 10, 2009 - [email protected]
|
|
125 |
- Change owner to Lin Ma
|
9397
|
126 |
* Sun Jan 28 2007 - [email protected]
|
|
127 |
- fix download url
|
|
128 |
* Sat Oct 21 2006 Jim Li <[email protected]>
|
|
129 |
- Add patch GUI-update.diff to support accessibility.
|
|
130 |
* Sat Apr 08 2006 Dries Verachtert <[email protected]> - 1.0.7-1.2
|
|
131 |
- Rebuild for Fedora Core 5.
|
|
132 |
* Thu Jan 05 2006 Dries Verachtert <[email protected]> - 1.0.7-1
|
|
133 |
- Initial package.
|