1 | Name: kde-partitionmanager |
---|
2 | Summary: KDE Partition Manager |
---|
3 | Summary(ja): KDE パーティションマネージャ |
---|
4 | Version: 1.0.3 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | |
---|
7 | Group: Applications/Administration |
---|
8 | License: GPLv2+ |
---|
9 | URL: http://partitionman.sourceforge.net/ |
---|
10 | |
---|
11 | Source0: http://downloads.sourceforge.net/project/partitionman/partitionmanager/1.0.3/partitionmanager-%{version}.tar.bz2 |
---|
12 | |
---|
13 | Patch0: partitionmanager-1.0.3-r1263692.patch |
---|
14 | |
---|
15 | ## upstreamable patches |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildRequires: kdelibs4-devel |
---|
19 | BuildRequires: parted-devel |
---|
20 | BuildRequires: e2fsprogs-devel |
---|
21 | %if %{?_dist_release} !="vl5" |
---|
22 | BuildRequires: libuuid-devel |
---|
23 | BuildRequires: libblkid-devel |
---|
24 | BuildRequires: libatasmart-devel |
---|
25 | %endif |
---|
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} |
---|
50 | %patch0 -p1 |
---|
51 | ## Due to the name change |
---|
52 | mv src/partitionmanager.desktop src/kde-partitionmanager.desktop |
---|
53 | #mv src/kcm/kcm_partitionmanager.desktop src/kcm/kcm_kde-partitionmanager.desktop |
---|
54 | sed -i 's,partitionmanager.desktop,kde-partitionmanager.desktop,' src/CMakeLists.txt |
---|
55 | |
---|
56 | %build |
---|
57 | mkdir -p %{_target_platform} |
---|
58 | pushd %{_target_platform} |
---|
59 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
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 |
---|
98 | %{_libdir}/kde4/pmlibpartedbackendplugin.so |
---|
99 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
100 | %{_datadir}/icons/hicolor/*/*/*.png |
---|
101 | %{_datadir}/kde4/apps/partitionmanager |
---|
102 | %{_datadir}/kde4/services/pmlibpartedbackendplugin.desktop |
---|
103 | %{_datadir}/kde4/servicetypes/pmcorebackendplugin.desktop |
---|
104 | ## %{_kde4_datadir}/kde4/services/kcm_kde-partitionmanager.desktop |
---|
105 | |
---|
106 | |
---|
107 | %changelog |
---|
108 | * Fri Jan 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-2 |
---|
109 | - add Patch0 (partitionmanager-1.0.3-r1263692.patch) |
---|
110 | - add BuildRequires: libatasmart-devel |
---|
111 | |
---|
112 | * Thu Jan 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-1 |
---|
113 | - new upstream release |
---|
114 | |
---|
115 | * Fri Jul 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.2-3 |
---|
116 | - disabled BR: libuuid-devel, libblkid-devel on Vine Linux 5 |
---|
117 | |
---|
118 | * Mon Jul 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.2-2 |
---|
119 | - Initial build for Vine Linux |
---|
120 | |
---|
121 | * Tue May 18 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.2-1 |
---|
122 | - bugfix release |
---|
123 | |
---|
124 | * Wed Mar 31 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.1-1%{?dist}.2 |
---|
125 | - rebuild for new parted |
---|
126 | |
---|
127 | * Sun Feb 14 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.1-1%{?dist}.1 |
---|
128 | - DSO fix for rawhide |
---|
129 | |
---|
130 | * Mon Jan 25 2010 Thomas Janssen <thomasj@fedoraproject.org> 1.0.1-1 |
---|
131 | - New upstream source |
---|
132 | |
---|
133 | * Wed Nov 18 2009 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-2 |
---|
134 | - Moved desktop-file-validate to %%install |
---|
135 | - Removed superfluous BR qt4-devel |
---|
136 | |
---|
137 | * Wed Nov 18 2009 Thomas Janssen <thomasj@fedoraproject.org> 1.0.0-1 |
---|
138 | - Initial Fedora release |
---|
139 | |
---|