]>
Commit | Line | Data |
---|---|---|
1e5c6587 | 1 | Summary: Tools for manipulating dm-thin device-mapper target metadata |
e3079f2e JB |
2 | Summary(pl.UTF-8): Narzędzia do modyfikowania metadanych celów dm-thin device-mappera |
3 | Name: thin-provisioning-tools | |
3ec88b2b JB |
4 | Version: 1.0.6 |
5 | Release: 1 | |
e3079f2e JB |
6 | License: GPL v3+ |
7 | Group: Applications/System | |
744901ab | 8 | #Source0Download: https://github.com/jthornber/thin-provisioning-tools/releases |
382ca027 | 9 | Source0: https://github.com/jthornber/thin-provisioning-tools/archive/v%{version}/%{name}-%{version}.tar.gz |
3ec88b2b JB |
10 | # Source0-md5: c93f56d938c8c11cf8ed3e34973c5125 |
11 | # cargo vendor && cd .. && tar cJf thin-provisioning-tools-1.0.6-vendor.tar.xz thin-provisioning-tools-1.0.6/vendor thin-provisioning-tools-1.0.6/Cargo.lock | |
12 | Source1: %{name}-%{version}-vendor.tar.xz | |
13 | # Source1-md5: 88c6b926e0bc601db5b61ddf0f9f2846 | |
e3079f2e | 14 | URL: https://github.com/jthornber/thin-provisioning-tools |
3ec88b2b | 15 | BuildRequires: cargo |
e3079f2e | 16 | BuildRequires: expat-devel >= 1.95 |
eee41c88 | 17 | BuildRequires: libstdc++-devel >= 6:4.0 |
3ec88b2b | 18 | BuildRequires: rpmbuild(macros) >= 2.004 |
3935b18e | 19 | BuildRequires: rust |
73bf2402 | 20 | Obsoletes: device-mapper-persistent-data |
3ec88b2b | 21 | ExclusiveArch: %{rust_arches} |
e3079f2e JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | A suite of tools for manipulating the metadata of the dm-thin | |
26 | device-mapper target. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Zestaw narzędzi do modyfikowania metadanych celów dm-thin | |
30 | device-mappera. | |
31 | ||
32 | %prep | |
3ec88b2b | 33 | %setup -q -b1 |
e3079f2e | 34 | |
3ec88b2b JB |
35 | export CARGO_HOME="$(pwd)/.cargo" |
36 | ||
37 | mkdir -p "$CARGO_HOME" | |
38 | cat >.cargo/config <<EOF | |
39 | [source.crates-io] | |
40 | replace-with = "vendored-sources" | |
744901ab | 41 | |
3ec88b2b JB |
42 | [source."git+https://github.com/jthornber/rio?branch=master"] |
43 | git = "https://github.com/jthornber/rio" | |
44 | branch = "master" | |
45 | replace-with = "vendored-sources" | |
e3079f2e | 46 | |
3ec88b2b JB |
47 | [source.vendored-sources] |
48 | directory = "vendor" | |
49 | EOF | |
50 | ||
51 | %build | |
52 | export CARGO_HOME="$(pwd)/.cargo" | |
53 | ||
54 | %cargo_build --frozen | |
3935b18e | 55 | |
e3079f2e JB |
56 | %install |
57 | rm -rf $RPM_BUILD_ROOT | |
3ec88b2b | 58 | export CARGO_HOME="$(pwd)/.cargo" |
e3079f2e JB |
59 | |
60 | %{__make} install \ | |
928e1ab8 | 61 | DESTDIR=$RPM_BUILD_ROOT \ |
3ec88b2b | 62 | PDATA_TOOLS=%{cargo_targetdir}/%{rust_target}/release/pdata_tools \ |
928e1ab8 | 63 | STRIP=: |
e3079f2e JB |
64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
3ec88b2b | 70 | %doc CHANGES README.md doc/TODO.md |
941913b4 ŁK |
71 | %attr(755,root,root) %{_sbindir}/cache_check |
72 | %attr(755,root,root) %{_sbindir}/cache_dump | |
73 | %attr(755,root,root) %{_sbindir}/cache_metadata_size | |
74 | %attr(755,root,root) %{_sbindir}/cache_repair | |
75 | %attr(755,root,root) %{_sbindir}/cache_restore | |
3f765190 | 76 | %attr(755,root,root) %{_sbindir}/cache_writeback |
941913b4 ŁK |
77 | %attr(755,root,root) %{_sbindir}/era_check |
78 | %attr(755,root,root) %{_sbindir}/era_dump | |
79 | %attr(755,root,root) %{_sbindir}/era_invalidate | |
80 | %attr(755,root,root) %{_sbindir}/era_restore | |
81 | %attr(755,root,root) %{_sbindir}/pdata_tools | |
224387e0 | 82 | %attr(755,root,root) %{_sbindir}/thin_check |
382ca027 | 83 | %attr(755,root,root) %{_sbindir}/thin_delta |
224387e0 | 84 | %attr(755,root,root) %{_sbindir}/thin_dump |
c8a0e91b | 85 | %attr(755,root,root) %{_sbindir}/thin_ls |
3ec88b2b | 86 | %attr(755,root,root) %{_sbindir}/thin_metadata_pack |
224387e0 | 87 | %attr(755,root,root) %{_sbindir}/thin_metadata_size |
3ec88b2b | 88 | %attr(755,root,root) %{_sbindir}/thin_metadata_unpack |
224387e0 JB |
89 | %attr(755,root,root) %{_sbindir}/thin_repair |
90 | %attr(755,root,root) %{_sbindir}/thin_restore | |
91 | %attr(755,root,root) %{_sbindir}/thin_rmap | |
382ca027 JB |
92 | %attr(755,root,root) %{_sbindir}/thin_trim |
93 | %{_mandir}/man8/cache_check.8* | |
94 | %{_mandir}/man8/cache_dump.8* | |
42760679 | 95 | %{_mandir}/man8/cache_metadata_size.8* |
382ca027 JB |
96 | %{_mandir}/man8/cache_repair.8* |
97 | %{_mandir}/man8/cache_restore.8* | |
3f765190 | 98 | %{_mandir}/man8/cache_writeback.8* |
382ca027 JB |
99 | %{_mandir}/man8/era_check.8* |
100 | %{_mandir}/man8/era_dump.8* | |
101 | %{_mandir}/man8/era_invalidate.8* | |
42760679 | 102 | %{_mandir}/man8/era_restore.8* |
224387e0 | 103 | %{_mandir}/man8/thin_check.8* |
382ca027 | 104 | %{_mandir}/man8/thin_delta.8* |
224387e0 | 105 | %{_mandir}/man8/thin_dump.8* |
c8a0e91b | 106 | %{_mandir}/man8/thin_ls.8* |
3ec88b2b | 107 | %{_mandir}/man8/thin_metadata_pack.8* |
224387e0 | 108 | %{_mandir}/man8/thin_metadata_size.8* |
3ec88b2b | 109 | %{_mandir}/man8/thin_metadata_unpack.8* |
224387e0 JB |
110 | %{_mandir}/man8/thin_repair.8* |
111 | %{_mandir}/man8/thin_restore.8* | |
112 | %{_mandir}/man8/thin_rmap.8* | |
382ca027 | 113 | %{_mandir}/man8/thin_trim.8* |