]>
Commit | Line | Data |
---|---|---|
e4ca15c7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
acbd7808 | 4 | %bcond_without systemd # systemd |
e4ca15c7 JB |
5 | # |
6 | Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory) | |
7 | Summary(pl.UTF-8): Zarządzanie urządzeniami podsystemu "libnvdimm" (pamięci nieulotnej) | |
8 | Name: ndctl | |
32de53f6 | 9 | Version: 73 |
d339277c | 10 | Release: 1 |
e4ca15c7 JB |
11 | License: LGPL v2.1+ (libraries), GPL v2+ with CC0 and MIT parts (utilities) |
12 | Group: Applications/System | |
13 | #Source0Download: https://github.com/pmem/ndctl/releases | |
14 | Source0: https://github.com/pmem/ndctl/archive/v%{version}/%{name}-%{version}.tar.gz | |
32de53f6 | 15 | # Source0-md5: 0c9f6f8c0bcc29ed7fcae3b1df7f61d6 |
d339277c | 16 | URL: https://pmem.io/ndctl/ |
32de53f6 | 17 | # or asciidoctor instead of asciidoc+xmlto |
e4ca15c7 | 18 | BuildRequires: asciidoc |
f7b498ea | 19 | BuildRequires: glibc-devel >= 6:2.28 |
290ce174 | 20 | BuildRequires: iniparser-devel |
e4ca15c7 | 21 | BuildRequires: json-c-devel |
b56c2d3b | 22 | BuildRequires: keyutils-devel |
e4ca15c7 | 23 | BuildRequires: kmod-devel |
d339277c | 24 | BuildRequires: libuuid-devel |
f7b498ea | 25 | BuildRequires: linux-libc-headers >= 7:4.15 |
32de53f6 JB |
26 | BuildRequires: meson |
27 | BuildRequires: ninja >= 1.5 | |
e4ca15c7 JB |
28 | BuildRequires: pkgconfig |
29 | BuildRequires: rpmbuild(macros) >= 1.673 | |
acbd7808 | 30 | %{?with_systemd:BuildRequires: systemd-devel} |
e4ca15c7 JB |
31 | BuildRequires: udev-devel |
32 | BuildRequires: xmlto | |
33 | Requires: %{name}-libs = %{version}-%{release} | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | Utilities for managing the "libnvdimm" subsystem. The "libnvdimm" | |
38 | subsystem defines a kernel device model and control message interface | |
39 | for platform NVDIMM resources like those defined by the ACPI 6+ NFIT | |
40 | (NVDIMM Firmware Interface Table). | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Narzędzia do zarządzania podsystemem "libnvdimm". Podsystem ten | |
44 | definiuje model urządzeń jądra i interfejs komunikatów sterujących dla | |
45 | specyficznych dla platformy zasobów NVDIMM, takich jak zdefiniowane w | |
46 | ACPI 6+ NFIT (NVDIMM Firmware Interface Table). | |
47 | ||
48 | %package -n bash-completion-ndctl | |
49 | Summary: Bash completion for ndctl command | |
50 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia ndctl | |
51 | Group: Applications/Shells | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | Requires: bash-completion >= 2.0 | |
54 | ||
55 | %description -n bash-completion-ndctl | |
56 | Bash completion for ndctl command. | |
57 | ||
58 | %description -n bash-completion-ndctl -l pl.UTF-8 | |
59 | Bashowe uzupełnianie parametrów polecenia ndctl. | |
60 | ||
61 | %package libs | |
62 | Summary: Management library for "libnvdimm" subsystem devices (Non-volatile Memory) | |
63 | Summary(pl.UTF-8): Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm" (pamięci nieulotnej) | |
64 | License: LGPL v2.1+ | |
65 | Group: Libraries | |
66 | Requires: daxctl-libs = %{version}-%{release} | |
67 | ||
68 | %description libs | |
69 | Management library for "libnvdimm" subsystem devices (Non-volatile | |
70 | Memory). | |
71 | ||
72 | %description libs -l pl.UTF-8 | |
73 | Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm" | |
74 | (Non-volatile Memory - pamięci nieulotnej). | |
75 | ||
76 | %package devel | |
77 | Summary: Header files for ndctl library | |
78 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ndctl | |
79 | License: LGPL v2.1+ | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-libs = %{version}-%{release} | |
82 | Requires: daxctl-devel = %{version}-%{release} | |
83 | ||
84 | %description devel | |
85 | Header files for ndctl library. | |
86 | ||
87 | %description devel -l pl.UTF-8 | |
88 | Pliki nagłówkowe biblioteki ndctl. | |
89 | ||
90 | %package static | |
91 | Summary: Static ndctl library | |
92 | Summary(pl.UTF-8): Statyczna biblioteka ndctl | |
93 | License: LGPL v2.1+ | |
94 | Group: Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | ||
97 | %description static | |
98 | Static ndctl library. | |
99 | ||
100 | %description static -l pl.UTF-8 | |
101 | Statyczna biblioteka ndctl. | |
102 | ||
290ce174 JB |
103 | %package -n cxl |
104 | Summary: Manage CXL devices | |
105 | Summary(pl.UTF-8): Zarządzanie urządzeniami CXL | |
106 | License: GPL v2+ with CC0 and MIT parts (utilities) | |
107 | Group: Applications/System | |
108 | Requires: cxl-libs = %{version}-%{release} | |
109 | ||
110 | %description -n cxl | |
111 | The cxl utility provices enumeration and provisioning commands for | |
112 | CXL platforms. | |
113 | ||
114 | %description -n cxl -l pl.UTF-8 | |
115 | Narzędzie cxl udostępnia polecenia do numerowania i zaopatrywania | |
116 | dla platform CXL. | |
117 | ||
118 | %package -n bash-completion-cxl | |
119 | Summary: Bash completion for cxl command | |
120 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia cxl | |
121 | Group: Applications/Shells | |
122 | Requires: bash-completion >= 2.0 | |
123 | Requires: cxl = %{version}-%{release} | |
124 | ||
125 | %description -n bash-completion-cxl | |
126 | Bash completion for cxl command. | |
127 | ||
128 | %description -n bash-completion-cxl -l pl.UTF-8 | |
129 | Bashowe uzupełnianie parametrów polecenia cxl. | |
130 | ||
131 | %package -n cxl-libs | |
132 | Summary: Management library for CXL devices | |
133 | Summary(pl.UTF-8): Biblioteka zarządzająca urządzeniami CXL | |
134 | License: LGPL v2.1+ | |
135 | Group: Libraries | |
136 | ||
137 | %description -n cxl-libs | |
138 | Management library for CXL devices. | |
139 | ||
140 | %description -n cxl-libs -l pl.UTF-8 | |
141 | Biblioteka zarządzająca urządzeniami CXL. | |
142 | ||
143 | %package -n cxl-devel | |
144 | Summary: Header fiels for cxl library | |
145 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cxl | |
146 | License: LGPL v2.1+ | |
147 | Group: Development/Libraries | |
148 | Requires: cxl-libs = %{version}-%{release} | |
149 | Requires: libuuid-devel | |
150 | ||
151 | %description -n cxl-devel | |
152 | Header fiels for cxl library. | |
153 | ||
154 | %description -n cxl-devel -l pl.UTF-8 | |
155 | Pliki nagłówkowe biblioteki cxl. | |
156 | ||
157 | %package -n cxl-static | |
158 | Summary: Static cxl library | |
159 | Summary(pl.UTF-8): Statyczna biblioteka cxl | |
160 | License: LGPL v2.1+ | |
161 | Group: Development/Libraries | |
162 | Requires: %{name}-devel = %{version}-%{release} | |
163 | ||
164 | %description -n cxl-static | |
165 | Static cxl library. | |
166 | ||
167 | %description -n cxl-static -l pl.UTF-8 | |
168 | Statyczna biblioteka cxl. | |
169 | ||
e4ca15c7 JB |
170 | %package -n daxctl |
171 | Summary: Manage Device-DAX instances | |
172 | Summary(pl.UTF-8): Zarządzanie instancjami Device-DAX | |
173 | License: GPL v2+ with CC0 and MIT parts (utilities) | |
174 | Group: Applications/System | |
175 | Requires: daxctl-libs = %{version}-%{release} | |
176 | ||
177 | %description -n daxctl | |
178 | The daxctl utility provides enumeration and provisioning commands for | |
179 | the Linux kernel Device-DAX facility. This facility enables DAX | |
180 | mappings of performance/feature differentiated memory without need of | |
181 | a filesystem. | |
182 | ||
183 | %description -n daxctl -l pl.UTF-8 | |
184 | Narzędzie daxctl udostępnia polecenia do numerowania i zaopatrywania | |
185 | funkcji Device-DAX jądra Linuksa. Funkcja ta włącza odwzorowanie DAX | |
186 | pamięci o zróżnicowanej wydajności/funkcjonalności bez potrzeby | |
187 | systemu plików. | |
188 | ||
290ce174 JB |
189 | %package -n bash-completion-daxctl |
190 | Summary: Bash completion for daxctl command | |
191 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia daxctl | |
192 | Group: Applications/Shells | |
193 | Requires: bash-completion >= 2.0 | |
194 | Requires: daxctl = %{version}-%{release} | |
195 | ||
196 | %description -n bash-completion-daxctl | |
197 | Bash completion for daxctl command. | |
198 | ||
199 | %description -n bash-completion-daxctl -l pl.UTF-8 | |
200 | Bashowe uzupełnianie parametrów polecenia daxctl. | |
201 | ||
e4ca15c7 JB |
202 | %package -n daxctl-libs |
203 | Summary: Management library for "Device DAX" devices | |
204 | Summary(pl.UTF-8): Biblioteka zarządzająca do urządzeń "Device DAX" | |
205 | License: LGPL v2.1+ | |
206 | Group: Libraries | |
207 | ||
208 | %description -n daxctl-libs | |
209 | Device DAX is a facility for establishing DAX mappings of | |
210 | performance/feature-differentiated memory. daxctl-libs provides an | |
211 | enumeration/control API for these devices. | |
212 | ||
213 | %description -n daxctl-libs -l pl.UTF-8 | |
214 | Device DAX to funkcja ustanawiająca odwzorowania DAX pamięci o | |
215 | zróżnicowanej wydajności/funkcjonalności. Biblioteka daxctl-libs | |
216 | dostarcza API do numerowania i kontroli tych urządzeń. | |
217 | ||
218 | %package -n daxctl-devel | |
219 | Summary: Header fiels for daxctl library | |
220 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki daxctl | |
221 | License: LGPL v2.1+ | |
222 | Group: Development/Libraries | |
223 | Requires: daxctl-libs = %{version}-%{release} | |
224 | Requires: libuuid-devel | |
225 | ||
226 | %description -n daxctl-devel | |
227 | Header fiels for daxctl library. | |
228 | ||
229 | %description -n daxctl-devel -l pl.UTF-8 | |
230 | Pliki nagłówkowe biblioteki daxctl. | |
231 | ||
232 | %package -n daxctl-static | |
233 | Summary: Static daxctl library | |
234 | Summary(pl.UTF-8): Statyczna biblioteka daxctl | |
235 | License: LGPL v2.1+ | |
236 | Group: Development/Libraries | |
237 | Requires: %{name}-devel = %{version}-%{release} | |
238 | ||
239 | %description -n daxctl-static | |
240 | Static daxctl library. | |
241 | ||
242 | %description -n daxctl-static -l pl.UTF-8 | |
243 | Statyczna biblioteka daxctl. | |
244 | ||
245 | %prep | |
246 | %setup -q | |
e4ca15c7 JB |
247 | |
248 | %build | |
32de53f6 JB |
249 | %meson build \ |
250 | %{!?with_static_libs:--default-library=shared} \ | |
251 | -Dasciidoctor=disabled \ | |
252 | -Dbashcompletiondir=%{bash_compdir} \ | |
253 | %{!?with_systemd:-Dsystemd=disabled} | |
254 | ||
255 | %ninja_build -C build | |
e4ca15c7 JB |
256 | |
257 | %install | |
258 | rm -rf $RPM_BUILD_ROOT | |
259 | ||
32de53f6 | 260 | %ninja_install -C build |
e4ca15c7 JB |
261 | |
262 | %clean | |
263 | rm -rf $RPM_BUILD_ROOT | |
264 | ||
45d485e5 JB |
265 | %post libs -p /sbin/ldconfig |
266 | %postun libs -p /sbin/ldconfig | |
267 | ||
290ce174 JB |
268 | %post -n cxl-libs -p /sbin/ldconfig |
269 | %postun -n cxl-libs -p /sbin/ldconfig | |
270 | ||
45d485e5 JB |
271 | %post -n daxctl-libs -p /sbin/ldconfig |
272 | %postun -n daxctl-libs -p /sbin/ldconfig | |
e4ca15c7 JB |
273 | |
274 | %files | |
275 | %defattr(644,root,root,755) | |
e4ca15c7 | 276 | %attr(755,root,root) %{_bindir}/ndctl |
605b7fc7 | 277 | %dir %{_sysconfdir}/ndctl |
b56c2d3b | 278 | %dir %{_sysconfdir}/ndctl/keys |
290ce174 JB |
279 | %dir %{_sysconfdir}/ndctl.conf.d |
280 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndctl.conf.d/monitor.conf | |
281 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndctl.conf.d/ndctl.conf | |
b56c2d3b | 282 | %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/nvdimm-security.conf |
acbd7808 | 283 | %if %{with systemd} |
605b7fc7 | 284 | %{systemdunitdir}/ndctl-monitor.service |
acbd7808 | 285 | %endif |
e4ca15c7 JB |
286 | %{_mandir}/man1/ndctl.1* |
287 | %{_mandir}/man1/ndctl-*.1* | |
288 | ||
289 | %files -n bash-completion-ndctl | |
290 | %defattr(644,root,root,755) | |
291 | %{bash_compdir}/ndctl | |
292 | ||
293 | %files libs | |
294 | %defattr(644,root,root,755) | |
295 | %attr(755,root,root) %{_libdir}/libndctl.so.*.*.* | |
296 | %attr(755,root,root) %ghost %{_libdir}/libndctl.so.6 | |
297 | ||
298 | %files devel | |
299 | %attr(755,root,root) %{_libdir}/libndctl.so | |
300 | %defattr(644,root,root,755) | |
301 | %{_includedir}/ndctl | |
302 | %{_pkgconfigdir}/libndctl.pc | |
303 | ||
304 | %if %{with static_libs} | |
305 | %files static | |
306 | %defattr(644,root,root,755) | |
307 | %{_libdir}/libndctl.a | |
308 | %endif | |
309 | ||
290ce174 JB |
310 | %files -n cxl |
311 | %defattr(644,root,root,755) | |
312 | %attr(755,root,root) %{_bindir}/cxl | |
313 | %{_mandir}/man1/cxl.1* | |
314 | %{_mandir}/man1/cxl-*.1* | |
315 | ||
316 | %files -n bash-completion-cxl | |
317 | %defattr(644,root,root,755) | |
318 | %{bash_compdir}/cxl | |
319 | ||
320 | %files -n cxl-libs | |
321 | %defattr(644,root,root,755) | |
322 | %attr(755,root,root) %{_libdir}/libcxl.so.*.*.* | |
323 | %attr(755,root,root) %ghost %{_libdir}/libcxl.so.1 | |
324 | ||
325 | %files -n cxl-devel | |
326 | %defattr(644,root,root,755) | |
327 | %attr(755,root,root) %{_libdir}/libcxl.so | |
328 | %{_includedir}/cxl | |
329 | %{_pkgconfigdir}/libcxl.pc | |
330 | %{_mandir}/man3/cxl_new.3* | |
331 | %{_mandir}/man3/libcxl.3* | |
332 | ||
333 | %if %{with static_libs} | |
334 | %files -n cxl-static | |
335 | %defattr(644,root,root,755) | |
336 | %{_libdir}/libcxl.a | |
337 | %endif | |
338 | ||
e4ca15c7 JB |
339 | %files -n daxctl |
340 | %defattr(644,root,root,755) | |
e4ca15c7 | 341 | %attr(755,root,root) %{_bindir}/daxctl |
290ce174 | 342 | %dir %{_sysconfdir}/daxctl.conf.d |
b56c2d3b | 343 | %{_datadir}/daxctl |
290ce174 | 344 | /lib/udev/rules.d/90-daxctl-device.rules |
acbd7808 | 345 | %if %{with systemd} |
290ce174 | 346 | %{systemdunitdir}/daxdev-reconfigure@.service |
acbd7808 | 347 | %endif |
e4ca15c7 JB |
348 | %{_mandir}/man1/daxctl.1* |
349 | %{_mandir}/man1/daxctl-*.1* | |
350 | ||
290ce174 JB |
351 | %files -n bash-completion-daxctl |
352 | %defattr(644,root,root,755) | |
353 | %{bash_compdir}/daxctl | |
354 | ||
e4ca15c7 JB |
355 | %files -n daxctl-libs |
356 | %defattr(644,root,root,755) | |
32de53f6 | 357 | %doc COPYING README.md LICENSES/other/{CC0-1.0,MIT} |
e4ca15c7 JB |
358 | %attr(755,root,root) %{_libdir}/libdaxctl.so.*.*.* |
359 | %attr(755,root,root) %ghost %{_libdir}/libdaxctl.so.1 | |
360 | ||
361 | %files -n daxctl-devel | |
362 | %defattr(644,root,root,755) | |
363 | %attr(755,root,root) %{_libdir}/libdaxctl.so | |
364 | %{_includedir}/daxctl | |
365 | %{_pkgconfigdir}/libdaxctl.pc | |
366 | ||
367 | %if %{with static_libs} | |
368 | %files -n daxctl-static | |
369 | %defattr(644,root,root,755) | |
370 | %{_libdir}/libdaxctl.a | |
371 | %endif |