gparted-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. %define name gparted
  2. %define version 0.4.5
  3. %define release 1%{?_dist_release}
  4. Summary: Gnome Partition Editor
  5. Summary(ja): Gnome パーティション編集ツール
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. License: GPL
  10. Group: Applications/Administration
  11. URL: http://gparted.sourceforge.net
  12. Source0: %{name}-%{version}.tar.bz2
  13. Source1: gparted-pam.d
  14. Source2: gparted-console.apps
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. BuildRequires: gtk2-devel >= 2.6.0, gtkmm2-devel >= 2.8.0
  17. BuildRequires: parted-devel >= 1.8.8, e2fsprogs-devel >= 1.41.0
  18. BuildRequires: desktop-file-utils
  19. Requires: hal, e2fsprogs >= 1.41.0
  20. Packager: kazutaka
  21. %description
  22. GParted stands for Gnome Partition Editor. Among other features
  23. it supports creating, resizing, moving and copying of partitions.
  24. %description -l ja
  25. GParted は Gnome 用のパーティション編集ツールです。特にパーティ
  26. ションの作成/リサイズ/移動/コピーをサポートしています。
  27. %prep
  28. %setup -q
  29. %build
  30. %configure
  31. %__make %{?_smp_mflags}
  32. %install
  33. %__rm -rf ${RPM_BUILD_ROOT}
  34. %__make install DESTDIR=$RPM_BUILD_ROOT
  35. desktop-file-install --delete-original \
  36. --vendor "" \
  37. --dir %{buildroot}%{_datadir}/applications \
  38. --mode 0644 \
  39. %{buildroot}%{_datadir}/applications/%{name}.desktop
  40. sed -i 's#sbin#bin#' %{buildroot}%{_datadir}/applications/%{name}.desktop
  41. # Set up authentication via PAM.
  42. %__mkdir_p ${RPM_BUILD_ROOT}/%{_sysconfdir}/pam.d
  43. %__mkdir_p ${RPM_BUILD_ROOT}/%{_sysconfdir}/security/console.apps
  44. %__mkdir_p ${RPM_BUILD_ROOT}/%{_bindir}
  45. %__cp %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/pam.d/gparted
  46. %__cp %{SOURCE2} ${RPM_BUILD_ROOT}/%{_sysconfdir}/security/console.apps/gparted
  47. %__ln_s consolehelper ${RPM_BUILD_ROOT}/%{_bindir}/gparted
  48. %find_lang %{name}
  49. %clean
  50. %__rm -rf ${RPM_BUILD_ROOT}
  51. %preun
  52. if [ $1 -ge 0 ]; then
  53. if [ -a %{_datadir}/hal/fdi/policy/gparted-disable-automount.fdi ]; then
  54. rm -rf %{_datadir}/hal/fdi/policy/gparted-disable-automount.fdi
  55. fi
  56. fi
  57. %files -f %{name}.lang
  58. %defattr(-,root,root)
  59. %doc AUTHORS COPYING ChangeLog README
  60. %config(noreplace) %{_sysconfdir}/pam.d/gparted
  61. %config(noreplace) %{_sysconfdir}/security/console.apps/gparted
  62. %{_bindir}/gparted
  63. %{_sbindir}/gparted
  64. %{_sbindir}/gpartedbin
  65. %{_datadir}/applications/gparted.desktop
  66. %{_datadir}/gnome/help/gparted
  67. %{_datadir}/icons/hicolor/16x16/apps/gparted.png
  68. %{_datadir}/icons/hicolor/22x22/apps/gparted.png
  69. %{_datadir}/icons/hicolor/24x24/apps/gparted.png
  70. %{_datadir}/icons/hicolor/32x32/apps/gparted.png
  71. %{_datadir}/icons/hicolor/48x48/apps/gparted.png
  72. %{_datadir}/icons/hicolor/scalable/apps/gparted.svg
  73. %{_datadir}/omf/gparted
  74. %{_mandir}/man8/gparted.*
  75. %changelog
  76. * Tue May 19 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.5-1
  77. - new upstream release
  78. * Sun May 03 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.4-1
  79. - new upstream release
  80. - add mimimun version requiment for e2fsprogs >= 1.41.0
  81. - add Packager tag
  82. * Tue Aug 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.8-1
  83. - new upstream release
  84. - build with parted-1.8.8
  85. * Sat Apr 05 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.6-1
  86. - new upstream release.
  87. - apply new versioning policy.
  88. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.5-0vl2
  89. - rebuild for VineSeed.
  90. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.5-0vl1
  91. - new upstream release.
  92. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.5-0vl1
  93. - new upstream release.
  94. * Sat May 19 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.3-0vl2
  95. - rebuild with new environment/toolchain.
  96. * Tue Dec 12 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.3-0vl1
  97. - new upstream release.
  98. - add required parted version >= 1.7.1.
  99. - update japanese translation.
  100. * Thu Jun 8 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.5-0vl2
  101. - add GnuPG signature.
  102. * Wed Jun 7 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.5-0vl1
  103. - new upstream release.
  104. * Fri May 5 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.3-0vl3
  105. - update ja.po.
  106. * Wed May 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.3-0vl2
  107. - rebuilt with parted 1.6.25.1
  108. * Tue Apr 27 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.3-0vl1
  109. - initial build for VineSeed Plus.