]>
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 | |
aceff9f5 | 10 | Version: 1.8 |
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 | |
aceff9f5 | 16 | # Source0-md5: c291191dc6c0a31c7b794de3eb85fd7f |
c9fe5483 JB |
17 | URL: http://pmem.io/pmdk/ |
18 | BuildRequires: autoconf >= 2.50 | |
85f66601 | 19 | %{?with_ndctl:BuildRequires: daxctl-devel >= 64.1} |
c9fe5483 | 20 | %{?with_libfabric:BuildRequires: libfabric-devel >= 1.4.2} |
85f66601 | 21 | %{?with_ndctl:BuildRequires: ndctl-devel >= 64.1} |
c9fe5483 | 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 | |
c9fe5483 | 79 | - libpmempool - persistent memory pool management |
c9fe5483 JB |
80 | |
81 | %description libs -l pl.UTF-8 | |
82 | Ten pakiet zawiera zestaw bibliotek do wykorzystywania pamięci | |
83 | nieulotnej (NVM - Non-Volatile Memory): | |
84 | - libpmem - podstawowe operacje pmem, takie jak flush | |
85 | - libpmemblk, libpmemlog, libpmemobj - transakcje pmem | |
c9fe5483 | 86 | - libpmempool - zarządzanie pulą pamięci nieulotnej |
c9fe5483 JB |
87 | |
88 | %package devel | |
89 | Summary: Header files for PMDK libraries | |
90 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek PMDK | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-libs = %{version}-%{release} | |
93 | ||
94 | %description devel | |
95 | Header files for PMDK libraries. | |
96 | ||
97 | %description devel -l pl.UTF-8 | |
98 | Pliki nagłówkowe bibliotek PMDK. | |
99 | ||
100 | %package static | |
101 | Summary: Static PMDK libraries | |
102 | Summary(pl.UTF-8): Statyczne biblioteki PMDK | |
103 | Group: Development/Libraries | |
104 | Requires: %{name}-devel = %{version}-%{release} | |
105 | ||
106 | %description static | |
107 | Static PMDK libraries. | |
108 | ||
109 | %description static -l pl.UTF-8 | |
110 | Statyczne biblioteki PMDK. | |
111 | ||
c9fe5483 JB |
112 | %package dax |
113 | Summary: PMDK utility for Device-DAX devices | |
114 | Summary(pl.UTF-8): Narzędzie PMDK do urządzeń Device-DAX | |
115 | Group: Applications/System | |
116 | Requires: %{name}-libs = %{version}-%{release} | |
85f66601 JB |
117 | Requires: daxctl-libs >= 64.1 |
118 | Requires: ndctl-libs >= 64.1 | |
c9fe5483 JB |
119 | |
120 | %description dax | |
121 | PMDK is a collection of libraries and utilities for using Non-Volatile | |
122 | Memory. | |
123 | ||
124 | This package contains command-line utility daxio - perform I/O on | |
125 | Device-DAX devices or zero a Device-DAX device. | |
126 | ||
127 | %description dax -l pl.UTF-8 | |
128 | PMDK to zbiór bibliotek i narzędzi do wykorzystywania pamięci | |
129 | nieulotnej (Non-Volatile Memory). | |
130 | ||
131 | Ten pakiet zawiera narzędzie linii poleceń daxio - wykonywanie | |
132 | operacji we/wy lub zerowanie urządzeń Device-DAX. | |
133 | ||
134 | %package rpmem | |
135 | Summary: PMDK process for remote persistent memory access | |
136 | Summary(pl.UTF-8): Proces PMDK do zdalnego dostępu do pamięci nieulotnej | |
137 | Group: Applications/System | |
138 | Requires: %{name}-rpmem-libs = %{version}-%{release} | |
139 | ||
140 | %description rpmem | |
141 | PMDK is a collection of libraries and utilities for using Non-Volatile | |
142 | Memory. | |
143 | ||
144 | This package contains rpmemd - librpmem target node process. | |
145 | ||
146 | %description rpmem -l pl.UTF-8 | |
147 | PMDK to zbiór bibliotek i narzędzi do wykorzystywania pamięci | |
148 | nieulotnej (Non-Volatile Memory). | |
149 | ||
150 | Ten pakiet zawiera rpmemd - proces librpmem uruchamiany na docelowych | |
151 | węzłach. | |
152 | ||
153 | %package rpmem-libs | |
154 | Summary: Library for remote access to persistent memory | |
155 | Summary(pl.UTF-8): Biblioteka do zdalnego dostępu do pamięci nieulotnej | |
156 | Group: Libraries | |
157 | Requires: %{name}-libs = %{version}-%{release} | |
158 | Requires: libfabric >= 1.4.2 | |
159 | ||
160 | %description rpmem-libs | |
161 | This package contains a collection of libraries for using Non-Volatile | |
162 | Memory (NVM): | |
163 | - librpmem - remote access to persistent memory (EXPERIMENTAL) | |
164 | ||
165 | %description rpmem-libs -l pl.UTF-8 | |
166 | Ten pakiet zawiera zestaw bibliotek do wykorzystywania pamięci | |
167 | nieulotnej (NVM - Non-Volatile Memory): | |
168 | - librpmem - zdalny dostęp do pamięci nieulotnej (EKSPERYMENTALNA) | |
169 | ||
170 | %package rpmem-devel | |
171 | Summary: Header file for rpmem library | |
172 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki rpmem | |
173 | Group: Development/Libraries | |
174 | Requires: %{name}-devel = %{version}-%{release} | |
175 | Requires: %{name}-rpmem-libs = %{version}-%{release} | |
176 | Requires: libfabric-devel >= 1.4.2 | |
177 | ||
178 | %description rpmem-devel | |
179 | Header file for rpmem library. | |
180 | ||
181 | %description rpmem-devel -l pl.UTF-8 | |
182 | Plik nagłówkowy biblioteki rpmem. | |
183 | ||
184 | %package rpmem-static | |
185 | Summary: Static rpmem library | |
186 | Summary(pl.UTF-8): Statyczna biblioteka rpmem | |
187 | Group: Development/Libraries | |
188 | Requires: %{name}-rpmem-devel = %{version}-%{release} | |
189 | ||
190 | %description rpmem-static | |
191 | Static rpmem library. | |
192 | ||
193 | %description rpmem-static -l pl.UTF-8 | |
194 | Statyczna biblioteka rpmem. | |
195 | ||
196 | %prep | |
197 | %setup -q | |
198 | ||
199 | %build | |
200 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
201 | %{__make} -j1 \ | |
202 | CC="%{__cc}" \ | |
203 | %{!?with_libfabric:BUILD_RPMEM=n} \ | |
204 | %{?with_ndctl:NDCTL_ENABLE=y} \ | |
205 | includedir=%{_includedir} \ | |
206 | libdir=%{_libdir} \ | |
207 | prefix=%{_prefix} \ | |
208 | sysconfdir=%{_sysconfdir} | |
209 | ||
210 | %install | |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
213 | %{__make} install \ | |
214 | DESTDIR=$RPM_BUILD_ROOT \ | |
215 | %{!?with_libfabric:BUILD_RPMEM=n} \ | |
216 | %{?with_ndctl:NDCTL_ENABLE=y} \ | |
ab389158 | 217 | bashcompdir=%{bash_compdir} \ |
c9fe5483 JB |
218 | includedir=%{_includedir} \ |
219 | libdir=%{_libdir} \ | |
220 | prefix=%{_prefix} \ | |
221 | sysconfdir=%{_sysconfdir} | |
222 | ||
223 | # debug libraries - needed for anything? | |
224 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/pmdk_debug | |
c9fe5483 JB |
225 | |
226 | %clean | |
227 | rm -rf $RPM_BUILD_ROOT | |
228 | ||
229 | %post libs -p /sbin/ldconfig | |
230 | %postun libs -p /sbin/ldconfig | |
231 | ||
232 | %post rpmem-libs -p /sbin/ldconfig | |
233 | %postun rpmem-libs -p /sbin/ldconfig | |
234 | ||
235 | %files | |
236 | %defattr(644,root,root,755) | |
237 | %doc src/tools/pmempool/README | |
238 | %attr(755,root,root) %{_bindir}/pmempool | |
239 | %{_mandir}/man1/pmempool.1* | |
240 | %{_mandir}/man1/pmempool-check.1* | |
241 | %{_mandir}/man1/pmempool-convert.1* | |
242 | %{_mandir}/man1/pmempool-create.1* | |
243 | %{_mandir}/man1/pmempool-dump.1* | |
ab389158 | 244 | %{_mandir}/man1/pmempool-feature.1* |
c9fe5483 JB |
245 | %{_mandir}/man1/pmempool-info.1* |
246 | %{_mandir}/man1/pmempool-rm.1* | |
247 | %{_mandir}/man1/pmempool-sync.1* | |
248 | %{_mandir}/man1/pmempool-transform.1* | |
ab389158 | 249 | %{_mandir}/man5/pmem_ctl.5* |
c9fe5483 JB |
250 | %{_mandir}/man5/poolset.5* |
251 | ||
ab389158 JB |
252 | %files python |
253 | %defattr(644,root,root,755) | |
254 | %attr(755,root,root) %{_bindir}/pmreorder | |
255 | %{_mandir}/man1/pmreorder.1* | |
256 | %{_datadir}/pmreorder | |
257 | ||
c9fe5483 JB |
258 | %files -n bash-completion-pmdk |
259 | %defattr(644,root,root,755) | |
ab389158 | 260 | %{bash_compdir}/pmempool |
c9fe5483 JB |
261 | |
262 | %files libs | |
263 | %defattr(644,root,root,755) | |
264 | %doc ChangeLog LICENSE | |
265 | %attr(755,root,root) %{_libdir}/libpmem.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libpmem.so.1 | |
267 | %attr(755,root,root) %{_libdir}/libpmemblk.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libpmemblk.so.1 | |
c9fe5483 JB |
269 | %attr(755,root,root) %{_libdir}/libpmemlog.so.*.*.* |
270 | %attr(755,root,root) %ghost %{_libdir}/libpmemlog.so.1 | |
271 | %attr(755,root,root) %{_libdir}/libpmemobj.so.*.*.* | |
272 | %attr(755,root,root) %ghost %{_libdir}/libpmemobj.so.1 | |
273 | %attr(755,root,root) %{_libdir}/libpmempool.so.*.*.* | |
274 | %attr(755,root,root) %ghost %{_libdir}/libpmempool.so.1 | |
c9fe5483 JB |
275 | |
276 | %files devel | |
277 | %defattr(644,root,root,755) | |
278 | %attr(755,root,root) %{_libdir}/libpmem.so | |
279 | %attr(755,root,root) %{_libdir}/libpmemblk.so | |
c9fe5483 JB |
280 | %attr(755,root,root) %{_libdir}/libpmemlog.so |
281 | %attr(755,root,root) %{_libdir}/libpmemobj.so | |
282 | %attr(755,root,root) %{_libdir}/libpmempool.so | |
c9fe5483 JB |
283 | %{_includedir}/libpmemobj |
284 | %{_includedir}/libpmem*.h | |
c9fe5483 JB |
285 | %{_pkgconfigdir}/libpmem.pc |
286 | %{_pkgconfigdir}/libpmemblk.pc | |
c9fe5483 JB |
287 | %{_pkgconfigdir}/libpmemlog.pc |
288 | %{_pkgconfigdir}/libpmemobj.pc | |
289 | %{_pkgconfigdir}/libpmempool.pc | |
c9fe5483 JB |
290 | %{_mandir}/man3/d_ro.3* |
291 | %{_mandir}/man3/d_rw.3* | |
292 | %{_mandir}/man3/direct_ro.3* | |
293 | %{_mandir}/man3/direct_rw.3* | |
294 | %{_mandir}/man3/oid_equals.3* | |
295 | %{_mandir}/man3/oid_instanceof.3* | |
296 | %{_mandir}/man3/oid_is_null.3* | |
297 | %{_mandir}/man3/pmem_*.3* | |
298 | %{_mandir}/man3/pmemblk_*.3* | |
c9fe5483 JB |
299 | %{_mandir}/man3/pmemlog_*.3* |
300 | %{_mandir}/man3/pmemobj_*.3* | |
301 | %{_mandir}/man3/pmempool_*.3* | |
302 | %{_mandir}/man3/pobj_*.3* | |
303 | %{_mandir}/man3/toid.3* | |
304 | %{_mandir}/man3/toid_*.3* | |
305 | %{_mandir}/man3/tx_*.3* | |
c9fe5483 JB |
306 | %{_mandir}/man7/libpmem.7* |
307 | %{_mandir}/man7/libpmemblk.7* | |
c9fe5483 JB |
308 | %{_mandir}/man7/libpmemlog.7* |
309 | %{_mandir}/man7/libpmemobj.7* | |
310 | %{_mandir}/man7/libpmempool.7* | |
c9fe5483 JB |
311 | |
312 | %files static | |
313 | %defattr(644,root,root,755) | |
314 | %{_libdir}/libpmem.a | |
315 | %{_libdir}/libpmemblk.a | |
c9fe5483 JB |
316 | %{_libdir}/libpmemlog.a |
317 | %{_libdir}/libpmemobj.a | |
318 | %{_libdir}/libpmempool.a | |
c9fe5483 | 319 | |
c9fe5483 JB |
320 | %if %{with ndctl} |
321 | %files dax | |
322 | %defattr(644,root,root,755) | |
323 | %doc src/tools/daxio/README | |
324 | %attr(755,root,root) %{_bindir}/daxio | |
325 | %{_mandir}/man1/daxio.1* | |
326 | %endif | |
327 | ||
328 | %if %{with libfabric} | |
329 | %files rpmem | |
330 | %defattr(644,root,root,755) | |
331 | %doc src/tools/rpmemd/README | |
332 | %attr(755,root,root) %{_bindir}/rpmemd | |
333 | %{_mandir}/man1/rpmemd.1* | |
334 | ||
335 | %files rpmem-libs | |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/librpmem.so.*.*.* | |
338 | %attr(755,root,root) %ghost %{_libdir}/librpmem.so.1 | |
339 | ||
340 | %files rpmem-devel | |
341 | %defattr(644,root,root,755) | |
342 | %attr(755,root,root) %{_libdir}/librpmem.so | |
343 | %{_includedir}/librpmem.h | |
344 | %{_pkgconfigdir}/librpmem.pc | |
345 | %{_mandir}/man3/rpmem_*.3* | |
346 | %{_mandir}/man7/librpmem.7* | |
347 | ||
348 | %files rpmem-static | |
349 | %defattr(644,root,root,755) | |
350 | %{_libdir}/librpmem.a | |
351 | %endif |