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