kde-partitionmanager-vl.spec 3.8 KB

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