]> git.pld-linux.org Git - packages/ndctl.git/blob - ndctl.spec
- updated to 63
[packages/ndctl.git] / ndctl.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static libraries
4 #
5 Summary:        Manage "libnvdimm" subsystem devices (Non-volatile Memory)
6 Summary(pl.UTF-8):      Zarządzanie urządzeniami podsystemu "libnvdimm" (pamięci nieulotnej)
7 Name:           ndctl
8 Version:        63
9 Release:        1
10 License:        LGPL v2.1+ (libraries), GPL v2+ with CC0 and MIT parts (utilities)
11 Group:          Applications/System
12 #Source0Download: https://github.com/pmem/ndctl/releases
13 Source0:        https://github.com/pmem/ndctl/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  a4e2fa6f776ff6c1ebf3ba9dcb660f8f
15 Patch0:         %{name}-bashcompdir.patch
16 URL:            http://pmem.io/ndctl/
17 # TODO: asciidoctor
18 BuildRequires:  asciidoc
19 BuildRequires:  autoconf >= 2.60
20 BuildRequires:  automake >= 1:1.11
21 BuildRequires:  json-c-devel
22 BuildRequires:  kmod-devel
23 BuildRequires:  libuuid-devel
24 BuildRequires:  libtool >= 2:2
25 BuildRequires:  pkgconfig
26 BuildRequires:  rpmbuild(macros) >= 1.673
27 BuildRequires:  udev-devel
28 BuildRequires:  xmlto
29 Requires:       %{name}-libs = %{version}-%{release}
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Utilities for managing the "libnvdimm" subsystem. The "libnvdimm"
34 subsystem defines a kernel device model and control message interface
35 for platform NVDIMM resources like those defined by the ACPI 6+ NFIT
36 (NVDIMM Firmware Interface Table).
37
38 %description -l pl.UTF-8
39 Narzędzia do zarządzania podsystemem "libnvdimm". Podsystem ten
40 definiuje model urządzeń jądra i interfejs komunikatów sterujących dla
41 specyficznych dla platformy zasobów NVDIMM, takich jak zdefiniowane w
42 ACPI 6+ NFIT (NVDIMM Firmware Interface Table).
43
44 %package -n bash-completion-ndctl
45 Summary:        Bash completion for ndctl command
46 Summary(pl.UTF-8):      Bashowe uzupełnianie parametrów polecenia ndctl
47 Group:          Applications/Shells
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       bash-completion >= 2.0
50
51 %description -n bash-completion-ndctl
52 Bash completion for ndctl command.
53
54 %description -n bash-completion-ndctl -l pl.UTF-8
55 Bashowe uzupełnianie parametrów polecenia ndctl.
56
57 %package libs
58 Summary:        Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
59 Summary(pl.UTF-8):      Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm" (pamięci nieulotnej)
60 License:        LGPL v2.1+
61 Group:          Libraries
62 Requires:       daxctl-libs = %{version}-%{release}
63
64 %description libs
65 Management library for "libnvdimm" subsystem devices (Non-volatile
66 Memory).
67
68 %description libs -l pl.UTF-8
69 Biblioteka zarządzająca do urządzeń podsystemu "libnvdimm"
70 (Non-volatile Memory - pamięci nieulotnej).
71
72 %package devel
73 Summary:        Header files for ndctl library
74 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ndctl
75 License:        LGPL v2.1+
76 Group:          Development/Libraries
77 Requires:       %{name}-libs = %{version}-%{release}
78 Requires:       daxctl-devel = %{version}-%{release}
79
80 %description devel
81 Header files for ndctl library.
82
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe biblioteki ndctl.
85
86 %package static
87 Summary:        Static ndctl library
88 Summary(pl.UTF-8):      Statyczna biblioteka ndctl
89 License:        LGPL v2.1+
90 Group:          Development/Libraries
91 Requires:       %{name}-devel = %{version}-%{release}
92
93 %description static
94 Static ndctl library.
95
96 %description static -l pl.UTF-8
97 Statyczna biblioteka ndctl.
98
99 %package -n daxctl
100 Summary:        Manage Device-DAX instances
101 Summary(pl.UTF-8):      Zarządzanie instancjami Device-DAX
102 License:        GPL v2+ with CC0 and MIT parts (utilities)
103 Group:          Applications/System
104 Requires:       daxctl-libs = %{version}-%{release}
105
106 %description -n daxctl
107 The daxctl utility provides enumeration and provisioning commands for
108 the Linux kernel Device-DAX facility. This facility enables DAX
109 mappings of performance/feature differentiated memory without need of
110 a filesystem.
111
112 %description -n daxctl -l pl.UTF-8
113 Narzędzie daxctl udostępnia polecenia do numerowania i zaopatrywania
114 funkcji Device-DAX jądra Linuksa. Funkcja ta włącza odwzorowanie DAX
115 pamięci o zróżnicowanej wydajności/funkcjonalności bez potrzeby
116 systemu plików.
117
118 %package -n daxctl-libs
119 Summary:        Management library for "Device DAX" devices
120 Summary(pl.UTF-8):      Biblioteka zarządzająca do urządzeń "Device DAX"
121 License:        LGPL v2.1+
122 Group:          Libraries
123
124 %description -n daxctl-libs
125 Device DAX is a facility for establishing DAX mappings of
126 performance/feature-differentiated memory. daxctl-libs provides an
127 enumeration/control API for these devices.
128
129 %description -n daxctl-libs -l pl.UTF-8
130 Device DAX to funkcja ustanawiająca odwzorowania DAX pamięci o
131 zróżnicowanej wydajności/funkcjonalności. Biblioteka daxctl-libs
132 dostarcza API do numerowania i kontroli tych urządzeń.
133
134 %package -n daxctl-devel
135 Summary:        Header fiels for daxctl library
136 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki daxctl
137 License:        LGPL v2.1+
138 Group:          Development/Libraries
139 Requires:       daxctl-libs = %{version}-%{release}
140 Requires:       libuuid-devel
141
142 %description -n daxctl-devel
143 Header fiels for daxctl library.
144
145 %description -n daxctl-devel -l pl.UTF-8
146 Pliki nagłówkowe biblioteki daxctl.
147
148 %package -n daxctl-static
149 Summary:        Static daxctl library
150 Summary(pl.UTF-8):      Statyczna biblioteka daxctl
151 License:        LGPL v2.1+
152 Group:          Development/Libraries
153 Requires:       %{name}-devel = %{version}-%{release}
154
155 %description -n daxctl-static
156 Static daxctl library.
157
158 %description -n daxctl-static -l pl.UTF-8
159 Statyczna biblioteka daxctl.
160
161 %prep
162 %setup -q
163 %patch0 -p1
164
165 echo '%{version}' >version
166
167 %build
168 ./git-version-gen
169 %{__libtoolize}
170 %{__aclocal} -I m4
171 %{__autoconf}
172 %{__autoheader}
173 %{__automake}
174 %configure \
175         --disable-asciidoctor \
176         --disable-silent-rules \
177         %{?with_static_libs:--enable-static} \
178         --with-bash=%{bash_compdir}
179 %{__make}
180
181 %install
182 rm -rf $RPM_BUILD_ROOT
183
184 %{__make} install \
185         DESTDIR=$RPM_BUILD_ROOT
186
187 # obsoleted by pkg-config
188 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
189
190 %clean
191 rm -rf $RPM_BUILD_ROOT
192
193 %post   libs -p /sbin/ldconfig
194 %postun libs -p /sbin/ldconfig
195
196 %post   -n daxctl-libs -p /sbin/ldconfig
197 %postun -n daxctl-libs -p /sbin/ldconfig
198
199 %files
200 %defattr(644,root,root,755)
201 %doc README.md licenses/{BSD-MIT,CC0}
202 %attr(755,root,root) %{_bindir}/ndctl
203 %dir %{_sysconfdir}/ndctl
204 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndctl/monitor.conf
205 %{systemdunitdir}/ndctl-monitor.service
206 %{_mandir}/man1/ndctl.1*
207 %{_mandir}/man1/ndctl-*.1*
208
209 %files -n bash-completion-ndctl
210 %defattr(644,root,root,755)
211 %{bash_compdir}/ndctl
212
213 %files libs
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/libndctl.so.*.*.*
216 %attr(755,root,root) %ghost %{_libdir}/libndctl.so.6
217
218 %files devel
219 %attr(755,root,root) %{_libdir}/libndctl.so
220 %defattr(644,root,root,755)
221 %{_includedir}/ndctl
222 %{_pkgconfigdir}/libndctl.pc
223
224 %if %{with static_libs}
225 %files static
226 %defattr(644,root,root,755)
227 %{_libdir}/libndctl.a
228 %endif
229
230 %files -n daxctl
231 %defattr(644,root,root,755)
232 %doc licenses/{BSD-MIT,CC0}
233 %attr(755,root,root) %{_bindir}/daxctl
234 %{_mandir}/man1/daxctl.1*
235 %{_mandir}/man1/daxctl-*.1*
236
237 %files -n daxctl-libs
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/libdaxctl.so.*.*.*
240 %attr(755,root,root) %ghost %{_libdir}/libdaxctl.so.1
241
242 %files -n daxctl-devel
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/libdaxctl.so
245 %{_includedir}/daxctl
246 %{_pkgconfigdir}/libdaxctl.pc
247
248 %if %{with static_libs}
249 %files -n daxctl-static
250 %defattr(644,root,root,755)
251 %{_libdir}/libdaxctl.a
252 %endif
This page took 0.087537 seconds and 3 git commands to generate.