]> git.pld-linux.org Git - packages/ndctl.git/blame - ndctl.spec
- updated to 73, now uses meson
[packages/ndctl.git] / ndctl.spec
CommitLineData
e4ca15c7
JB
1#
2# Conditional build:
3%bcond_without static_libs # static libraries
acbd7808 4%bcond_without systemd # systemd
e4ca15c7
JB
5#
6Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
7Summary(pl.UTF-8): Zarządzanie urządzeniami podsystemu "libnvdimm" (pamięci nieulotnej)
8Name: ndctl
32de53f6 9Version: 73
d339277c 10Release: 1
e4ca15c7
JB
11License: LGPL v2.1+ (libraries), GPL v2+ with CC0 and MIT parts (utilities)
12Group: Applications/System
13#Source0Download: https://github.com/pmem/ndctl/releases
14Source0: https://github.com/pmem/ndctl/archive/v%{version}/%{name}-%{version}.tar.gz
32de53f6 15# Source0-md5: 0c9f6f8c0bcc29ed7fcae3b1df7f61d6
d339277c 16URL: https://pmem.io/ndctl/
32de53f6 17# or asciidoctor instead of asciidoc+xmlto
e4ca15c7 18BuildRequires: asciidoc
f7b498ea 19BuildRequires: glibc-devel >= 6:2.28
290ce174 20BuildRequires: iniparser-devel
e4ca15c7 21BuildRequires: json-c-devel
b56c2d3b 22BuildRequires: keyutils-devel
e4ca15c7 23BuildRequires: kmod-devel
d339277c 24BuildRequires: libuuid-devel
f7b498ea 25BuildRequires: linux-libc-headers >= 7:4.15
32de53f6
JB
26BuildRequires: meson
27BuildRequires: ninja >= 1.5
e4ca15c7
JB
28BuildRequires: pkgconfig
29BuildRequires: rpmbuild(macros) >= 1.673
acbd7808 30%{?with_systemd:BuildRequires: systemd-devel}
e4ca15c7
JB
31BuildRequires: udev-devel
32BuildRequires: xmlto
33Requires: %{name}-libs = %{version}-%{release}
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37Utilities for managing the "libnvdimm" subsystem. The "libnvdimm"
38subsystem defines a kernel device model and control message interface
39for platform NVDIMM resources like those defined by the ACPI 6+ NFIT
40(NVDIMM Firmware Interface Table).
41
42%description -l pl.UTF-8
43Narzędzia do zarządzania podsystemem "libnvdimm". Podsystem ten
44definiuje model urządzeń jądra i interfejs komunikatów sterujących dla
45specyficznych dla platformy zasobów NVDIMM, takich jak zdefiniowane w
46ACPI 6+ NFIT (NVDIMM Firmware Interface Table).
47
48%package -n bash-completion-ndctl
49Summary: Bash completion for ndctl command
50Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia ndctl
51Group: Applications/Shells
52Requires: %{name} = %{version}-%{release}
53Requires: bash-completion >= 2.0
54
55%description -n bash-completion-ndctl
56Bash completion for ndctl command.
57
58%description -n bash-completion-ndctl -l pl.UTF-8
59Bashowe uzupełnianie parametrów polecenia ndctl.
60
61%package libs
62Summary: Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
63Summary(pl.UTF-8): Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm" (pamięci nieulotnej)
64License: LGPL v2.1+
65Group: Libraries
66Requires: daxctl-libs = %{version}-%{release}
67
68%description libs
69Management library for "libnvdimm" subsystem devices (Non-volatile
70Memory).
71
72%description libs -l pl.UTF-8
73Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm"
74(Non-volatile Memory - pamięci nieulotnej).
75
76%package devel
77Summary: Header files for ndctl library
78Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ndctl
79License: LGPL v2.1+
80Group: Development/Libraries
81Requires: %{name}-libs = %{version}-%{release}
82Requires: daxctl-devel = %{version}-%{release}
83
84%description devel
85Header files for ndctl library.
86
87%description devel -l pl.UTF-8
88Pliki nagłówkowe biblioteki ndctl.
89
90%package static
91Summary: Static ndctl library
92Summary(pl.UTF-8): Statyczna biblioteka ndctl
93License: LGPL v2.1+
94Group: Development/Libraries
95Requires: %{name}-devel = %{version}-%{release}
96
97%description static
98Static ndctl library.
99
100%description static -l pl.UTF-8
101Statyczna biblioteka ndctl.
102
290ce174
JB
103%package -n cxl
104Summary: Manage CXL devices
105Summary(pl.UTF-8): Zarządzanie urządzeniami CXL
106License: GPL v2+ with CC0 and MIT parts (utilities)
107Group: Applications/System
108Requires: cxl-libs = %{version}-%{release}
109
110%description -n cxl
111The cxl utility provices enumeration and provisioning commands for
112CXL platforms.
113
114%description -n cxl -l pl.UTF-8
115Narzędzie cxl udostępnia polecenia do numerowania i zaopatrywania
116dla platform CXL.
117
118%package -n bash-completion-cxl
119Summary: Bash completion for cxl command
120Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia cxl
121Group: Applications/Shells
122Requires: bash-completion >= 2.0
123Requires: cxl = %{version}-%{release}
124
125%description -n bash-completion-cxl
126Bash completion for cxl command.
127
128%description -n bash-completion-cxl -l pl.UTF-8
129Bashowe uzupełnianie parametrów polecenia cxl.
130
131%package -n cxl-libs
132Summary: Management library for CXL devices
133Summary(pl.UTF-8): Biblioteka zarządzająca urządzeniami CXL
134License: LGPL v2.1+
135Group: Libraries
136
137%description -n cxl-libs
138Management library for CXL devices.
139
140%description -n cxl-libs -l pl.UTF-8
141Biblioteka zarządzająca urządzeniami CXL.
142
143%package -n cxl-devel
144Summary: Header fiels for cxl library
145Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cxl
146License: LGPL v2.1+
147Group: Development/Libraries
148Requires: cxl-libs = %{version}-%{release}
149Requires: libuuid-devel
150
151%description -n cxl-devel
152Header fiels for cxl library.
153
154%description -n cxl-devel -l pl.UTF-8
155Pliki nagłówkowe biblioteki cxl.
156
157%package -n cxl-static
158Summary: Static cxl library
159Summary(pl.UTF-8): Statyczna biblioteka cxl
160License: LGPL v2.1+
161Group: Development/Libraries
162Requires: %{name}-devel = %{version}-%{release}
163
164%description -n cxl-static
165Static cxl library.
166
167%description -n cxl-static -l pl.UTF-8
168Statyczna biblioteka cxl.
169
e4ca15c7
JB
170%package -n daxctl
171Summary: Manage Device-DAX instances
172Summary(pl.UTF-8): Zarządzanie instancjami Device-DAX
173License: GPL v2+ with CC0 and MIT parts (utilities)
174Group: Applications/System
175Requires: daxctl-libs = %{version}-%{release}
176
177%description -n daxctl
178The daxctl utility provides enumeration and provisioning commands for
179the Linux kernel Device-DAX facility. This facility enables DAX
180mappings of performance/feature differentiated memory without need of
181a filesystem.
182
183%description -n daxctl -l pl.UTF-8
184Narzędzie daxctl udostępnia polecenia do numerowania i zaopatrywania
185funkcji Device-DAX jądra Linuksa. Funkcja ta włącza odwzorowanie DAX
186pamięci o zróżnicowanej wydajności/funkcjonalności bez potrzeby
187systemu plików.
188
290ce174
JB
189%package -n bash-completion-daxctl
190Summary: Bash completion for daxctl command
191Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia daxctl
192Group: Applications/Shells
193Requires: bash-completion >= 2.0
194Requires: daxctl = %{version}-%{release}
195
196%description -n bash-completion-daxctl
197Bash completion for daxctl command.
198
199%description -n bash-completion-daxctl -l pl.UTF-8
200Bashowe uzupełnianie parametrów polecenia daxctl.
201
e4ca15c7
JB
202%package -n daxctl-libs
203Summary: Management library for "Device DAX" devices
204Summary(pl.UTF-8): Biblioteka zarządzająca do urządzeń "Device DAX"
205License: LGPL v2.1+
206Group: Libraries
207
208%description -n daxctl-libs
209Device DAX is a facility for establishing DAX mappings of
210performance/feature-differentiated memory. daxctl-libs provides an
211enumeration/control API for these devices.
212
213%description -n daxctl-libs -l pl.UTF-8
214Device DAX to funkcja ustanawiająca odwzorowania DAX pamięci o
215zróżnicowanej wydajności/funkcjonalności. Biblioteka daxctl-libs
216dostarcza API do numerowania i kontroli tych urządzeń.
217
218%package -n daxctl-devel
219Summary: Header fiels for daxctl library
220Summary(pl.UTF-8): Pliki nagłówkowe biblioteki daxctl
221License: LGPL v2.1+
222Group: Development/Libraries
223Requires: daxctl-libs = %{version}-%{release}
224Requires: libuuid-devel
225
226%description -n daxctl-devel
227Header fiels for daxctl library.
228
229%description -n daxctl-devel -l pl.UTF-8
230Pliki nagłówkowe biblioteki daxctl.
231
232%package -n daxctl-static
233Summary: Static daxctl library
234Summary(pl.UTF-8): Statyczna biblioteka daxctl
235License: LGPL v2.1+
236Group: Development/Libraries
237Requires: %{name}-devel = %{version}-%{release}
238
239%description -n daxctl-static
240Static daxctl library.
241
242%description -n daxctl-static -l pl.UTF-8
243Statyczna 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
258rm -rf $RPM_BUILD_ROOT
259
32de53f6 260%ninja_install -C build
e4ca15c7
JB
261
262%clean
263rm -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
This page took 0.109912 seconds and 4 git commands to generate.