libgksu-vl.spec 7.7 KB

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