libgksu-vl.spec 8.0 KB

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