gnome-system-tools-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. # Note that this is NOT a relocatable package
  2. %define backendsver 2.6.0
  3. %define ver 2.22.0
  4. %define rel 1%{?_dist_release}
  5. Summary: GNOME System Tools
  6. Summary(ja): GNOMEシステムツール
  7. Name: gnome-system-tools
  8. Version: %ver
  9. Release: %rel
  10. License: LGPL
  11. Group: Applications/System
  12. Source: %{name}-%{version}.tar.bz2
  13. #Source100: %{name}-2.14.0-ja.po
  14. # patches for vine
  15. #Patch100: %{name}-2.14.0-wider-window.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. URL: http://www.gnome.org/projects/gst/
  18. Requires: system-tools-backends >= %{backendsver}
  19. Requires: usermode
  20. BuildRequires: PolicyKit-devel >= 0.8
  21. BuildRequires: liboobs-devel >= 2.21.3
  22. BuildRequires: nautilus >= 2.22.0
  23. %description
  24. Day-to-day system management on Unix systems is a chore. Even when you're
  25. using a friendly graphical desktop, seemingly basic tasks like setting the
  26. system time, changing the network setup, importing and exporting network
  27. shared filesystems and configuring swap partitions requires editing
  28. configuration files by hand, and the exact procedure varies between different
  29. operating systems and distributions.
  30. The GNOME System Tools solve all these problems, giving you a simple graphical
  31. interface for each task, which uses an advanced backend to edit all the
  32. relevant files and apply your changes. The interface looks and acts in exactly
  33. the same way regardless of what platform you're using.
  34. %prep
  35. %setup -q
  36. #%patch100 -p1 -b .wider
  37. #cp -f po/ja.po po/ja.po.orig
  38. #cp -f %{SOURCE100} po/ja.po
  39. %build
  40. %configure --disable-scrollkeeper
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf %{buildroot}
  44. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  45. make DESTDIR=$RPM_BUILD_ROOT install
  46. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  47. # console-helper
  48. mv %{buildroot}/%{_bindir} %{buildroot}/%{_sbindir}
  49. mkdir -p %{buildroot}/%{_bindir}
  50. mkdir -p %{buildroot}/%{_sysconfdir}/security/console.apps
  51. mkdir -p %{buildroot}/%{_sysconfdir}/pam.d
  52. for wrappedapp in boot network services time users shares
  53. do
  54. ln -sf consolehelper %{buildroot}/%{_bindir}/${wrappedapp}-admin
  55. cat << EOF > %{buildroot}/%{_sysconfdir}/security/console.apps/${wrappedapp}-admin
  56. USER=root
  57. PROGRAM=/usr/sbin/${wrappedapp}-admin
  58. SESSION=true
  59. EOF
  60. chmod 644 %{buildroot}/%{_sysconfdir}/security/console.apps/${wrappedapp}-admin
  61. cat << EOF > %{buildroot}/etc/pam.d/${wrappedapp}-admin
  62. #%PAM-1.0
  63. auth include config-util
  64. account include config-util
  65. session include config-util
  66. EOF
  67. done
  68. # Get rid of stuff we don't want
  69. rm -rf $RPM_BUILD_ROOT%{_libdir}/debug
  70. rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/X11
  71. rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.*a
  72. rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
  73. rm -rf $RPM_BUILD_ROOT%{_localstatedir}/lib/scrollkeeper
  74. %find_lang %{name}
  75. %clean
  76. rm -rf %{buildroot}
  77. %post
  78. scrollkeeper-update > /dev/null 2>&1 || :
  79. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  80. SCHEMAS="gnome-system-tools.schemas"
  81. for S in $SCHEMAS; do
  82. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
  83. done
  84. %files -f %{name}.lang
  85. %defattr(-,root,root)
  86. %doc README AUTHORS COPYING HACKING NEWS ChangeLog
  87. %config(noreplace) %{_sysconfdir}/security/console.apps/*
  88. %config(noreplace) %{_sysconfdir}/pam.d/*
  89. %{_bindir}/*
  90. %{_sbindir}/*
  91. %{_sysconfdir}/gconf/schemas/*.schemas
  92. %{_datadir}/%{name}
  93. %{_datadir}/applications/*.desktop
  94. %{_datadir}/gnome/help/*
  95. %{_datadir}/omf/*
  96. %{_datadir}/icons/hicolor/*/*/*
  97. %{_libdir}/nautilus/extensions-2.0/*.so
  98. %{_libdir}/pkgconfig/*
  99. %changelog
  100. * Thu Jul 3 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.22.0-1
  101. - updated to new upstream release
  102. - new versioning policy; spec in UTF-8
  103. * Fri May 11 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.18.1-0vl4
  104. - add BuildRequires: nautilus
  105. * Sun Apr 29 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.1-0vl3
  106. - remove Patch22
  107. - use console-helper instead of gksu
  108. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.1-0vl2
  109. - add Patch22 from ubuntu to use gksu
  110. * Fri Apr 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.1-0vl1
  111. - new upstream release
  112. * Thu Oct 26 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl3
  113. - add some services to visible on services-admin
  114. - update ja.po
  115. * Thu Jun 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl2
  116. - enable disks-admin
  117. - import Patch10-14 from ubuntu
  118. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  119. - new upstream release
  120. * Wed Mar 08 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.2-0vl1
  121. - new upstream release
  122. * Thu Sep 22 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.0-0vl1
  123. - new upstream release
  124. * Sun Jul 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.0.1-0vl1
  125. - new upstream release
  126. * Sat Mar 26 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
  127. - new upstream release
  128. * Wed Nov 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-0vl2
  129. - drop consolehelper support.
  130. The g-s-t have internal authentication system.
  131. * Wed Nov 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.0-0vl1
  132. - new upstream release
  133. - update ja.po
  134. - add shares-admin
  135. * Sat Oct 30 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.0-0vl2
  136. - disable boot-admin on ppc (TODO: make boot-admin compatible with ppc)
  137. * Tue Sep 28 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-0vl1
  138. - new upstream release
  139. - temporally removed 'default gateway device' combobox from network-admin.
  140. it generate broken GATEWAYDEV entry.
  141. * Thu Sep 09 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.92.0-0vl2
  142. - drop disks-admin
  143. * Thu Sep 02 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.92.0-0vl1
  144. - new upstream release
  145. - update ja.po
  146. - remove vine patch which is merged in upstream
  147. * Sat Jul 31 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.90.0-0vl1
  148. - new upstream release
  149. - update vine patch
  150. * Mon Jul 26 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.33.0-0vl6
  151. - fixed bogus consolehelper symlinks.
  152. * Sat Jul 24 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.33.0-0vl5
  153. - set "last_version" to (really) disable warning in first run.
  154. * Sun Jul 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.33.0-0vl4
  155. - don't show warning in first run.
  156. * Tue Jun 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.33.0-0vl3
  157. - update ja.po
  158. - update Patch10 to support Vine Linux more.
  159. * Thu Jun 24 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.33.0-0vl2
  160. - update ja.po
  161. - add Patch10 to fix network-admin problem
  162. * Wed May 19 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.33.0-0vl1
  163. - new upstream release
  164. - s/Copyright/License/
  165. * Sat Jan 31 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.31.1-0vl1
  166. - new upstream release
  167. * Wed Dec 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.30.0-0vl1
  168. - new upstream release
  169. * Tue Oct 14 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.28.0-0vl1
  170. - new upstream release
  171. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.27.0-0vl2
  172. - update ja.po
  173. * Tue Aug 26 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.27.0-0vl1
  174. - new upstream release
  175. * Sat May 31 2003 Tomoya TAKA <taka@vinelinux.org> 0.26.0-0vl2
  176. - add %%defattr into %%file section
  177. * Mon May 26 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.26.0-0vl1
  178. - new upstream release
  179. * Tue May 06 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.25.0-0vl1
  180. - new upstream release
  181. * Sat Feb 22 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.23.0-0vl1
  182. - new upstream release
  183. * Sat Jan 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.22.0-0vl1
  184. - initial release