|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
%define min_ndctl_ver 60.1
|
|
|
|
|
|
|
|
|
|
Name: pmdk
|
|
|
|
|
Version: 1.6.1
|
|
|
|
|
Version: 1.12.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Persistent Memory Development Kit (former NVML)
|
|
|
|
|
License: BSD
|
|
|
|
@ -25,14 +25,18 @@ URL: http://pmem.io/pmdk
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/pmem/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch0: pmdk-use-platform-python.patch
|
|
|
|
|
Patch1: Makefile-bypass-check-doc-in-check.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: man
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: pandoc
|
|
|
|
|
BuildRequires: groff
|
|
|
|
|
|
|
|
|
|
%if %{with ndctl}
|
|
|
|
|
BuildRequires: ndctl-devel >= %{min_ndctl_ver}
|
|
|
|
@ -48,8 +52,12 @@ BuildRequires: libfabric-devel >= %{min_libfabric_ver}
|
|
|
|
|
%global __provides_exclude_from ^%{_libdir}/pmdk_debug/.*\\.so.*$
|
|
|
|
|
|
|
|
|
|
# By design, PMDK does not support any 32-bit architecture.
|
|
|
|
|
# Due to dependency on xmmintrin.h and some inline assembly, it can be
|
|
|
|
|
# compiled only for x86_64 at the moment.
|
|
|
|
|
# Due to dependency on some inline assembly, PMDK can be compiled only
|
|
|
|
|
# on these architectures:
|
|
|
|
|
# - x86_64
|
|
|
|
|
# - ppc64le (experimental)
|
|
|
|
|
# - aarch64 (unmaintained, supporting hardware doesn't exist?)
|
|
|
|
|
#
|
|
|
|
|
# Other 64-bit architectures could also be supported, if only there is
|
|
|
|
|
# a request for that, and if somebody provides the arch-specific
|
|
|
|
|
# implementation of the low-level routines for flushing to persistent
|
|
|
|
@ -57,10 +65,9 @@ BuildRequires: libfabric-devel >= %{min_libfabric_ver}
|
|
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1340634
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1340635
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1340636
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1340637
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
|
ExclusiveArch: x86_64 ppc64le
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Persistent Memory Development Kit is a collection of libraries for
|
|
|
|
@ -335,133 +342,6 @@ debug version is to set the environment variable LD_LIBRARY_PATH to
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libvmem
|
|
|
|
|
Summary: Volatile Memory allocation library
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
%description -n libvmem
|
|
|
|
|
The libvmem library turns a pool of persistent memory into a volatile
|
|
|
|
|
memory pool, similar to the system heap but kept separate and with
|
|
|
|
|
its own malloc-style API.
|
|
|
|
|
|
|
|
|
|
%files -n libvmem
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/libvmem.so.*
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libvmem-devel
|
|
|
|
|
Summary: Development files for the Volatile Memory allocation library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: libvmem = %{version}-%{release}
|
|
|
|
|
%description -n libvmem-devel
|
|
|
|
|
The libvmem library turns a pool of persistent memory into a volatile
|
|
|
|
|
memory pool, similar to the system heap but kept separate and with
|
|
|
|
|
its own malloc-style API.
|
|
|
|
|
|
|
|
|
|
This sub-package contains libraries and header files for developing
|
|
|
|
|
applications that want to make use of libvmem.
|
|
|
|
|
|
|
|
|
|
%files -n libvmem-devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/libvmem.so
|
|
|
|
|
%{_libdir}/pkgconfig/libvmem.pc
|
|
|
|
|
%{_includedir}/libvmem.h
|
|
|
|
|
%{_mandir}/man7/libvmem.7.gz
|
|
|
|
|
%{_mandir}/man3/vmem_*.3.gz
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libvmem-debug
|
|
|
|
|
Summary: Debug variant of the Volatile Memory allocation library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: libvmem = %{version}-%{release}
|
|
|
|
|
%description -n libvmem-debug
|
|
|
|
|
The libvmem library turns a pool of persistent memory into a volatile
|
|
|
|
|
memory pool, similar to the system heap but kept separate and with
|
|
|
|
|
its own malloc-style API.
|
|
|
|
|
|
|
|
|
|
This sub-package contains debug variant of the library, providing
|
|
|
|
|
run-time assertions and trace points. The typical way to access the
|
|
|
|
|
debug version is to set the environment variable LD_LIBRARY_PATH to
|
|
|
|
|
/usr/lib64/pmdk_debug.
|
|
|
|
|
|
|
|
|
|
%files -n libvmem-debug
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%dir %{_libdir}/pmdk_debug
|
|
|
|
|
%{_libdir}/pmdk_debug/libvmem.so
|
|
|
|
|
%{_libdir}/pmdk_debug/libvmem.so.*
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libvmmalloc
|
|
|
|
|
Summary: Dynamic to Persistent Memory allocation translation library
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
%description -n libvmmalloc
|
|
|
|
|
The libvmmalloc library transparently converts all the dynamic memory
|
|
|
|
|
allocations into persistent memory allocations. This allows the use
|
|
|
|
|
of persistent memory as volatile memory without modifying the target
|
|
|
|
|
application.
|
|
|
|
|
|
|
|
|
|
The typical usage of libvmmalloc is to load it via the LD_PRELOAD
|
|
|
|
|
environment variable.
|
|
|
|
|
|
|
|
|
|
%files -n libvmmalloc
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/libvmmalloc.so.*
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libvmmalloc-devel
|
|
|
|
|
Summary: Development files for the Dynamic-to-Persistent allocation library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: libvmmalloc = %{version}-%{release}
|
|
|
|
|
%description -n libvmmalloc-devel
|
|
|
|
|
The libvmmalloc library transparently converts all the dynamic memory
|
|
|
|
|
allocations into persistent memory allocations. This allows the use
|
|
|
|
|
of persistent memory as volatile memory without modifying the target
|
|
|
|
|
application.
|
|
|
|
|
|
|
|
|
|
This sub-package contains libraries and header files for developing
|
|
|
|
|
applications that want to specifically make use of libvmmalloc.
|
|
|
|
|
|
|
|
|
|
%files -n libvmmalloc-devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/libvmmalloc.so
|
|
|
|
|
%{_libdir}/pkgconfig/libvmmalloc.pc
|
|
|
|
|
%{_includedir}/libvmmalloc.h
|
|
|
|
|
%{_mandir}/man7/libvmmalloc.7.gz
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libvmmalloc-debug
|
|
|
|
|
Summary: Debug variant of the Dynamic-to-Persistent allocation library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: libvmmalloc = %{version}-%{release}
|
|
|
|
|
%description -n libvmmalloc-debug
|
|
|
|
|
The libvmmalloc library transparently converts all the dynamic memory
|
|
|
|
|
allocations into persistent memory allocations. This allows the use
|
|
|
|
|
of persistent memory as volatile memory without modifying the target
|
|
|
|
|
application.
|
|
|
|
|
|
|
|
|
|
This sub-package contains debug variant of the library, providing
|
|
|
|
|
run-time assertions and trace points. The typical way to access the
|
|
|
|
|
debug version is to set the environment variable LD_LIBRARY_PATH to
|
|
|
|
|
/usr/lib64/pmdk_debug.
|
|
|
|
|
|
|
|
|
|
%files -n libvmmalloc-debug
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%dir %{_libdir}/pmdk_debug
|
|
|
|
|
%{_libdir}/pmdk_debug/libvmmalloc.so
|
|
|
|
|
%{_libdir}/pmdk_debug/libvmmalloc.so.*
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n libpmempool
|
|
|
|
|
Summary: Persistent Memory pool management library
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
@ -469,7 +349,7 @@ Requires: libpmem = %{version}-%{release}
|
|
|
|
|
%description -n libpmempool
|
|
|
|
|
The libpmempool library provides a set of utilities for off-line
|
|
|
|
|
administration, analysis, diagnostics and repair of persistent memory
|
|
|
|
|
pools created by libpmemlog, libpemblk and libpmemobj libraries.
|
|
|
|
|
pools created by libpmemlog, libpmemblk and libpmemobj libraries.
|
|
|
|
|
|
|
|
|
|
%files -n libpmempool
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
@ -486,7 +366,7 @@ Requires: libpmem-devel = %{version}-%{release}
|
|
|
|
|
%description -n libpmempool-devel
|
|
|
|
|
The libpmempool library provides a set of utilities for off-line
|
|
|
|
|
administration, analysis, diagnostics and repair of persistent memory
|
|
|
|
|
pools created by libpmemlog, libpemblk and libpmemobj libraries.
|
|
|
|
|
pools created by libpmemlog, libpmemblk and libpmemobj libraries.
|
|
|
|
|
|
|
|
|
|
%files -n libpmempool-devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
@ -508,7 +388,7 @@ Requires: libpmem = %{version}-%{release}
|
|
|
|
|
%description -n libpmempool-debug
|
|
|
|
|
The libpmempool library provides a set of utilities for off-line
|
|
|
|
|
administration, analysis, diagnostics and repair of persistent memory
|
|
|
|
|
pools created by libpmemlog, libpemblk and libpmemobj libraries.
|
|
|
|
|
pools created by libpmemlog, libpmemblk and libpmemobj libraries.
|
|
|
|
|
|
|
|
|
|
This sub-package contains debug variant of the library, providing
|
|
|
|
|
run-time assertions and trace points. The typical way to access the
|
|
|
|
@ -602,7 +482,8 @@ and facilitates access to persistent memory over RDMA.
|
|
|
|
|
%{_bindir}/rpmemd
|
|
|
|
|
%{_mandir}/man1/rpmemd.1.gz
|
|
|
|
|
|
|
|
|
|
%endif # _with_fabric
|
|
|
|
|
# _with_fabric
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package -n pmempool
|
|
|
|
|
Summary: Utilities for Persistent Memory
|
|
|
|
@ -668,7 +549,8 @@ a device.
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog CONTRIBUTING.md README.md
|
|
|
|
|
|
|
|
|
|
%endif # _with_ndctl
|
|
|
|
|
# _with_ndctl
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
@ -704,10 +586,6 @@ cp utils/pmdk.magic %{buildroot}%{_datadir}/pmdk/
|
|
|
|
|
%postun -n libpmemlog -p /sbin/ldconfig
|
|
|
|
|
%post -n libpmemobj -p /sbin/ldconfig
|
|
|
|
|
%postun -n libpmemobj -p /sbin/ldconfig
|
|
|
|
|
%post -n libvmem -p /sbin/ldconfig
|
|
|
|
|
%postun -n libvmem -p /sbin/ldconfig
|
|
|
|
|
%post -n libvmmalloc -p /sbin/ldconfig
|
|
|
|
|
%postun -n libvmmalloc -p /sbin/ldconfig
|
|
|
|
|
%post -n libpmempool -p /sbin/ldconfig
|
|
|
|
|
%postun -n libpmempool -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
@ -722,6 +600,20 @@ cp utils/pmdk.magic %{buildroot}%{_datadir}/pmdk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Nov 21 2022 Bryan Gurney <bgurney@redhat.com> - 1.12.1-1.el8
|
|
|
|
|
- Update to pmdk version 1.12.1
|
|
|
|
|
- Related: rhbz#2111428
|
|
|
|
|
|
|
|
|
|
* Tue Jan 25 2022 Bryan Gurney <bgurney@redhat.com> - 1.11.1-1.el8
|
|
|
|
|
- Update to pmdk version 1.11.1
|
|
|
|
|
- Related: rhbz#2009889
|
|
|
|
|
|
|
|
|
|
* Wed Jan 6 2021 Jeff Moyer <jmoyer@redhat.com> - 1.9.2-1.el8
|
|
|
|
|
- Package pmdk version 1.9.2 for stream 1-fileformat-v6-rhel-8.3.1
|
|
|
|
|
- libvmem is no longer packaged as part of pmdk.
|
|
|
|
|
- ppc64le packages are now built
|
|
|
|
|
- Related: rhbz#1524652, rhbz#1780388, rhbz#1854812, rhbz#1860860
|
|
|
|
|
|
|
|
|
|
* Fri Nov 1 2019 Jeff Moyer <jmoyer@redhat.com> - 1.6.1-1.el8
|
|
|
|
|
- Update to pmdk bugfix relase 1.6.1.
|
|
|
|
|
- Resolves: rhbz#1730675
|
|
|
|
|