anitazha / rpms / ndctl

Forked from rpms/ndctl 2 years ago
Clone
b256da
Name:		ndctl
b256da
Version:	54
b256da
Release:	1%{?dist}
b256da
Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
b256da
License:	GPLv2
b256da
Group:		System Environment/Base
b256da
Url:		https://github.com/pmem/ndctl
b256da
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
b256da
b256da
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
b256da
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
b256da
BuildRequires:	autoconf
b256da
BuildRequires:	asciidoc
b256da
BuildRequires:	xmlto
b256da
BuildRequires:	automake
b256da
BuildRequires:	libtool
b256da
BuildRequires:	pkgconfig
b256da
BuildRequires:	pkgconfig(libkmod)
b256da
BuildRequires:	pkgconfig(libudev)
b256da
BuildRequires:	pkgconfig(uuid)
b256da
BuildRequires:	pkgconfig(json-c)
b256da
BuildRequires:	pkgconfig(bash-completion)
b256da
b256da
%description
b256da
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
b256da
subsystem defines a kernel device model and control message interface for
b256da
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
b256da
Firmware Interface Table).
b256da
b256da
b256da
%package -n ndctl-devel
b256da
Summary:	Development files for libndctl
b256da
License:	LGPLv2
b256da
Group:		Development/Libraries
b256da
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
b256da
b256da
%description -n ndctl-devel
b256da
The %{name}-devel package contains libraries and header files for
b256da
developing applications that use %{name}.
b256da
b256da
%package -n daxctl-devel
b256da
Summary:	Development files for libdaxctl
b256da
License:	LGPLv2
b256da
Group:		Development/Libraries
b256da
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
b256da
b256da
%description -n daxctl-devel
b256da
The %{name}-devel package contains libraries and header files for
b256da
developing applications that use %{name}, a library for enumerating
b256da
"Device DAX" devices.  Device DAX is a facility for establishing DAX
b256da
mappings of performance / feature-differentiated memory.
b256da
b256da
b256da
%package -n ndctl-libs
b256da
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
b256da
License:	LGPLv2
b256da
Group:		System Environment/Libraries
b256da
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
b256da
b256da
b256da
%description -n ndctl-libs
b256da
Libraries for %{name}.
b256da
b256da
%package -n daxctl-libs
b256da
Summary:	Management library for "Device DAX" devices
b256da
License:	LGPLv2
b256da
Group:		System Environment/Libraries
b256da
b256da
%description -n daxctl-libs
b256da
Device DAX is a facility for establishing DAX mappings of performance /
b256da
feature-differentiated memory. daxctl-libs provides an enumeration /
b256da
control API for these devices.
b256da
b256da
b256da
%prep
b256da
%setup -q ndctl-%{version}
b256da
b256da
%build
b256da
echo %{version} > version
b256da
./autogen.sh
b256da
%configure --disable-static --enable-local --disable-silent-rules
b256da
make %{?_smp_mflags}
b256da
b256da
%install
b256da
%make_install
b256da
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
b256da
b256da
%check
b256da
make check
b256da
b256da
%post -n ndctl-libs -p /sbin/ldconfig
b256da
b256da
%postun -n ndctl-libs -p /sbin/ldconfig
b256da
b256da
%post -n daxctl-libs -p /sbin/ldconfig
b256da
b256da
%postun -n daxctl-libs -p /sbin/ldconfig
b256da
b256da
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
b256da
b256da
%files
b256da
%license licenses/GPLv2 licenses/BSD-MIT licenses/CC0
b256da
%{_bindir}/ndctl
b256da
%{_mandir}/man1/*
b256da
%{bashcompdir}/
b256da
b256da
%files -n ndctl-libs
b256da
%doc README.md
b256da
%license COPYING licenses/BSD-MIT licenses/CC0
b256da
%{_libdir}/libndctl.so.*
b256da
b256da
%files -n daxctl-libs
b256da
%doc README.md
b256da
%license COPYING licenses/BSD-MIT licenses/CC0
b256da
%{_libdir}/libdaxctl.so.*
b256da
b256da
%files -n ndctl-devel
b256da
%license COPYING
b256da
%{_includedir}/ndctl/
b256da
%{_libdir}/libndctl.so
b256da
%{_libdir}/pkgconfig/libndctl.pc
b256da
b256da
%files -n daxctl-devel
b256da
%license COPYING
b256da
%{_includedir}/daxctl/
b256da
%{_libdir}/libdaxctl.so
b256da
%{_libdir}/pkgconfig/libdaxctl.pc
b256da
b256da
b256da
%changelog
b256da
* Mon Aug 29 2016 Dave Anderson <anderson@redhat.com> - 54.1
b256da
- Update to 54.1 to address ixpdimm_sw requirements
b256da
- Resolves bz#1271425
b256da
b256da
* Wed Jul  6 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-4
b256da
- Fix up duplicate "-v" documentation in man page
b256da
- Fix bogus test in invalidate_namespace_options
b256da
- Resolves: bz#1350404 bz#1271425
b256da
b256da
* Mon Jun 20 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-3
b256da
- make ndctl Require ndctl-libs-{version}-{release}
b256da
- Resolves bz#1271425
b256da
b256da
* Wed Jun  1 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-2
b256da
- initial import for RHEL
b256da
- Resolves bz#1271425
b256da
b256da
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
b256da
- add daxctl-libs + daxctl-devel packages
b256da
- add bash completion
b256da
b256da
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
b256da
- Initial rpm submission to Fedora