3 %bcond_without static_libs # static libraries
4 %bcond_without systemd # systemd
6 Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
7 Summary(pl.UTF-8): Zarządzanie urządzeniami podsystemu "libnvdimm" (pamięci nieulotnej)
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
15 # Source0-md5: faa0fa043dbd922d13ecb6f31b00e3b2
16 Patch0: %{name}-bashcompdir.patch
17 URL: https://pmem.io/ndctl/
19 BuildRequires: asciidoc
20 BuildRequires: autoconf >= 2.60
21 BuildRequires: automake >= 1:1.11
22 BuildRequires: glibc-devel >= 6:2.28
23 BuildRequires: iniparser-devel
24 BuildRequires: json-c-devel
25 BuildRequires: keyutils-devel
26 BuildRequires: kmod-devel
27 BuildRequires: libtool >= 2:2
28 BuildRequires: libuuid-devel
29 BuildRequires: linux-libc-headers >= 7:4.15
30 BuildRequires: pkgconfig
31 BuildRequires: rpmbuild(macros) >= 1.673
32 %{?with_systemd:BuildRequires: systemd-devel}
33 BuildRequires: udev-devel
35 Requires: %{name}-libs = %{version}-%{release}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Utilities for managing the "libnvdimm" subsystem. The "libnvdimm"
40 subsystem defines a kernel device model and control message interface
41 for platform NVDIMM resources like those defined by the ACPI 6+ NFIT
42 (NVDIMM Firmware Interface Table).
44 %description -l pl.UTF-8
45 Narzędzia do zarządzania podsystemem "libnvdimm". Podsystem ten
46 definiuje model urządzeń jądra i interfejs komunikatów sterujących dla
47 specyficznych dla platformy zasobów NVDIMM, takich jak zdefiniowane w
48 ACPI 6+ NFIT (NVDIMM Firmware Interface Table).
50 %package -n bash-completion-ndctl
51 Summary: Bash completion for ndctl command
52 Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia ndctl
53 Group: Applications/Shells
54 Requires: %{name} = %{version}-%{release}
55 Requires: bash-completion >= 2.0
57 %description -n bash-completion-ndctl
58 Bash completion for ndctl command.
60 %description -n bash-completion-ndctl -l pl.UTF-8
61 Bashowe uzupełnianie parametrów polecenia ndctl.
64 Summary: Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
65 Summary(pl.UTF-8): Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm" (pamięci nieulotnej)
68 Requires: daxctl-libs = %{version}-%{release}
71 Management library for "libnvdimm" subsystem devices (Non-volatile
74 %description libs -l pl.UTF-8
75 Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm"
76 (Non-volatile Memory - pamięci nieulotnej).
79 Summary: Header files for ndctl library
80 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ndctl
82 Group: Development/Libraries
83 Requires: %{name}-libs = %{version}-%{release}
84 Requires: daxctl-devel = %{version}-%{release}
87 Header files for ndctl library.
89 %description devel -l pl.UTF-8
90 Pliki nagłówkowe biblioteki ndctl.
93 Summary: Static ndctl library
94 Summary(pl.UTF-8): Statyczna biblioteka ndctl
96 Group: Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
100 Static ndctl library.
102 %description static -l pl.UTF-8
103 Statyczna biblioteka ndctl.
106 Summary: Manage CXL devices
107 Summary(pl.UTF-8): Zarządzanie urządzeniami CXL
108 License: GPL v2+ with CC0 and MIT parts (utilities)
109 Group: Applications/System
110 Requires: cxl-libs = %{version}-%{release}
113 The cxl utility provices enumeration and provisioning commands for
116 %description -n cxl -l pl.UTF-8
117 Narzędzie cxl udostępnia polecenia do numerowania i zaopatrywania
120 %package -n bash-completion-cxl
121 Summary: Bash completion for cxl command
122 Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia cxl
123 Group: Applications/Shells
124 Requires: bash-completion >= 2.0
125 Requires: cxl = %{version}-%{release}
127 %description -n bash-completion-cxl
128 Bash completion for cxl command.
130 %description -n bash-completion-cxl -l pl.UTF-8
131 Bashowe uzupełnianie parametrów polecenia cxl.
134 Summary: Management library for CXL devices
135 Summary(pl.UTF-8): Biblioteka zarządzająca urządzeniami CXL
139 %description -n cxl-libs
140 Management library for CXL devices.
142 %description -n cxl-libs -l pl.UTF-8
143 Biblioteka zarządzająca urządzeniami CXL.
145 %package -n cxl-devel
146 Summary: Header fiels for cxl library
147 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cxl
149 Group: Development/Libraries
150 Requires: cxl-libs = %{version}-%{release}
151 Requires: libuuid-devel
153 %description -n cxl-devel
154 Header fiels for cxl library.
156 %description -n cxl-devel -l pl.UTF-8
157 Pliki nagłówkowe biblioteki cxl.
159 %package -n cxl-static
160 Summary: Static cxl library
161 Summary(pl.UTF-8): Statyczna biblioteka cxl
163 Group: Development/Libraries
164 Requires: %{name}-devel = %{version}-%{release}
166 %description -n cxl-static
169 %description -n cxl-static -l pl.UTF-8
170 Statyczna biblioteka cxl.
173 Summary: Manage Device-DAX instances
174 Summary(pl.UTF-8): Zarządzanie instancjami Device-DAX
175 License: GPL v2+ with CC0 and MIT parts (utilities)
176 Group: Applications/System
177 Requires: daxctl-libs = %{version}-%{release}
179 %description -n daxctl
180 The daxctl utility provides enumeration and provisioning commands for
181 the Linux kernel Device-DAX facility. This facility enables DAX
182 mappings of performance/feature differentiated memory without need of
185 %description -n daxctl -l pl.UTF-8
186 Narzędzie daxctl udostępnia polecenia do numerowania i zaopatrywania
187 funkcji Device-DAX jądra Linuksa. Funkcja ta włącza odwzorowanie DAX
188 pamięci o zróżnicowanej wydajności/funkcjonalności bez potrzeby
191 %package -n bash-completion-daxctl
192 Summary: Bash completion for daxctl command
193 Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia daxctl
194 Group: Applications/Shells
195 Requires: bash-completion >= 2.0
196 Requires: daxctl = %{version}-%{release}
198 %description -n bash-completion-daxctl
199 Bash completion for daxctl command.
201 %description -n bash-completion-daxctl -l pl.UTF-8
202 Bashowe uzupełnianie parametrów polecenia daxctl.
204 %package -n daxctl-libs
205 Summary: Management library for "Device DAX" devices
206 Summary(pl.UTF-8): Biblioteka zarządzająca do urządzeń "Device DAX"
210 %description -n daxctl-libs
211 Device DAX is a facility for establishing DAX mappings of
212 performance/feature-differentiated memory. daxctl-libs provides an
213 enumeration/control API for these devices.
215 %description -n daxctl-libs -l pl.UTF-8
216 Device DAX to funkcja ustanawiająca odwzorowania DAX pamięci o
217 zróżnicowanej wydajności/funkcjonalności. Biblioteka daxctl-libs
218 dostarcza API do numerowania i kontroli tych urządzeń.
220 %package -n daxctl-devel
221 Summary: Header fiels for daxctl library
222 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki daxctl
224 Group: Development/Libraries
225 Requires: daxctl-libs = %{version}-%{release}
226 Requires: libuuid-devel
228 %description -n daxctl-devel
229 Header fiels for daxctl library.
231 %description -n daxctl-devel -l pl.UTF-8
232 Pliki nagłówkowe biblioteki daxctl.
234 %package -n daxctl-static
235 Summary: Static daxctl library
236 Summary(pl.UTF-8): Statyczna biblioteka daxctl
238 Group: Development/Libraries
239 Requires: %{name}-devel = %{version}-%{release}
241 %description -n daxctl-static
242 Static daxctl library.
244 %description -n daxctl-static -l pl.UTF-8
245 Statyczna biblioteka daxctl.
251 echo '%{version}' >version
261 --disable-asciidoctor \
262 --disable-silent-rules \
263 %{?with_static_libs:--enable-static} \
264 --with-bash=%{bash_compdir} \
265 --with-udevrulesdir=/lib/udev/rules.d \
266 %{!?with_systemd:--without-systemd}
270 rm -rf $RPM_BUILD_ROOT
273 DESTDIR=$RPM_BUILD_ROOT
275 # obsoleted by pkg-config
276 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
279 rm -rf $RPM_BUILD_ROOT
281 %post libs -p /sbin/ldconfig
282 %postun libs -p /sbin/ldconfig
284 %post -n cxl-libs -p /sbin/ldconfig
285 %postun -n cxl-libs -p /sbin/ldconfig
287 %post -n daxctl-libs -p /sbin/ldconfig
288 %postun -n daxctl-libs -p /sbin/ldconfig
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_bindir}/ndctl
293 %dir %{_sysconfdir}/ndctl
294 %dir %{_sysconfdir}/ndctl/keys
295 %dir %{_sysconfdir}/ndctl.conf.d
296 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndctl.conf.d/monitor.conf
297 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndctl.conf.d/ndctl.conf
298 %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/nvdimm-security.conf
300 %{systemdunitdir}/ndctl-monitor.service
302 %{_mandir}/man1/ndctl.1*
303 %{_mandir}/man1/ndctl-*.1*
305 %files -n bash-completion-ndctl
306 %defattr(644,root,root,755)
307 %{bash_compdir}/ndctl
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libndctl.so.*.*.*
312 %attr(755,root,root) %ghost %{_libdir}/libndctl.so.6
315 %attr(755,root,root) %{_libdir}/libndctl.so
316 %defattr(644,root,root,755)
318 %{_pkgconfigdir}/libndctl.pc
320 %if %{with static_libs}
322 %defattr(644,root,root,755)
323 %{_libdir}/libndctl.a
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_bindir}/cxl
329 %{_mandir}/man1/cxl.1*
330 %{_mandir}/man1/cxl-*.1*
332 %files -n bash-completion-cxl
333 %defattr(644,root,root,755)
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libcxl.so.*.*.*
339 %attr(755,root,root) %ghost %{_libdir}/libcxl.so.1
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_libdir}/libcxl.so
345 %{_pkgconfigdir}/libcxl.pc
346 %{_mandir}/man3/cxl_new.3*
347 %{_mandir}/man3/libcxl.3*
349 %if %{with static_libs}
351 %defattr(644,root,root,755)
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_bindir}/daxctl
358 %dir %{_sysconfdir}/daxctl.conf.d
360 /lib/udev/rules.d/90-daxctl-device.rules
362 %{systemdunitdir}/daxdev-reconfigure@.service
364 %{_mandir}/man1/daxctl.1*
365 %{_mandir}/man1/daxctl-*.1*
367 %files -n bash-completion-daxctl
368 %defattr(644,root,root,755)
369 %{bash_compdir}/daxctl
371 %files -n daxctl-libs
372 %defattr(644,root,root,755)
373 %doc README.md LICENSES/other/{CC0-1.0,MIT}
374 %attr(755,root,root) %{_libdir}/libdaxctl.so.*.*.*
375 %attr(755,root,root) %ghost %{_libdir}/libdaxctl.so.1
377 %files -n daxctl-devel
378 %defattr(644,root,root,755)
379 %attr(755,root,root) %{_libdir}/libdaxctl.so
380 %{_includedir}/daxctl
381 %{_pkgconfigdir}/libdaxctl.pc
383 %if %{with static_libs}
384 %files -n daxctl-static
385 %defattr(644,root,root,755)
386 %{_libdir}/libdaxctl.a