gparted-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. %define name gparted
  2. %define version 0.8.0
  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-0.8.0-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 -p1 -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 Apr 2 2011 IWAI, Masaharu <iwai@alib.jp> 0.8.0-1
  81. - new upstream release
  82. - update desktop file patch (Patch1)
  83. * Sat Dec 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.1-1
  84. - new upstream release
  85. * Sat Dec 04 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.0-2
  86. - add BuildRequires: libuuid-devel, gnome-doc-utils
  87. * Wed Nov 10 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.7.0-1
  88. - new upstream release
  89. * Wed Nov 10 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.6.0-1
  90. - new upstream release
  91. - built with parted 2.3
  92. * Tue May 19 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.5-1
  93. - new upstream release
  94. * Sun May 03 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.4-1
  95. - new upstream release
  96. - add mimimun version requiment for e2fsprogs >= 1.41.0
  97. - add Packager tag
  98. * Tue Aug 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.8-1
  99. - new upstream release
  100. - build with parted-1.8.8
  101. * Sat Apr 05 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.6-1
  102. - new upstream release.
  103. - apply new versioning policy.
  104. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.5-0vl2
  105. - rebuild for VineSeed.
  106. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.5-0vl1
  107. - new upstream release.
  108. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.5-0vl1
  109. - new upstream release.
  110. * Sat May 19 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.3-0vl2
  111. - rebuild with new environment/toolchain.
  112. * Tue Dec 12 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.3-0vl1
  113. - new upstream release.
  114. - add required parted version >= 1.7.1.
  115. - update japanese translation.
  116. * Thu Jun 8 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.5-0vl2
  117. - add GnuPG signature.
  118. * Wed Jun 7 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.5-0vl1
  119. - new upstream release.
  120. * Fri May 5 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.3-0vl3
  121. - update ja.po.
  122. * Wed May 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.3-0vl2
  123. - rebuilt with parted 1.6.25.1
  124. * Tue Apr 27 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2.3-0vl1
  125. - initial build for VineSeed Plus.