source: projects/specs/trunk/lib/libg/libgksu/libgksu-vl.spec @ 1919

Revision 1919, 7.0 KB checked in by owa, 14 years ago (diff)

rebuilt with rpm-4.8.1

Line 
1Summary: GKSu libraries
2SUmmary(ja): GKSu ライブラリ
3Name: libgksu
4Version: 2.0.9
5Release: 5%{?_dist_release}
6Url: http://www.nongnu.org/gksu/
7Group: System Environment/Libraries
8License: GPL
9
10Vendor: Project Vine
11Distribution: Vine Linux
12Packager: daisuke
13
14Source: http://people.debian.org/~kov/gksu/%{name}-%{version}.tar.gz
15Source10: libgksu-2.0.9-ja.po
16Patch0: libgksu-2.0.5-i18n.patch
17Patch1: libgksu-2.0.9-ja.patch
18
19# patches from ubuntu
20Patch9: libgksu-2.0.9-multihead.patch
21Patch12: libgksu-2.0.9-no_password_dialog.patch
22Patch13: libgksu-2.0.9-startup_notification.diff
23Patch14: libgksu-2.0.9-polish_startup.diff
24Patch17: libgksu-2.0.9-composited_fade.patch
25Patch18: libgksu-2.0.9-g_markup_escape_text_for_command.patch
26Patch20: libgksu-2.0.9-better_usleep.patch
27Patch21: libgksu-2.0.9-composited_rgba_addition.patch
28Patch22: libgksu-2.0.9-sudo_keep_env.patch
29
30BuildRoot: %{_tmppath}/%{name}-buildroot
31BuildRequires: glib2-devel
32BuildRequires: gtk-doc
33BuildRequires: libgtop2-devel
34BuildRequires: startup-notification-devel
35BuildRequires: gnome-keyring-devel
36BuildRequires: GConf2-devel
37BuildRequires: gtk2-devel
38BuildRequires: libglade2-devel
39BuildRequires: perl-XML-Parser
40BuildRequires: desktop-file-utils
41
42%description
43GKSu is a library that provides a Gtk+ frontend to su and sudo. It
44supports login shells and preserving environment when acting as a su
45 frontend. It is useful to menu items or other graphical programs
46that need to ask a user's password to run another program as another user.
47
48%package devel
49Summary: Development package for %{name}
50Group: Development/Libraries
51Requires: %{name} = %{version}
52
53%description devel
54Development package for %{name}
55
56GKSu is a library that provides a Gtk+ frontend to su and sudo. It
57supports login shells and preserving environment when acting as a su
58 frontend. It is useful to menu items or other graphical programs
59that need to ask a user's password to run another program as another user.
60
61%package -n gksu-utils
62Summary: Utilities package for %{name}
63Group: Applications/System
64Requires: %{name} = %{version}
65
66%description -n gksu-utils
67Utilities package for %{name}
68
69GKSu is a library that provides a Gtk+ frontend to su and sudo. It
70supports login shells and preserving environment when acting as a su
71 frontend. It is useful to menu items or other graphical programs
72that need to ask a user's password to run another program as another user.
73
74# '
75%prep
76%setup -q
77%patch0 -p1 -b .i18n
78%patch1 -p1 -b .ja
79
80%patch9 -p1 -b .multihead
81%patch12 -p1 -b .no_password_dialog
82%patch13 -p1 -b .startup_notification
83%patch14 -p1 -b .polish_startup
84%patch17 -p1 -b .composited_fade
85%patch18 -p0 -b .g_markup_escape_text_for_command
86%patch20 -p1 -b .better_usleep
87%patch21 -p1 -b .composited_rgba_addition
88%patch22 -p1 -b .sudo_keep_env
89
90## For x86_64, we use /usr/lib64/libgksu/gksu-run-helper
91%__sed -i 's@\(gchar auxcommand\[\] = PREFIX "/\)lib\(/" PACKAGE "/gksu-run-helper";\)@\1%{_lib}\2@' libgksu/libgksu.c
92
93
94cp -f %{SOURCE10} po/ja.po
95
96
97
98%build
99intltoolize -f
100touch README NEWS
101autoreconf -f -i
102%configure
103%__make %{?_smp_mflags}
104
105%install
106rm -rf $RPM_BUILD_ROOT
107%makeinstall
108
109sed -i -e 's/Icon=gksu.png/Icon=gksu/g' $RPM_BUILD_ROOT%{_datadir}/applications/*
110desktop-file-install --vendor="" \
111  --remove-category="Application" \
112  --remove-category="AdvancedSettings" \
113  --add-category="Settings" \
114  --add-category="X-GNOME-SystemSettings" \
115  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*
116
117%find_lang %{name}
118
119rm $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
120
121%clean
122rm -rf $RPM_BUILD_ROOT
123
124%post -p /sbin/ldconfig
125%postun -p /sbin/ldconfig
126
127%post -n gksu-utils
128export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
129gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gksu.schemas > /dev/null ||:
130
131%preun -n gksu-utils
132if [ "$1" -eq 0 ]; then
133  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
134  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gksu.schemas > /dev/null ||:
135fi
136
137%files -f %{name}.lang
138%defattr(-,root,root)
139%{_libdir}/*.so.*
140%{_libdir}/%{name}
141
142%files devel
143%defattr(-,root,root)
144%doc INSTALL ChangeLog AUTHORS
145%{_libdir}/*.so
146%{_includedir}/*
147%{_libdir}/pkgconfig/*
148%{_datadir}/gtk-doc/html/%{name}
149
150%files -n gksu-utils
151%defattr(-,root,root)
152%{_sysconfdir}/gconf/schemas/gksu.schemas
153%{_bindir}/gksu-properties
154%{_datadir}/applications/gksu-properties.desktop
155%{_datadir}/libgksu/gksu-properties.glade
156%{_datadir}/pixmaps/gksu.png
157
158%changelog
159* Sun Sep 26 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.9-5
160- rebuilt with rpm-4.8.1 for pkg-config
161
162* Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.0.9-4
163- add Categories=X-GNOME-SystemSettings for .desktop
164
165* Thu Jun 17 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.0.9-3
166- use /usr/lib64/libgksu/gksu-run-helper for x86_64
167
168* Wed Jun 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.9-2
169- import Patch9-22 from ubuntu
170  - Patch9: fix multihead
171  - Patch12: don't show password dialog if no password was needed
172  - Patch13: make startup notification more reliable
173  - Patch14: improve startup notification messages
174  - Patch17: nicer fadeout on composited display
175  - Patch18: fix missing g_markup_escape when commands are displayed
176  - Patch20: add small usleep() to avoid race condition when
177             the hostname can not be resolved.
178  - Patch21: bling
179  - Patch22: If gksudo -k is used, pass the -E option to sudo
180             to preserve the environment if we're allowed to do so
181- update ja.po
182
183* Wed May 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.9-1
184- new upstream release
185- remove static library
186
187* Fri Aug 15 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.7-1
188- new upstream release
189- new versioning policy
190
191* Sat Aug 18 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.5-0vl1
192- initial build for Vine Linux
193
194* Tue Jul 03 2007 Emmanuel Andry <eandry@mandriva.org> 2.0.5-1mdv2008.0
195+ Revision: 47621
196- new version
197
198* Fri Jun 22 2007 Thierry Vignaud <tvignaud@mandriva.com> 2.0.4-2mdv2008.0
199+ Revision: 43013
200- remove "AdvancedSettings" category from menu
201- kill X-MandrivaLinux-System-Configuration-Other
202- fix group
203
204
205* Tue Mar 06 2007 Emmanuel Andry <eandry@mandriva.org> 2.0.4-1mdv2007.0
206+ Revision: 134081
207- New version 2.0.4
208- disable gtk-doc (build problem)
209
210* Tue Feb 20 2007 G旦tz Waschk <waschk@mandriva.org> 2.0.3-5mdv2007.1
211+ Revision: 123029
212- fix scripts
213
214* Sat Jan 27 2007 Emmanuel Andry <eandry@mandriva.org> 2.0.3-4mdv2007.1
215+ Revision: 114416
216- xdg menu
217  handles gconf schemas
218
219* Sat Jan 06 2007 Emmanuel Andry <eandry@mandriva.org> 2.0.3-3mdv2007.1
220+ Revision: 104863
221- fix provides
222
223* Sat Jan 06 2007 Emmanuel Andry <eandry@mandriva.org> 2.0.3-2mdv2007.1
224+ Revision: 104797
225- rebuild
226
227* Sat Jan 06 2007 Emmanuel Andry <eandry@mandriva.org> 2.0.3-1mdv2007.1
228+ Revision: 104663
229- buildrequires perl-XML-Parser
230- buildrequires libglade2.0-devel
231- buildrequires libGConf2-devel
232  buildrequires gtk+2-devel
233- buildrequires startup-notification-devel
234  gnome-keyring-devel
235- New version 2.0.3
236  fix provides
237  buildrequires libgtop2.0-devel
238
239  + J辿r担me Soyer <saispo@mandriva.org>
240    - Import libgksu
241
Note: See TracBrowser for help on using the repository browser.