gparted-vl.spec 4.8 KB

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