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