]>
Commit | Line | Data |
---|---|---|
3935b18e JB |
1 | # TODO: finish rust tools (vendor crates; crc32c crate seems x86_64 only?) |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with rust # rust based tools (thin_metadata_{pack,unpack}) | |
5 | ||
1e5c6587 | 6 | Summary: Tools for manipulating dm-thin device-mapper target metadata |
e3079f2e JB |
7 | Summary(pl.UTF-8): Narzędzia do modyfikowania metadanych celów dm-thin device-mappera |
8 | Name: thin-provisioning-tools | |
3935b18e | 9 | Version: 0.9.0 |
e3079f2e JB |
10 | Release: 1 |
11 | License: GPL v3+ | |
12 | Group: Applications/System | |
744901ab | 13 | #Source0Download: https://github.com/jthornber/thin-provisioning-tools/releases |
382ca027 | 14 | Source0: https://github.com/jthornber/thin-provisioning-tools/archive/v%{version}/%{name}-%{version}.tar.gz |
3935b18e | 15 | # Source0-md5: b3ce6f476a5b7ea64c583e7d910d2db7 |
744901ab | 16 | Patch0: %{name}-sh.patch |
e3079f2e JB |
17 | URL: https://github.com/jthornber/thin-provisioning-tools |
18 | BuildRequires: autoconf >= 2.61 | |
19 | BuildRequires: boost-devel | |
20 | BuildRequires: expat-devel >= 1.95 | |
eee41c88 | 21 | BuildRequires: gcc-c++ >= 6:4.0 |
224387e0 | 22 | BuildRequires: libaio-devel |
eee41c88 | 23 | BuildRequires: libstdc++-devel >= 6:4.0 |
3935b18e JB |
24 | %if %{with rust} |
25 | BuildRequires: cargo | |
26 | BuildRequires: rust | |
27 | %endif | |
73bf2402 | 28 | Obsoletes: device-mapper-persistent-data |
e3079f2e JB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | A suite of tools for manipulating the metadata of the dm-thin | |
33 | device-mapper target. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Zestaw narzędzi do modyfikowania metadanych celów dm-thin | |
37 | device-mappera. | |
38 | ||
39 | %prep | |
40 | %setup -q | |
744901ab | 41 | %patch0 -p1 |
e3079f2e JB |
42 | |
43 | %build | |
44 | %{__autoconf} | |
744901ab JB |
45 | %configure \ |
46 | --with-optimisation=" " | |
47 | ||
e3079f2e | 48 | %{__make} \ |
382ca027 | 49 | V= |
e3079f2e | 50 | |
3935b18e JB |
51 | %if %{with rust} |
52 | %{__make} rust-tools | |
53 | %endif | |
54 | ||
e3079f2e JB |
55 | %install |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} install \ | |
eee41c88 | 59 | DESTDIR=$RPM_BUILD_ROOT |
e3079f2e | 60 | |
3935b18e JB |
61 | %if %{with rust} |
62 | %{__make} install-rust-tools \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | %endif | |
65 | ||
e3079f2e JB |
66 | %clean |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
eee41c88 | 71 | %doc CHANGES README.md TODO.org |
941913b4 ŁK |
72 | %attr(755,root,root) %{_sbindir}/cache_check |
73 | %attr(755,root,root) %{_sbindir}/cache_dump | |
74 | %attr(755,root,root) %{_sbindir}/cache_metadata_size | |
75 | %attr(755,root,root) %{_sbindir}/cache_repair | |
76 | %attr(755,root,root) %{_sbindir}/cache_restore | |
3f765190 | 77 | %attr(755,root,root) %{_sbindir}/cache_writeback |
941913b4 ŁK |
78 | %attr(755,root,root) %{_sbindir}/era_check |
79 | %attr(755,root,root) %{_sbindir}/era_dump | |
80 | %attr(755,root,root) %{_sbindir}/era_invalidate | |
81 | %attr(755,root,root) %{_sbindir}/era_restore | |
82 | %attr(755,root,root) %{_sbindir}/pdata_tools | |
224387e0 | 83 | %attr(755,root,root) %{_sbindir}/thin_check |
382ca027 | 84 | %attr(755,root,root) %{_sbindir}/thin_delta |
224387e0 | 85 | %attr(755,root,root) %{_sbindir}/thin_dump |
c8a0e91b | 86 | %attr(755,root,root) %{_sbindir}/thin_ls |
224387e0 JB |
87 | %attr(755,root,root) %{_sbindir}/thin_metadata_size |
88 | %attr(755,root,root) %{_sbindir}/thin_repair | |
89 | %attr(755,root,root) %{_sbindir}/thin_restore | |
90 | %attr(755,root,root) %{_sbindir}/thin_rmap | |
382ca027 JB |
91 | %attr(755,root,root) %{_sbindir}/thin_trim |
92 | %{_mandir}/man8/cache_check.8* | |
93 | %{_mandir}/man8/cache_dump.8* | |
42760679 | 94 | %{_mandir}/man8/cache_metadata_size.8* |
382ca027 JB |
95 | %{_mandir}/man8/cache_repair.8* |
96 | %{_mandir}/man8/cache_restore.8* | |
3f765190 | 97 | %{_mandir}/man8/cache_writeback.8* |
382ca027 JB |
98 | %{_mandir}/man8/era_check.8* |
99 | %{_mandir}/man8/era_dump.8* | |
100 | %{_mandir}/man8/era_invalidate.8* | |
42760679 | 101 | %{_mandir}/man8/era_restore.8* |
224387e0 | 102 | %{_mandir}/man8/thin_check.8* |
382ca027 | 103 | %{_mandir}/man8/thin_delta.8* |
224387e0 | 104 | %{_mandir}/man8/thin_dump.8* |
c8a0e91b | 105 | %{_mandir}/man8/thin_ls.8* |
224387e0 JB |
106 | %{_mandir}/man8/thin_metadata_size.8* |
107 | %{_mandir}/man8/thin_repair.8* | |
108 | %{_mandir}/man8/thin_restore.8* | |
109 | %{_mandir}/man8/thin_rmap.8* | |
382ca027 | 110 | %{_mandir}/man8/thin_trim.8* |
3935b18e JB |
111 | %if %{with rust} |
112 | %attr(755,root,root) %{_sbindir}/thin_metadata_pack | |
113 | %attr(755,root,root) %{_sbindir}/thin_metadata_unpack | |
114 | %{_mandir}/man8/thin_metadata_pack.8* | |
115 | %{_mandir}/man8/thin_metadata_unpack.8* | |
116 | %endif |