kde-partitionmanager-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Name: kde-partitionmanager
  2. Summary: KDE Partition Manager
  3. Summary(ja): KDE パーティションマネージャ
  4. Version: 1.0.3
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Administration
  7. License: GPLv2+
  8. URL: http://partitionman.sourceforge.net/
  9. Source0: http://downloads.sourceforge.net/project/partitionman/partitionmanager/1.0.3/partitionmanager-%{version}.tar.bz2
  10. ## upstreamable patches
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: kdelibs4-devel
  13. BuildRequires: parted-devel
  14. BuildRequires: e2fsprogs-devel
  15. %if %{?_dist_release} !="vl5"
  16. BuildRequires: libuuid-devel
  17. BuildRequires: libblkid-devel
  18. %endif
  19. BuildRequires: pkgconfig
  20. BuildRequires: gettext
  21. BuildRequires: cmake
  22. Requires: parted
  23. Requires: e2fsprogs
  24. %global kde4_version %((kde4-config --version 2>/dev/null || echo "KDE 4.4.5") | grep ^KDE | cut -d' ' -f2)
  25. #{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
  26. %description
  27. KDE Partition Manager is a utility program to help you manage the disk devices,
  28. partitions and file systems on your computer. It allows you to easily create,
  29. copy, move, delete, resize without losing data, backup and restore partitions.
  30. KDE Partition Manager supports a large number of file systems,
  31. including ext2/3/4, reiserfs, NTFS, FAT16/32, jfs, xfs and more.
  32. It makes use of external programs to get its job done, so you might have to
  33. install additional software (preferably packages from your distribution)
  34. to make use of all features and get full support for all file systems.
  35. %prep
  36. %setup -q -n partitionmanager-%{version}
  37. ## Due to the name change
  38. mv src/partitionmanager.desktop src/kde-partitionmanager.desktop
  39. mv src/kcm/kcm_partitionmanager.desktop src/kcm/kcm_kde-partitionmanager.desktop
  40. sed -i 's,partitionmanager.desktop,kde-partitionmanager.desktop,' src/CMakeLists.txt
  41. %build
  42. mkdir -p %{_target_platform}
  43. pushd %{_target_platform}
  44. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  45. %{cmake} \
  46. -DCMAKE_BUILD_TYPE=release \
  47. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  48. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  49. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  50. ..
  51. popd
  52. make %{?_smp_mflags} -C %{_target_platform}
  53. %install
  54. rm -rf %{buildroot}
  55. make install/fast -C %{_target_platform} DESTDIR=%{buildroot}
  56. %find_lang partitionmanager --with-kde
  57. %check
  58. desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/%{name}.desktop
  59. %clean
  60. rm -rf %{buildroot}
  61. %post
  62. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  63. %posttrans
  64. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  65. %postun
  66. if [ $1 -eq 0 ] ; then
  67. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  68. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  69. fi
  70. %files -f partitionmanager.lang
  71. %defattr(-,root,root,-)
  72. %doc README COPYING CHANGES
  73. %{_bindir}/partitionmanager*
  74. %{_libdir}/*.so
  75. %{_datadir}/applications/kde4/%{name}.desktop
  76. %{_datadir}/icons/hicolor/*/*/*.png
  77. %{_datadir}/kde4/apps/partitionmanager
  78. ## %{_kde4_datadir}/kde4/services/kcm_kde-partitionmanager.desktop
  79. %changelog
  80. * Thu Jan 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-1
  81. - new upstream release
  82. * Fri Jul 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.2-3
  83. - disabled BR: libuuid-devel, libblkid-devel on Vine Linux 5
  84. * Mon Jul 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.2-2
  85. - Initial build for Vine Linux
  86. * Tue May 18 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.2-1
  87. - bugfix release
  88. * Wed Mar 31 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.1-1%{?dist}.2
  89. - rebuild for new parted
  90. * Sun Feb 14 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.1-1%{?dist}.1
  91. - DSO fix for rawhide
  92. * Mon Jan 25 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.1-1
  93. - New upstream source
  94. * Wed Nov 18 2009 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-2
  95. - Moved desktop-file-validate to %%install
  96. - Removed superfluous BR qt4-devel
  97. * Wed Nov 18 2009 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-1
  98. - Initial Fedora release