]>
Commit | Line | Data |
---|---|---|
52b3ea83 TP |
1 | Summary: Utility to clone and restore partitions |
2 | Name: partclone | |
73b1042f JP |
3 | Version: 0.3.19 |
4 | Release: 1 | |
52b3ea83 TP |
5 | License: GPL v2+ |
6 | Group: Applications/System | |
73b1042f JP |
7 | Source0: https://github.com/Thomas-Tsai/partclone/archive/%{version}/%{name}-%{version}.tar.gz |
8 | # Source0-md5: c4e469396a402810f97370fbfa462934 | |
52b3ea83 TP |
9 | URL: http://partclone.org/ |
10 | BuildRequires: autoconf | |
11 | BuildRequires: automake | |
12 | BuildRequires: e2fsprogs-devel | |
9530d229 | 13 | BuildRequires: gettext-tools |
73b1042f | 14 | BuildRequires: libfuse-devel |
52b3ea83 TP |
15 | BuildRequires: libuuid-devel |
16 | BuildRequires: ncurses-devel | |
d7bc7226 | 17 | BuildRequires: ntfs-3g-devel |
73b1042f JP |
18 | BuildRequires: openssl-devel >= 1.1.0 |
19 | BuildRequires: pkgconfig >= 1:0.9.0 | |
52b3ea83 TP |
20 | #BuildRequires: progsreiserfs-devel |
21 | #BuildRequires: reiser4progs-devel | |
22 | #BuildRequires: xfsprogs-devel | |
73b1042f | 23 | Requires: openssl >= 1.1.0 |
52b3ea83 TP |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Partclone is a project like the well-known backup utility "Partition | |
28 | Image" a.k.a partimage. | |
29 | ||
30 | Partclone provides utilities to back up used blocks and design for | |
31 | higher compatibility of the file system using supported library like | |
32 | e2fslibs. | |
33 | ||
34 | %prep | |
35 | %setup -q | |
d7bc7226 | 36 | |
52b3ea83 TP |
37 | #sed -e 's|libxfs.h|xfs.h|' -i configure.ac -i src/xfsclone.[ch] |
38 | sed -e 's|ncurses.h|ncurses/ncurses.h|' -i configure.ac -i src/{partclone,progress}.c | |
39 | ||
7117754e | 40 | mv po/fr_FR.gmo po/fr.gmo |
41 | mv po/fr_FR.po po/fr.po | |
42 | sed -i 's/fr_FR/fr/' po/LINGUAS | |
43 | ||
73b1042f JP |
44 | sed -e 's/exit 1/exit 0/' -i fail-mbr/compile-mbr.sh |
45 | ||
52b3ea83 TP |
46 | %build |
47 | %{__aclocal} | |
48 | %{__autoconf} | |
49 | %{__autoheader} | |
50 | %{__automake} | |
970bc19a | 51 | export LIBS=-ltinfo |
52b3ea83 | 52 | %configure \ |
73b1042f | 53 | --enable-apfs \ |
52b3ea83 | 54 | --enable-extfs \ |
73b1042f | 55 | --enable-fuse \ |
52b3ea83 TP |
56 | --enable-hfsp \ |
57 | --enable-fat \ | |
58 | --enable-ntfs \ | |
59 | --enable-btrfs \ | |
60 | --enable-ncursesw | |
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %find_lang %{name} | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files -f %{name}.lang | |
75 | %defattr(644,root,root,755) | |
6ce0e48f | 76 | %doc AUTHORS ChangeLog README.md TODO |
73b1042f | 77 | %attr(755,root,root) %{_sbindir}/partclone.apfs |
332a52d1 AF |
78 | %attr(755,root,root) %{_sbindir}/partclone.btrfs |
79 | %attr(755,root,root) %{_sbindir}/partclone.chkimg | |
80 | %attr(755,root,root) %{_sbindir}/partclone.dd | |
81 | %attr(755,root,root) %{_sbindir}/partclone.ext2 | |
82 | %attr(755,root,root) %{_sbindir}/partclone.ext3 | |
83 | %attr(755,root,root) %{_sbindir}/partclone.ext4 | |
84 | %attr(755,root,root) %{_sbindir}/partclone.ext4dev | |
85 | %attr(755,root,root) %{_sbindir}/partclone.extfs | |
86 | %attr(755,root,root) %{_sbindir}/partclone.fat | |
87 | %attr(755,root,root) %{_sbindir}/partclone.fat12 | |
88 | %attr(755,root,root) %{_sbindir}/partclone.fat16 | |
89 | %attr(755,root,root) %{_sbindir}/partclone.fat32 | |
90 | %attr(755,root,root) %{_sbindir}/partclone.hfs+ | |
91 | %attr(755,root,root) %{_sbindir}/partclone.hfsp | |
92 | %attr(755,root,root) %{_sbindir}/partclone.hfsplus | |
6ce0e48f | 93 | %attr(755,root,root) %{_sbindir}/partclone.imager |
73b1042f | 94 | %attr(755,root,root) %{_sbindir}/partclone.imgfuse |
332a52d1 AF |
95 | %attr(755,root,root) %{_sbindir}/partclone.info |
96 | %attr(755,root,root) %{_sbindir}/partclone.ntfs | |
97 | %attr(755,root,root) %{_sbindir}/partclone.ntfsfixboot | |
98 | %attr(755,root,root) %{_sbindir}/partclone.ntfsreloc | |
99 | %attr(755,root,root) %{_sbindir}/partclone.restore | |
100 | %attr(755,root,root) %{_sbindir}/partclone.vfat | |
101 | %{_mandir}/man8/partclone.btrfs.8* | |
102 | %{_mandir}/man8/partclone.chkimg.8* | |
103 | %{_mandir}/man8/partclone.dd.8* | |
104 | %{_mandir}/man8/partclone.ext2.8* | |
105 | %{_mandir}/man8/partclone.ext3.8* | |
106 | %{_mandir}/man8/partclone.ext4.8* | |
107 | %{_mandir}/man8/partclone.ext4dev.8* | |
108 | %{_mandir}/man8/partclone.extfs.8* | |
109 | %{_mandir}/man8/partclone.fat12.8* | |
110 | %{_mandir}/man8/partclone.fat16.8* | |
111 | %{_mandir}/man8/partclone.fat32.8* | |
112 | %{_mandir}/man8/partclone.hfs+.8* | |
113 | %{_mandir}/man8/partclone.hfsplus.8* | |
6ce0e48f | 114 | %{_mandir}/man8/partclone.imager.8* |
332a52d1 AF |
115 | %{_mandir}/man8/partclone.info.8* |
116 | %{_mandir}/man8/partclone.ntfs.8* | |
117 | %{_mandir}/man8/partclone.restore.8* | |
118 | %{_mandir}/man8/partclone.vfat.8* | |
c6e0024e AP |
119 | %{_mandir}/man8/partclone.8.* |
120 | %{_mandir}/man8/partclone.fat.8* | |
121 | %{_mandir}/man8/partclone.hfsp.8* | |
122 | %{_mandir}/man8/partclone.ntfsfixboot.8* | |
123 | %{_mandir}/man8/partclone.ntfsreloc.8* | |
6ce0e48f | 124 | %{_datadir}/%{name} |