Blame SPECS/nvml.spec

cabd7a
cabd7a
Name:		nvml
cabd7a
Version:	1.1
cabd7a
Release:	4%{?dist}
cabd7a
Summary:	Non-Volatile Memory Library
cabd7a
License:	BSD
cabd7a
URL:		http://pmem.io/nvml
cabd7a
Source0:	https://github.com/pmem/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
cabd7a
cabd7a
BuildRequires:	glibc-devel
cabd7a
BuildRequires:	autoconf
cabd7a
BuildRequires:	automake
cabd7a
BuildRequires:	man
cabd7a
BuildRequires:	pkgconfig
cabd7a
cabd7a
cabd7a
# Debug variants of the libraries should be filtered out of the provides.
cabd7a
%global __provides_exclude_from ^%{_libdir}/nvml_debug/.*\\.so.*$
cabd7a
cabd7a
cabd7a
# By design, NVML does not support any 32-bit architecture.
cabd7a
# Due to dependency on xmmintrin.h and some inline assembly, it can be
cabd7a
# compiled only for x86_64 at the moment.
cabd7a
# Other 64-bit architectures could also be supported, if only there is
cabd7a
# a request for that, and if somebody provides the arch-specific
cabd7a
# implementation of the low-level routines for flushing to persistent
cabd7a
# memory.
cabd7a
# https://bugzilla.redhat.com/show_bug.cgi?id=1340634
cabd7a
# https://bugzilla.redhat.com/show_bug.cgi?id=1340635
cabd7a
# https://bugzilla.redhat.com/show_bug.cgi?id=1340636
cabd7a
# https://bugzilla.redhat.com/show_bug.cgi?id=1340637
cabd7a
ExclusiveArch: x86_64
cabd7a
cabd7a
%description
cabd7a
The NVM Library is a collection of libraries for using memory-mapped
cabd7a
persistence, optimized specifically for persistent memory.
cabd7a
cabd7a
cabd7a
%package -n libpmem
cabd7a
Summary: Low-level persistent memory support library
cabd7a
Group: System Environment/Libraries
cabd7a
%description -n libpmem
cabd7a
The libpmem provides low level persistent memory support. In particular,
cabd7a
support for the persistent memory instructions for flushing changes
cabd7a
to pmem is provided.
cabd7a
cabd7a
%files -n libpmem
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_datadir}/nvml
cabd7a
%{_libdir}/libpmem.so.*
cabd7a
%{_datadir}/nvml/nvml.magic
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmem-devel
cabd7a
Summary: Development files for the low-level persistent memory library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmem = %{version}-%{release}
cabd7a
%description -n libpmem-devel
cabd7a
The libpmem provides low level persistent memory support. In particular,
cabd7a
support for the persistent memory instructions for flushing changes
cabd7a
to pmem is provided.
cabd7a
cabd7a
This library is provided for software which tracks every store to
cabd7a
pmem and needs to flush those changes to durability. Most developers
cabd7a
will find higher level libraries like libpmemobj to be much more
cabd7a
convenient.
cabd7a
cabd7a
%files -n libpmem-devel
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmem.so
cabd7a
%{_libdir}/pkgconfig/libpmem.pc
cabd7a
%{_includedir}/libpmem.h
cabd7a
%{_mandir}/man3/libpmem.3.gz
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmem-debug
cabd7a
Summary: Debug variant of the low-level persistent memory library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmem = %{version}-%{release}
cabd7a
%description -n libpmem-debug
cabd7a
The libpmem provides low level persistent memory support. In particular,
cabd7a
support for the persistent memory instructions for flushing changes
cabd7a
to pmem is provided.
cabd7a
cabd7a
This sub-package contains debug variant of the library, providing
cabd7a
run-time assertions and trace points. The typical way to access the
cabd7a
debug version is to set the environment variable LD_LIBRARY_PATH to
cabd7a
/usr/lib64/nvml_debug.
cabd7a
cabd7a
%files -n libpmem-debug
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_libdir}/nvml_debug
cabd7a
%{_libdir}/nvml_debug/libpmem.so
cabd7a
%{_libdir}/nvml_debug/libpmem.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemblk
cabd7a
Summary: Persistent Memory Resident Array of Blocks library
cabd7a
Group: System Environment/Libraries
cabd7a
Requires: libpmem >= %{version}-%{release}
cabd7a
%description -n libpmemblk
cabd7a
The libpmemblk implements a pmem-resident array of blocks, all the same
cabd7a
size, where a block is updated atomically with respect to power
cabd7a
failure or program interruption (no torn blocks).
cabd7a
cabd7a
%files -n libpmemblk
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmemblk.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemblk-devel
cabd7a
Summary: Development files for the Persistent Memory Resident Array of Blocks library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmemblk = %{version}-%{release}
cabd7a
Requires: libpmem-devel = %{version}-%{release}
cabd7a
%description -n libpmemblk-devel
cabd7a
The libpmemblk implements a pmem-resident array of blocks, all the same
cabd7a
size, where a block is updated atomically with respect to power
cabd7a
failure or program interruption (no torn blocks).
cabd7a
cabd7a
For example, a program keeping a cache of fixed-size objects in pmem
cabd7a
might find this library useful. This library is provided for cases
cabd7a
requiring large arrays of objects at least 512 bytes each. Most
cabd7a
developers will find higher level libraries like libpmemobj to be
cabd7a
more generally useful.
cabd7a
cabd7a
%files -n libpmemblk-devel
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmemblk.so
cabd7a
%{_libdir}/pkgconfig/libpmemblk.pc
cabd7a
%{_includedir}/libpmemblk.h
cabd7a
%{_mandir}/man3/libpmemblk.3.gz
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemblk-debug
cabd7a
Summary: Debug variant of the Persistent Memory Resident Array of Blocks library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmemblk = %{version}-%{release}
cabd7a
%description -n libpmemblk-debug
cabd7a
The libpmemblk implements a pmem-resident array of blocks, all the same
cabd7a
size, where a block is updated atomically with respect to power
cabd7a
failure or program interruption (no torn blocks).
cabd7a
cabd7a
This sub-package contains debug variant of the library, providing
cabd7a
run-time assertions and trace points. The typical way to access the
cabd7a
debug version is to set the environment variable LD_LIBRARY_PATH to
cabd7a
/usr/lib64/nvml_debug.
cabd7a
cabd7a
%files -n libpmemblk-debug
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_libdir}/nvml_debug
cabd7a
%{_libdir}/nvml_debug/libpmemblk.so
cabd7a
%{_libdir}/nvml_debug/libpmemblk.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemlog
cabd7a
Summary: Persistent Memory Resident Log File library
cabd7a
Group: System Environment/Libraries
cabd7a
Requires: libpmem >= %{version}-%{release}
cabd7a
%description -n libpmemlog
cabd7a
The libpmemlog library provides a pmem-resident log file. This is
cabd7a
useful for programs like databases that append frequently to a log
cabd7a
file.
cabd7a
cabd7a
%files -n libpmemlog
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmemlog.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemlog-devel
cabd7a
Summary: Development files for the Persistent Memory Resident Log File library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmemlog = %{version}-%{release}
cabd7a
Requires: libpmem-devel = %{version}-%{release}
cabd7a
%description -n libpmemlog-devel
cabd7a
The libpmemlog library provides a pmem-resident log file. This
cabd7a
library is provided for cases requiring an append-mostly file to
cabd7a
record variable length entries. Most developers will find higher
cabd7a
level libraries like libpmemobj to be more generally useful.
cabd7a
cabd7a
%files -n libpmemlog-devel
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmemlog.so
cabd7a
%{_libdir}/pkgconfig/libpmemlog.pc
cabd7a
%{_includedir}/libpmemlog.h
cabd7a
%{_mandir}/man3/libpmemlog.3.gz
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemlog-debug
cabd7a
Summary: Debug variant of the Persistent Memory Resident Log File library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmemlog = %{version}-%{release}
cabd7a
%description -n libpmemlog-debug
cabd7a
The libpmemlog library provides a pmem-resident log file. This
cabd7a
library is provided for cases requiring an append-mostly file to
cabd7a
record variable length entries. Most developers will find higher
cabd7a
level libraries like libpmemobj to be more generally useful.
cabd7a
cabd7a
This sub-package contains debug variant of the library, providing
cabd7a
run-time assertions and trace points. The typical way to access the
cabd7a
debug version is to set the environment variable LD_LIBRARY_PATH to
cabd7a
/usr/lib64/nvml_debug.
cabd7a
cabd7a
%files -n libpmemlog-debug
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_libdir}/nvml_debug
cabd7a
%{_libdir}/nvml_debug/libpmemlog.so
cabd7a
%{_libdir}/nvml_debug/libpmemlog.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemobj
cabd7a
Summary: Persistent Memory Transactional Object Store library
cabd7a
Group: System Environment/Libraries
cabd7a
Requires: libpmem >= %{version}-%{release}
cabd7a
%description -n libpmemobj
cabd7a
The libpmemobj library provides a transactional object store,
cabd7a
providing memory allocation, transactions, and general facilities for
cabd7a
persistent memory programming.
cabd7a
cabd7a
%files -n libpmemobj
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmemobj.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemobj-devel
cabd7a
Summary: Development files for the Persistent Memory Transactional Object Store library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmemobj = %{version}-%{release}
cabd7a
Requires: libpmem-devel = %{version}-%{release}
cabd7a
%description -n libpmemobj-devel
cabd7a
The libpmemobj library provides a transactional object store,
cabd7a
providing memory allocation, transactions, and general facilities for
cabd7a
persistent memory programming. Developers new to persistent memory
cabd7a
probably want to start with this library.
cabd7a
cabd7a
%files -n libpmemobj-devel
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmemobj.so
cabd7a
%{_libdir}/pkgconfig/libpmemobj.pc
cabd7a
%{_includedir}/libpmemobj.h
cabd7a
%{_mandir}/man3/libpmemobj.3.gz
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmemobj-debug
cabd7a
Summary: Debug variant of the Persistent Memory Transactional Object Store library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmemobj = %{version}-%{release}
cabd7a
%description -n libpmemobj-debug
cabd7a
The libpmemobj library provides a transactional object store,
cabd7a
providing memory allocation, transactions, and general facilities for
cabd7a
persistent memory programming. Developers new to persistent memory
cabd7a
probably want to start with this library.
cabd7a
cabd7a
This sub-package contains debug variant of the library, providing
cabd7a
run-time assertions and trace points. The typical way to access the
cabd7a
debug version is to set the environment variable LD_LIBRARY_PATH to
cabd7a
/usr/lib64/nvml_debug.
cabd7a
cabd7a
%files -n libpmemobj-debug
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_libdir}/nvml_debug
cabd7a
%{_libdir}/nvml_debug/libpmemobj.so
cabd7a
%{_libdir}/nvml_debug/libpmemobj.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libvmem
cabd7a
Summary: Volatile Memory allocation library
cabd7a
Group: System Environment/Libraries
cabd7a
%description -n libvmem
cabd7a
The libvmem library turns a pool of persistent memory into a volatile
cabd7a
memory pool, similar to the system heap but kept separate and with
cabd7a
its own malloc-style API.
cabd7a
cabd7a
%files -n libvmem
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libvmem.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libvmem-devel
cabd7a
Summary: Development files for the Volatile Memory allocation library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libvmem = %{version}-%{release}
cabd7a
%description -n libvmem-devel
cabd7a
The libvmem library turns a pool of persistent memory into a volatile
cabd7a
memory pool, similar to the system heap but kept separate and with
cabd7a
its own malloc-style API.
cabd7a
cabd7a
This sub-package contains libraries and header files for developing
cabd7a
applications that want to make use of libvmem.
cabd7a
cabd7a
%files -n libvmem-devel
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libvmem.so
cabd7a
%{_libdir}/pkgconfig/libvmem.pc
cabd7a
%{_includedir}/libvmem.h
cabd7a
%{_mandir}/man3/libvmem.3.gz
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libvmem-debug
cabd7a
Summary: Debug variant of the Volatile Memory allocation library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libvmem = %{version}-%{release}
cabd7a
%description -n libvmem-debug
cabd7a
The libvmem library turns a pool of persistent memory into a volatile
cabd7a
memory pool, similar to the system heap but kept separate and with
cabd7a
its own malloc-style API.
cabd7a
cabd7a
This sub-package contains debug variant of the library, providing
cabd7a
run-time assertions and trace points. The typical way to access the
cabd7a
debug version is to set the environment variable LD_LIBRARY_PATH to
cabd7a
/usr/lib64/nvml_debug.
cabd7a
cabd7a
%files -n libvmem-debug
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_libdir}/nvml_debug
cabd7a
%{_libdir}/nvml_debug/libvmem.so
cabd7a
%{_libdir}/nvml_debug/libvmem.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libvmmalloc
cabd7a
Summary: Dynamic to Persistent Memory allocation translation library
cabd7a
Group: System Environment/Libraries
cabd7a
%description -n libvmmalloc
cabd7a
The libvmmalloc library transparently converts all the dynamic memory
cabd7a
allocations into persistent memory allocations. This allows the use
cabd7a
of persistent memory as volatile memory without modifying the target
cabd7a
application.
cabd7a
cabd7a
The typical usage of libvmmalloc is to load it via the LD_PRELOAD
cabd7a
environment variable.
cabd7a
cabd7a
%files -n libvmmalloc
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libvmmalloc.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libvmmalloc-devel
cabd7a
Summary: Development files for the Dynamic-to-Persistent allocation library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libvmmalloc = %{version}-%{release}
cabd7a
%description -n libvmmalloc-devel
cabd7a
The libvmmalloc library transparently converts all the dynamic memory
cabd7a
allocations into persistent memory allocations. This allows the use
cabd7a
of persistent memory as volatile memory without modifying the target
cabd7a
application.
cabd7a
cabd7a
This sub-package contains libraries and header files for developing
cabd7a
applications that want to specifically make use of libvmmalloc.
cabd7a
cabd7a
%files -n libvmmalloc-devel
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libvmmalloc.so
cabd7a
%{_libdir}/pkgconfig/libvmmalloc.pc
cabd7a
%{_includedir}/libvmmalloc.h
cabd7a
%{_mandir}/man3/libvmmalloc.3.gz
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libvmmalloc-debug
cabd7a
Summary: Debug variant of the Dynamic-to-Persistent allocation library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libvmmalloc = %{version}-%{release}
cabd7a
%description -n libvmmalloc-debug
cabd7a
The libvmmalloc library transparently converts all the dynamic memory
cabd7a
allocations into persistent memory allocations. This allows the use
cabd7a
of persistent memory as volatile memory without modifying the target
cabd7a
application.
cabd7a
cabd7a
This sub-package contains debug variant of the library, providing
cabd7a
run-time assertions and trace points. The typical way to access the
cabd7a
debug version is to set the environment variable LD_LIBRARY_PATH to
cabd7a
/usr/lib64/nvml_debug.
cabd7a
cabd7a
%files -n libvmmalloc-debug
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_libdir}/nvml_debug
cabd7a
%{_libdir}/nvml_debug/libvmmalloc.so
cabd7a
%{_libdir}/nvml_debug/libvmmalloc.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmempool
cabd7a
Summary: Persistent Memory pool management library
cabd7a
Group: System Environment/Libraries
cabd7a
Requires: libpmem >= %{version}-%{release}
cabd7a
%description -n libpmempool
cabd7a
The libpmempool library provides a set of utilities for off-line administration,
cabd7a
analysis, diagnostics and repair of persistent memory pools created
cabd7a
by libpmemlog, libpemblk and libpmemobj libraries.
cabd7a
cabd7a
%files -n libpmempool
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmempool.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmempool-devel
cabd7a
Summary: Development files for Persistent Memory pool management library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmempool = %{version}-%{release}
cabd7a
Requires: libpmem-devel = %{version}-%{release}
cabd7a
%description -n libpmempool-devel
cabd7a
The libpmempool library provides a set of utilities for off-line administration,
cabd7a
analysis, diagnostics and repair of persistent memory pools created
cabd7a
by libpmemlog, libpemblk and libpmemobj libraries.
cabd7a
cabd7a
%files -n libpmempool-devel
cabd7a
%defattr(644,root,root,-)
cabd7a
%{_libdir}/libpmempool.so
cabd7a
%{_libdir}/pkgconfig/libpmempool.pc
cabd7a
%{_includedir}/libpmempool.h
cabd7a
%{_mandir}/man3/libpmempool.3.gz
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package -n libpmempool-debug
cabd7a
Summary: Debug variant of the Persistent Memory pool management library
cabd7a
Group: Development/Libraries
cabd7a
Requires: libpmempool = %{version}-%{release}
cabd7a
%description -n libpmempool-debug
cabd7a
The libpmempool library provides a set of utilities for off-line administration,
cabd7a
analysis, diagnostics and repair of persistent memory pools created
cabd7a
by libpmemlog, libpemblk and libpmemobj libraries.
cabd7a
cabd7a
This sub-package contains debug variant of the library, providing
cabd7a
run-time assertions and trace points. The typical way to access the
cabd7a
debug version is to set the environment variable LD_LIBRARY_PATH to
cabd7a
/usr/lib64/nvml_debug.
cabd7a
cabd7a
%files -n libpmempool-debug
cabd7a
%defattr(644,root,root,-)
cabd7a
%dir %{_libdir}/nvml_debug
cabd7a
%{_libdir}/nvml_debug/libpmempool.so
cabd7a
%{_libdir}/nvml_debug/libpmempool.so.*
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%package tools
cabd7a
Summary: Utilities for Persistent Memory
cabd7a
Group: System Environment/Base
cabd7a
Requires: libpmem >= %{version}-%{release}
cabd7a
Requires: libpmemlog >= %{version}-%{release}
cabd7a
Requires: libpmemblk >= %{version}-%{release}
cabd7a
Requires: libpmemobj >= %{version}-%{release}
cabd7a
Requires: libpmempool >= %{version}-%{release}
cabd7a
%description tools
cabd7a
Useful applications for administration and diagnosis of persistent memory.
cabd7a
cabd7a
%files tools
cabd7a
%{_bindir}/pmempool
cabd7a
%{_mandir}/man1/pmempool.1.gz
cabd7a
%{_mandir}/man1/pmempool-info.1.gz
cabd7a
%{_mandir}/man1/pmempool-create.1.gz
cabd7a
%{_mandir}/man1/pmempool-dump.1.gz
cabd7a
%{_mandir}/man1/pmempool-check.1.gz
cabd7a
%{_mandir}/man1/pmempool-rm.1.gz
cabd7a
%{_mandir}/man1/pmempool-convert.1.gz
cabd7a
%config(noreplace) %{_sysconfdir}/bash_completion.d/pmempool.sh
cabd7a
%license LICENSE
cabd7a
%doc ChangeLog CONTRIBUTING.md README.md
cabd7a
cabd7a
cabd7a
%prep
cabd7a
%setup -q -n %{name}-%{version}
cabd7a
cabd7a
cabd7a
%build
cabd7a
# Currently, NVML makefiles do not allow to easily override CFLAGS,
cabd7a
# so the build flags are passed via EXTRA_CFLAGS.  For debug build
cabd7a
# selected flags are overriden to disable compiler optimizations.
cabd7a
EXTRA_CFLAGS_RELEASE="%{optflags}" \
cabd7a
EXTRA_CFLAGS_DEBUG="%{optflags} -Wp,-U_FORTIFY_SOURCE -O0" \
cabd7a
EXTRA_CXXFLAGS="%{optflags}" \
cabd7a
make %{?_smp_mflags}
cabd7a
cabd7a
cabd7a
# Override LIB_AR with empty string to skip installation of static libraries
cabd7a
%install
cabd7a
make install DESTDIR=%{buildroot} \
cabd7a
	LIB_AR= \
cabd7a
	prefix=%{_prefix} \
cabd7a
	libdir=%{_libdir} \
cabd7a
	includedir=%{_includedir} \
cabd7a
	mandir=%{_mandir} \
cabd7a
	bindir=%{_bindir} \
cabd7a
	sysconfdir=%{_sysconfdir}
cabd7a
mkdir -p %{buildroot}%{_datadir}/nvml
cabd7a
cp utils/nvml.magic %{buildroot}%{_datadir}/nvml/
cabd7a
cabd7a
cabd7a
%check
cabd7a
cp src/test/testconfig.sh.example src/test/testconfig.sh
cabd7a
make check
cabd7a
cabd7a
cabd7a
%post   -n libpmem -p /sbin/ldconfig
cabd7a
%postun -n libpmem -p /sbin/ldconfig
cabd7a
%post   -n libpmemblk -p /sbin/ldconfig
cabd7a
%postun -n libpmemblk -p /sbin/ldconfig
cabd7a
%post   -n libpmemlog -p /sbin/ldconfig
cabd7a
%postun -n libpmemlog -p /sbin/ldconfig
cabd7a
%post   -n libpmemobj -p /sbin/ldconfig
cabd7a
%postun -n libpmemobj -p /sbin/ldconfig
cabd7a
%post   -n libvmem -p /sbin/ldconfig
cabd7a
%postun -n libvmem -p /sbin/ldconfig
cabd7a
%post   -n libvmmalloc -p /sbin/ldconfig
cabd7a
%postun -n libvmmalloc -p /sbin/ldconfig
cabd7a
%post   -n libpmempool -p /sbin/ldconfig
cabd7a
%postun -n libpmempool -p /sbin/ldconfig
cabd7a
cabd7a
cabd7a
%if 0%{?__debug_package} == 0
cabd7a
%debug_package
cabd7a
%endif
cabd7a
cabd7a
cabd7a
%changelog
cabd7a
* Thu Jul 14 2016 Jeff Moyer <jmoyer@redhat.com> - 1.1-4.el7
cabd7a
- Add missing version dependencies between packages
cabd7a
- Resolves: bz#1274541
cabd7a
cabd7a
* Mon Jul 11 2016 Jeff Moyer <jmoyer@redhat.com> - 1.1-3.el7
cabd7a
- Initial import for RHEL 7
cabd7a
- Resolves: bz#1274541
cabd7a
cabd7a
* Mon Jul 11 2016 Krzysztof Czurylo <krzysztof.czurylo@intel.com> - 1.1-2
cabd7a
- Move debug variants of the libraries to -debug subpackages
cabd7a
cabd7a
* Sun Jun 26 2016 Krzysztof Czurylo <krzysztof.czurylo@intel.com> - 1.1-1
cabd7a
- NVML 1.1 release
cabd7a
- Update link to source tarball
cabd7a
- Add libpmempool subpackage
cabd7a
- Remove obsolete patches
cabd7a
cabd7a
* Wed Jun 01 2016 Dan HorĂ¡k <dan[at]danny.cz> - 1.0-3
cabd7a
- switch to ExclusiveArch
cabd7a
cabd7a
* Sun May 29 2016 Krzysztof Czurylo <krzysztof.czurylo@intel.com> - 1.0-2
cabd7a
- Exclude PPC architecture
cabd7a
- Add bug numbers for excluded architectures
cabd7a
cabd7a
* Tue May 24 2016 Krzysztof Czurylo <krzysztof.czurylo@intel.com> - 1.0-1
cabd7a
- Initial RPM release