libgksu-vl.spec 6.9 KB

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