-
Notifications
You must be signed in to change notification settings - Fork 0
/
rust-vm-memory.spec
205 lines (144 loc) · 6.06 KB
/
rust-vm-memory.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate vm-memory
Name: rust-vm-memory
Version: 0.12.0
Release: 2%{?dist}
Summary: Safe abstractions for accessing the VM physical memory
License: Apache-2.0 OR BSD-3-Clause
URL: https://crates.io/crates/vm-memory
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
# * exclude files that are only useful for upstream development
Patch: vm-memory-fix-metadata.diff
# vm-memory does not support 32 bit targets
ExcludeArch: %{ix86}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Safe abstractions for accessing the VM physical memory.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-BSD-3-Clause
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/DESIGN.md
%doc %{crate_instdir}/README.md
%doc %{crate_instdir}/TODO.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+arc-swap-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+arc-swap-devel %{_description}
This package contains library source intended for building other packages which
use the "arc-swap" feature of the "%{crate}" crate.
%files -n %{name}+arc-swap-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+backend-atomic-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+backend-atomic-devel %{_description}
This package contains library source intended for building other packages which
use the "backend-atomic" feature of the "%{crate}" crate.
%files -n %{name}+backend-atomic-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+backend-bitmap-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+backend-bitmap-devel %{_description}
This package contains library source intended for building other packages which
use the "backend-bitmap" feature of the "%{crate}" crate.
%files -n %{name}+backend-bitmap-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+backend-mmap-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+backend-mmap-devel %{_description}
This package contains library source intended for building other packages which
use the "backend-mmap" feature of the "%{crate}" crate.
%files -n %{name}+backend-mmap-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+bitflags-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bitflags-devel %{_description}
This package contains library source intended for building other packages which
use the "bitflags" feature of the "%{crate}" crate.
%files -n %{name}+bitflags-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+vmm-sys-util-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+vmm-sys-util-devel %{_description}
This package contains library source intended for building other packages which
use the "vmm-sys-util" feature of the "%{crate}" crate.
%files -n %{name}+vmm-sys-util-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+xen-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+xen-devel %{_description}
This package contains library source intended for building other packages which
use the "xen" feature of the "%{crate}" crate.
%files -n %{name}+xen-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jul 12 2023 Sergio Lopez <slp@redhat.com> - 0.12.0-1
- Update to version 0.12.0
* Mon May 08 2023 Fabio Valentini <decathorpe@gmail.com> - 0.10.0-2
- Include upstream patch to fix UB in test code.
- Regenerate with rust2rpm 24.
* Wed Feb 08 2023 Sergio Lopez <slp@redhat.com> - 0.10.0-1
- Update to version 0.10.0
- Drop no longer needed vm-memory-fix-atomics.diff patch
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Nov 04 2022 Fabio Valentini <decathorpe@gmail.com> - 0.8.0-3
- Drop unused, benchmark-only criterion dev-dependency.
- Regenerate with rust2rpm 23.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Sergio Lopez <slp@redhat.com> - 0.8.0-1
- Update to 0.8.0
- Enable tests now that BZ#1902663 is fixed
- Enable all rust_arches except i686 (32 bits targets are not supported)
* Thu Mar 03 2022 Sergio Lopez <slp@redhat.com> - 0.7.0-4
- Add missing rust-vm-memory+backend-bitmap-devel subpackage
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Dec 24 2021 Sergio Lopez <slp@redhat.com> - 0.7.0-1
- Update to 0.7.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 03 2021 Sergio Lopez <slp@redhat.com> - 0.5.0-1
- Initial package