libgksu-vl.spec 7.4 KB

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