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