]>
Commit | Line | Data |
---|---|---|
c9fe5483 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without libfabric # RPMEM component | |
5 | %bcond_without ndctl # daxio component | |
6 | # | |
7 | Summary: Persistent Memory Development Kit | |
8 | Summary(pl.UTF-8): Persistent Memory Development Kit - oprogramowanie do obsługi pamięci nieulotnej | |
9 | Name: pmdk | |
ab389158 | 10 | Version: 1.5 |
c9fe5483 JB |
11 | Release: 1 |
12 | License: BSD | |
13 | Group: Applications/System | |
14 | #Source0Download: https://github.com/pmem/pmdk/releases | |
15 | Source0: https://github.com/pmem/pmdk/archive/%{version}/%{name}-%{version}.tar.gz | |
ab389158 | 16 | # Source0-md5: 32cf94f0c8f754c94e5b91fd41ea102c |
c9fe5483 JB |
17 | URL: http://pmem.io/pmdk/ |
18 | BuildRequires: autoconf >= 2.50 | |
19 | %{?with_ndctl:BuildRequires: daxctl-devel >= 59.2} | |
20 | %{?with_libfabric:BuildRequires: libfabric-devel >= 1.4.2} | |
c9fe5483 JB |
21 | %{?with_ndctl:BuildRequires: ndctl-devel >= 59.2} |
22 | BuildRequires: pkgconfig | |
ab389158 | 23 | BuildRequires: rpmbuild(macros) >= 1.673 |
c9fe5483 JB |
24 | Requires: %{name}-libs = %{version}-%{release} |
25 | ExclusiveArch: %{x8664} aarch64 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | PMDK is a collection of libraries and utilities for using Non-Volatile | |
30 | Memory. | |
31 | ||
32 | This package contains command-line utility pmempool - standalone tool | |
33 | for off-line pool management. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | PMDK to zbiór bibliotek i narzędzi do wykorzystywania pamięci | |
37 | nieulotnej (Non-Volatile Memory). | |
38 | ||
39 | Ten pakiet zawiera narzędzie linii poleceń pmemtool - samodzielne | |
40 | narzędzie do zarządzania pamięcią off-line. | |
41 | ||
ab389158 JB |
42 | %package python |
43 | Summary: Python based PMDK utilities | |
44 | Summary(pl.UTF-8): Narzędzia PMDK napisane w Pythonie | |
45 | Group: Applications/System | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | ||
48 | %description python | |
49 | Python based PMDK utilities. Currently it contains: | |
50 | - pmreorder: store reordering tool | |
51 | ||
52 | %description python -l pl.UTF-8 | |
53 | Narzędzia PMDK napisane w Pythonie. Obecnie zawierają: | |
54 | - pmreorder: narzędzie do zmiany kolejności zapisów | |
55 | ||
c9fe5483 JB |
56 | %package -n bash-completion-pmdk |
57 | Summary: Bash completion for PMDK utilities | |
58 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów poleceń PMDK | |
59 | Group: Applications/Shells | |
60 | Requires: %{name} = %{version}-%{release} | |
ab389158 | 61 | Requires: bash-completion >= 2.0 |
c9fe5483 JB |
62 | |
63 | %description -n bash-completion-pmdk | |
64 | Bash completion for PMDK pmempool utility. | |
65 | ||
66 | %description -n bash-completion-pmdk -l pl.UTF-8 | |
67 | Bashowe uzupełnianie parametrów polecenia PMDK pmempool. | |
68 | ||
69 | %package libs | |
70 | Summary: Persistent Memory Development Kit shared libraries | |
71 | Summary(pl.UTF-8): Biblioteki współdzielone Persistent Memory Development Kit | |
72 | Group: Libraries | |
73 | ||
74 | %description libs | |
75 | This package contains a collection of libraries for using Non-Volatile | |
76 | Memory (NVM): | |
77 | - libpmem - basic pmem operations like flushing | |
78 | - libpmemblk, libpmemlog, libpmemobj - pmem transactions | |
79 | - libvmem, libvmmalloc - volatile use of pmem | |
80 | - libpmempool - persistent memory pool management | |
c9fe5483 JB |
81 | |
82 | %description libs -l pl.UTF-8 | |
83 | Ten pakiet zawiera zestaw bibliotek do wykorzystywania pamięci | |
84 | nieulotnej (NVM - Non-Volatile Memory): | |
85 | - libpmem - podstawowe operacje pmem, takie jak flush | |
86 | - libpmemblk, libpmemlog, libpmemobj - transakcje pmem | |
87 | - libvmem, libvmmalloc - ulotne wykorzystanie pmem | |
88 | - libpmempool - zarządzanie pulą pamięci nieulotnej | |
c9fe5483 JB |
89 | |
90 | %package devel | |
91 | Summary: Header files for PMDK libraries | |
92 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek PMDK | |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-libs = %{version}-%{release} | |
95 | ||
96 | %description devel | |
97 | Header files for PMDK libraries. | |
98 | ||
99 | %description devel -l pl.UTF-8 | |
100 | Pliki nagłówkowe bibliotek PMDK. | |
101 | ||
102 | %package static | |
103 | Summary: Static PMDK libraries | |
104 | Summary(pl.UTF-8): Statyczne biblioteki PMDK | |
105 | Group: Development/Libraries | |
106 | Requires: %{name}-devel = %{version}-%{release} | |
107 | ||
108 | %description static | |
109 | Static PMDK libraries. | |
110 | ||
111 | %description static -l pl.UTF-8 | |
112 | Statyczne biblioteki PMDK. | |
113 | ||
c9fe5483 JB |
114 | %package dax |
115 | Summary: PMDK utility for Device-DAX devices | |
116 | Summary(pl.UTF-8): Narzędzie PMDK do urządzeń Device-DAX | |
117 | Group: Applications/System | |
118 | Requires: %{name}-libs = %{version}-%{release} | |
119 | Requires: daxctl-libs >= 59.2 | |
120 | Requires: ndctl-libs >= 59.2 | |
121 | ||
122 | %description dax | |
123 | PMDK is a collection of libraries and utilities for using Non-Volatile | |
124 | Memory. | |
125 | ||
126 | This package contains command-line utility daxio - perform I/O on | |
127 | Device-DAX devices or zero a Device-DAX device. | |
128 | ||
129 | %description dax -l pl.UTF-8 | |
130 | PMDK to zbiór bibliotek i narzędzi do wykorzystywania pamięci | |
131 | nieulotnej (Non-Volatile Memory). | |
132 | ||
133 | Ten pakiet zawiera narzędzie linii poleceń daxio - wykonywanie | |
134 | operacji we/wy lub zerowanie urządzeń Device-DAX. | |
135 | ||
136 | %package rpmem | |
137 | Summary: PMDK process for remote persistent memory access | |
138 | Summary(pl.UTF-8): Proces PMDK do zdalnego dostępu do pamięci nieulotnej | |
139 | Group: Applications/System | |
140 | Requires: %{name}-rpmem-libs = %{version}-%{release} | |
141 | ||
142 | %description rpmem | |
143 | PMDK is a collection of libraries and utilities for using Non-Volatile | |
144 | Memory. | |
145 | ||
146 | This package contains rpmemd - librpmem target node process. | |
147 | ||
148 | %description rpmem -l pl.UTF-8 | |
149 | PMDK to zbiór bibliotek i narzędzi do wykorzystywania pamięci | |
150 | nieulotnej (Non-Volatile Memory). | |
151 | ||
152 | Ten pakiet zawiera rpmemd - proces librpmem uruchamiany na docelowych | |
153 | węzłach. | |
154 | ||
155 | %package rpmem-libs | |
156 | Summary: Library for remote access to persistent memory | |
157 | Summary(pl.UTF-8): Biblioteka do zdalnego dostępu do pamięci nieulotnej | |
158 | Group: Libraries | |
159 | Requires: %{name}-libs = %{version}-%{release} | |
160 | Requires: libfabric >= 1.4.2 | |
161 | ||
162 | %description rpmem-libs | |
163 | This package contains a collection of libraries for using Non-Volatile | |
164 | Memory (NVM): | |
165 | - librpmem - remote access to persistent memory (EXPERIMENTAL) | |
166 | ||
167 | %description rpmem-libs -l pl.UTF-8 | |
168 | Ten pakiet zawiera zestaw bibliotek do wykorzystywania pamięci | |
169 | nieulotnej (NVM - Non-Volatile Memory): | |
170 | - librpmem - zdalny dostęp do pamięci nieulotnej (EKSPERYMENTALNA) | |
171 | ||
172 | %package rpmem-devel | |
173 | Summary: Header file for rpmem library | |
174 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki rpmem | |
175 | Group: Development/Libraries | |
176 | Requires: %{name}-devel = %{version}-%{release} | |
177 | Requires: %{name}-rpmem-libs = %{version}-%{release} | |
178 | Requires: libfabric-devel >= 1.4.2 | |
179 | ||
180 | %description rpmem-devel | |
181 | Header file for rpmem library. | |
182 | ||
183 | %description rpmem-devel -l pl.UTF-8 | |
184 | Plik nagłówkowy biblioteki rpmem. | |
185 | ||
186 | %package rpmem-static | |
187 | Summary: Static rpmem library | |
188 | Summary(pl.UTF-8): Statyczna biblioteka rpmem | |
189 | Group: Development/Libraries | |
190 | Requires: %{name}-rpmem-devel = %{version}-%{release} | |
191 | ||
192 | %description rpmem-static | |
193 | Static rpmem library. | |
194 | ||
195 | %description rpmem-static -l pl.UTF-8 | |
196 | Statyczna biblioteka rpmem. | |
197 | ||
198 | %prep | |
199 | %setup -q | |
200 | ||
201 | %build | |
202 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
203 | %{__make} -j1 \ | |
204 | CC="%{__cc}" \ | |
205 | %{!?with_libfabric:BUILD_RPMEM=n} \ | |
206 | %{?with_ndctl:NDCTL_ENABLE=y} \ | |
207 | includedir=%{_includedir} \ | |
208 | libdir=%{_libdir} \ | |
209 | prefix=%{_prefix} \ | |
210 | sysconfdir=%{_sysconfdir} | |
211 | ||
212 | %install | |
213 | rm -rf $RPM_BUILD_ROOT | |
214 | ||
215 | %{__make} install \ | |
216 | DESTDIR=$RPM_BUILD_ROOT \ | |
217 | %{!?with_libfabric:BUILD_RPMEM=n} \ | |
218 | %{?with_ndctl:NDCTL_ENABLE=y} \ | |
ab389158 | 219 | bashcompdir=%{bash_compdir} \ |
c9fe5483 JB |
220 | includedir=%{_includedir} \ |
221 | libdir=%{_libdir} \ | |
222 | prefix=%{_prefix} \ | |
223 | sysconfdir=%{_sysconfdir} | |
224 | ||
225 | # debug libraries - needed for anything? | |
226 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/pmdk_debug | |
c9fe5483 JB |
227 | |
228 | %clean | |
229 | rm -rf $RPM_BUILD_ROOT | |
230 | ||
231 | %post libs -p /sbin/ldconfig | |
232 | %postun libs -p /sbin/ldconfig | |
233 | ||
234 | %post rpmem-libs -p /sbin/ldconfig | |
235 | %postun rpmem-libs -p /sbin/ldconfig | |
236 | ||
237 | %files | |
238 | %defattr(644,root,root,755) | |
239 | %doc src/tools/pmempool/README | |
240 | %attr(755,root,root) %{_bindir}/pmempool | |
241 | %{_mandir}/man1/pmempool.1* | |
242 | %{_mandir}/man1/pmempool-check.1* | |
243 | %{_mandir}/man1/pmempool-convert.1* | |
244 | %{_mandir}/man1/pmempool-create.1* | |
245 | %{_mandir}/man1/pmempool-dump.1* | |
ab389158 | 246 | %{_mandir}/man1/pmempool-feature.1* |
c9fe5483 JB |
247 | %{_mandir}/man1/pmempool-info.1* |
248 | %{_mandir}/man1/pmempool-rm.1* | |
249 | %{_mandir}/man1/pmempool-sync.1* | |
250 | %{_mandir}/man1/pmempool-transform.1* | |
ab389158 | 251 | %{_mandir}/man5/pmem_ctl.5* |
c9fe5483 JB |
252 | %{_mandir}/man5/poolset.5* |
253 | ||
ab389158 JB |
254 | %files python |
255 | %defattr(644,root,root,755) | |
256 | %attr(755,root,root) %{_bindir}/pmreorder | |
257 | %{_mandir}/man1/pmreorder.1* | |
258 | %{_datadir}/pmreorder | |
259 | ||
c9fe5483 JB |
260 | %files -n bash-completion-pmdk |
261 | %defattr(644,root,root,755) | |
ab389158 | 262 | %{bash_compdir}/pmempool |
c9fe5483 JB |
263 | |
264 | %files libs | |
265 | %defattr(644,root,root,755) | |
266 | %doc ChangeLog LICENSE | |
267 | %attr(755,root,root) %{_libdir}/libpmem.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libpmem.so.1 | |
269 | %attr(755,root,root) %{_libdir}/libpmemblk.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libpmemblk.so.1 | |
c9fe5483 JB |
271 | %attr(755,root,root) %{_libdir}/libpmemlog.so.*.*.* |
272 | %attr(755,root,root) %ghost %{_libdir}/libpmemlog.so.1 | |
273 | %attr(755,root,root) %{_libdir}/libpmemobj.so.*.*.* | |
274 | %attr(755,root,root) %ghost %{_libdir}/libpmemobj.so.1 | |
275 | %attr(755,root,root) %{_libdir}/libpmempool.so.*.*.* | |
276 | %attr(755,root,root) %ghost %{_libdir}/libpmempool.so.1 | |
277 | %attr(755,root,root) %{_libdir}/libvmem.so.*.*.* | |
278 | %attr(755,root,root) %ghost %{_libdir}/libvmem.so.1 | |
279 | %attr(755,root,root) %{_libdir}/libvmmalloc.so.*.*.* | |
280 | %attr(755,root,root) %ghost %{_libdir}/libvmmalloc.so.1 | |
281 | ||
282 | %files devel | |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_libdir}/libpmem.so | |
285 | %attr(755,root,root) %{_libdir}/libpmemblk.so | |
c9fe5483 JB |
286 | %attr(755,root,root) %{_libdir}/libpmemlog.so |
287 | %attr(755,root,root) %{_libdir}/libpmemobj.so | |
288 | %attr(755,root,root) %{_libdir}/libpmempool.so | |
289 | %attr(755,root,root) %{_libdir}/libvmem.so | |
290 | %attr(755,root,root) %{_libdir}/libvmmalloc.so | |
291 | %{_includedir}/libpmemobj | |
292 | %{_includedir}/libpmem*.h | |
293 | %{_includedir}/libvmem.h | |
294 | %{_includedir}/libvmmalloc.h | |
295 | %{_pkgconfigdir}/libpmem.pc | |
296 | %{_pkgconfigdir}/libpmemblk.pc | |
c9fe5483 JB |
297 | %{_pkgconfigdir}/libpmemlog.pc |
298 | %{_pkgconfigdir}/libpmemobj.pc | |
299 | %{_pkgconfigdir}/libpmempool.pc | |
300 | %{_pkgconfigdir}/libvmem.pc | |
301 | %{_pkgconfigdir}/libvmmalloc.pc | |
302 | %{_mandir}/man3/d_ro.3* | |
303 | %{_mandir}/man3/d_rw.3* | |
304 | %{_mandir}/man3/direct_ro.3* | |
305 | %{_mandir}/man3/direct_rw.3* | |
306 | %{_mandir}/man3/oid_equals.3* | |
307 | %{_mandir}/man3/oid_instanceof.3* | |
308 | %{_mandir}/man3/oid_is_null.3* | |
309 | %{_mandir}/man3/pmem_*.3* | |
310 | %{_mandir}/man3/pmemblk_*.3* | |
c9fe5483 JB |
311 | %{_mandir}/man3/pmemlog_*.3* |
312 | %{_mandir}/man3/pmemobj_*.3* | |
313 | %{_mandir}/man3/pmempool_*.3* | |
314 | %{_mandir}/man3/pobj_*.3* | |
315 | %{_mandir}/man3/toid.3* | |
316 | %{_mandir}/man3/toid_*.3* | |
317 | %{_mandir}/man3/tx_*.3* | |
318 | %{_mandir}/man3/vmem_*.3* | |
319 | %{_mandir}/man7/libpmem.7* | |
320 | %{_mandir}/man7/libpmemblk.7* | |
c9fe5483 JB |
321 | %{_mandir}/man7/libpmemlog.7* |
322 | %{_mandir}/man7/libpmemobj.7* | |
323 | %{_mandir}/man7/libpmempool.7* | |
324 | %{_mandir}/man7/libvmem.7* | |
325 | %{_mandir}/man7/libvmmalloc.7* | |
326 | ||
327 | %files static | |
328 | %defattr(644,root,root,755) | |
329 | %{_libdir}/libpmem.a | |
330 | %{_libdir}/libpmemblk.a | |
c9fe5483 JB |
331 | %{_libdir}/libpmemlog.a |
332 | %{_libdir}/libpmemobj.a | |
333 | %{_libdir}/libpmempool.a | |
334 | %{_libdir}/libvmem.a | |
335 | %{_libdir}/libvmmalloc.a | |
336 | ||
c9fe5483 JB |
337 | %if %{with ndctl} |
338 | %files dax | |
339 | %defattr(644,root,root,755) | |
340 | %doc src/tools/daxio/README | |
341 | %attr(755,root,root) %{_bindir}/daxio | |
342 | %{_mandir}/man1/daxio.1* | |
343 | %endif | |
344 | ||
345 | %if %{with libfabric} | |
346 | %files rpmem | |
347 | %defattr(644,root,root,755) | |
348 | %doc src/tools/rpmemd/README | |
349 | %attr(755,root,root) %{_bindir}/rpmemd | |
350 | %{_mandir}/man1/rpmemd.1* | |
351 | ||
352 | %files rpmem-libs | |
353 | %defattr(644,root,root,755) | |
354 | %attr(755,root,root) %{_libdir}/librpmem.so.*.*.* | |
355 | %attr(755,root,root) %ghost %{_libdir}/librpmem.so.1 | |
356 | ||
357 | %files rpmem-devel | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_libdir}/librpmem.so | |
360 | %{_includedir}/librpmem.h | |
361 | %{_pkgconfigdir}/librpmem.pc | |
362 | %{_mandir}/man3/rpmem_*.3* | |
363 | %{_mandir}/man7/librpmem.7* | |
364 | ||
365 | %files rpmem-static | |
366 | %defattr(644,root,root,755) | |
367 | %{_libdir}/librpmem.a | |
368 | %endif |