]> git.pld-linux.org Git - packages/ndctl.git/blob - ndctl.spec
ddf889a2de2618fb48bae92947ea8eb656317503
[packages/ndctl.git] / ndctl.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static libraries
4 %bcond_without  systemd         # systemd
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
9 Version:        72.1
10 Release:        1
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/
18 # TODO: asciidoctor
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
34 BuildRequires:  xmlto
35 Requires:       %{name}-libs = %{version}-%{release}
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
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).
43
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).
49
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
56
57 %description -n bash-completion-ndctl
58 Bash completion for ndctl command.
59
60 %description -n bash-completion-ndctl -l pl.UTF-8
61 Bashowe uzupełnianie parametrów polecenia ndctl.
62
63 %package libs
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)
66 License:        LGPL v2.1+
67 Group:          Libraries
68 Requires:       daxctl-libs = %{version}-%{release}
69
70 %description libs
71 Management library for "libnvdimm" subsystem devices (Non-volatile
72 Memory).
73
74 %description libs -l pl.UTF-8
75 Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm"
76 (Non-volatile Memory - pamięci nieulotnej).
77
78 %package devel
79 Summary:        Header files for ndctl library
80 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ndctl
81 License:        LGPL v2.1+
82 Group:          Development/Libraries
83 Requires:       %{name}-libs = %{version}-%{release}
84 Requires:       daxctl-devel = %{version}-%{release}
85
86 %description devel
87 Header files for ndctl library.
88
89 %description devel -l pl.UTF-8
90 Pliki nagłówkowe biblioteki ndctl.
91
92 %package static
93 Summary:        Static ndctl library
94 Summary(pl.UTF-8):      Statyczna biblioteka ndctl
95 License:        LGPL v2.1+
96 Group:          Development/Libraries
97 Requires:       %{name}-devel = %{version}-%{release}
98
99 %description static
100 Static ndctl library.
101
102 %description static -l pl.UTF-8
103 Statyczna biblioteka ndctl.
104
105 %package -n cxl
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}
111
112 %description -n cxl
113 The cxl utility provices enumeration and provisioning commands for
114 CXL platforms.
115
116 %description -n cxl -l pl.UTF-8
117 Narzędzie cxl udostępnia polecenia do numerowania i zaopatrywania
118 dla platform CXL.
119
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}
126
127 %description -n bash-completion-cxl
128 Bash completion for cxl command.
129
130 %description -n bash-completion-cxl -l pl.UTF-8
131 Bashowe uzupełnianie parametrów polecenia cxl.
132
133 %package -n cxl-libs
134 Summary:        Management library for CXL devices
135 Summary(pl.UTF-8):      Biblioteka zarządzająca urządzeniami CXL
136 License:        LGPL v2.1+
137 Group:          Libraries
138
139 %description -n cxl-libs
140 Management library for CXL devices.
141
142 %description -n cxl-libs -l pl.UTF-8
143 Biblioteka zarządzająca urządzeniami CXL.
144
145 %package -n cxl-devel
146 Summary:        Header fiels for cxl library
147 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki cxl
148 License:        LGPL v2.1+
149 Group:          Development/Libraries
150 Requires:       cxl-libs = %{version}-%{release}
151 Requires:       libuuid-devel
152
153 %description -n cxl-devel
154 Header fiels for cxl library.
155
156 %description -n cxl-devel -l pl.UTF-8
157 Pliki nagłówkowe biblioteki cxl.
158
159 %package -n cxl-static
160 Summary:        Static cxl library
161 Summary(pl.UTF-8):      Statyczna biblioteka cxl
162 License:        LGPL v2.1+
163 Group:          Development/Libraries
164 Requires:       %{name}-devel = %{version}-%{release}
165
166 %description -n cxl-static
167 Static cxl library.
168
169 %description -n cxl-static -l pl.UTF-8
170 Statyczna biblioteka cxl.
171
172 %package -n daxctl
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}
178
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
183 a filesystem.
184
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
189 systemu plików.
190
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}
197
198 %description -n bash-completion-daxctl
199 Bash completion for daxctl command.
200
201 %description -n bash-completion-daxctl -l pl.UTF-8
202 Bashowe uzupełnianie parametrów polecenia daxctl.
203
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"
207 License:        LGPL v2.1+
208 Group:          Libraries
209
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.
214
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ń.
219
220 %package -n daxctl-devel
221 Summary:        Header fiels for daxctl library
222 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki daxctl
223 License:        LGPL v2.1+
224 Group:          Development/Libraries
225 Requires:       daxctl-libs = %{version}-%{release}
226 Requires:       libuuid-devel
227
228 %description -n daxctl-devel
229 Header fiels for daxctl library.
230
231 %description -n daxctl-devel -l pl.UTF-8
232 Pliki nagłówkowe biblioteki daxctl.
233
234 %package -n daxctl-static
235 Summary:        Static daxctl library
236 Summary(pl.UTF-8):      Statyczna biblioteka daxctl
237 License:        LGPL v2.1+
238 Group:          Development/Libraries
239 Requires:       %{name}-devel = %{version}-%{release}
240
241 %description -n daxctl-static
242 Static daxctl library.
243
244 %description -n daxctl-static -l pl.UTF-8
245 Statyczna biblioteka daxctl.
246
247 %prep
248 %setup -q
249 %patch0 -p1
250
251 echo '%{version}' >version
252
253 %build
254 ./git-version-gen
255 %{__libtoolize}
256 %{__aclocal} -I m4
257 %{__autoconf}
258 %{__autoheader}
259 %{__automake}
260 %configure \
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}
267 %{__make}
268
269 %install
270 rm -rf $RPM_BUILD_ROOT
271
272 %{__make} install \
273         DESTDIR=$RPM_BUILD_ROOT
274
275 # obsoleted by pkg-config
276 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
277
278 %clean
279 rm -rf $RPM_BUILD_ROOT
280
281 %post   libs -p /sbin/ldconfig
282 %postun libs -p /sbin/ldconfig
283
284 %post   -n cxl-libs -p /sbin/ldconfig
285 %postun -n cxl-libs -p /sbin/ldconfig
286
287 %post   -n daxctl-libs -p /sbin/ldconfig
288 %postun -n daxctl-libs -p /sbin/ldconfig
289
290 %files
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
299 %if %{with systemd}
300 %{systemdunitdir}/ndctl-monitor.service
301 %endif
302 %{_mandir}/man1/ndctl.1*
303 %{_mandir}/man1/ndctl-*.1*
304
305 %files -n bash-completion-ndctl
306 %defattr(644,root,root,755)
307 %{bash_compdir}/ndctl
308
309 %files libs
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libndctl.so.*.*.*
312 %attr(755,root,root) %ghost %{_libdir}/libndctl.so.6
313
314 %files devel
315 %attr(755,root,root) %{_libdir}/libndctl.so
316 %defattr(644,root,root,755)
317 %{_includedir}/ndctl
318 %{_pkgconfigdir}/libndctl.pc
319
320 %if %{with static_libs}
321 %files static
322 %defattr(644,root,root,755)
323 %{_libdir}/libndctl.a
324 %endif
325
326 %files -n cxl
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_bindir}/cxl
329 %{_mandir}/man1/cxl.1*
330 %{_mandir}/man1/cxl-*.1*
331
332 %files -n bash-completion-cxl
333 %defattr(644,root,root,755)
334 %{bash_compdir}/cxl
335
336 %files -n cxl-libs
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libcxl.so.*.*.*
339 %attr(755,root,root) %ghost %{_libdir}/libcxl.so.1
340
341 %files -n cxl-devel
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_libdir}/libcxl.so
344 %{_includedir}/cxl
345 %{_pkgconfigdir}/libcxl.pc
346 %{_mandir}/man3/cxl_new.3*
347 %{_mandir}/man3/libcxl.3*
348
349 %if %{with static_libs}
350 %files -n cxl-static
351 %defattr(644,root,root,755)
352 %{_libdir}/libcxl.a
353 %endif
354
355 %files -n daxctl
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_bindir}/daxctl
358 %dir %{_sysconfdir}/daxctl.conf.d
359 %{_datadir}/daxctl
360 /lib/udev/rules.d/90-daxctl-device.rules
361 %if %{with systemd}
362 %{systemdunitdir}/daxdev-reconfigure@.service
363 %endif
364 %{_mandir}/man1/daxctl.1*
365 %{_mandir}/man1/daxctl-*.1*
366
367 %files -n bash-completion-daxctl
368 %defattr(644,root,root,755)
369 %{bash_compdir}/daxctl
370
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
376
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
382
383 %if %{with static_libs}
384 %files -n daxctl-static
385 %defattr(644,root,root,755)
386 %{_libdir}/libdaxctl.a
387 %endif
This page took 0.35196 seconds and 2 git commands to generate.