anitazha / rpms / ndctl

Forked from rpms/ndctl 2 years ago
Clone
b256da
Name:		ndctl
4e69d4
Version:	58.2
4e69d4
Release:	3%{?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
4e69d4
Patch0:		9dc0d66-ndctl-fix-static-analysis-report-unchecked-sscanf.patch
4e69d4
Patch1:		btt_check_arenas-fix-use-of-uninitialized-variable.patch
4e69d4
Patch2:		4a934b7-ndctl-list-fix-crash-when-listing-idle-device-dax-instances.patch
4e69d4
Patch3:		e8700eb-btt_check_bitmap-initialize-rc.patch
4e69d4
Patch4:		5443d71-dax_io-fix-unknown-parameter-handling.patch
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)
4e69d4
%ifarch x86_64
4e69d4
BuildRequires:	pkgconfig(libpmem)
4e69d4
%endif
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
ab4840
%package -n daxctl
ab4840
Summary:        Manage Device-DAX instances
ab4840
License:        GPLv2
ab4840
Group:          System Environment/Base
ab4840
Requires:       daxctl-libs%{?_isa} = %{version}-%{release}
ab4840
ab4840
%description -n daxctl
ab4840
The daxctl utility provides enumeration and provisioning commands for
ab4840
the Linux kernel Device-DAX facility. This facility enables DAX mappings
ab4840
of performance / feature differentiated memory without need of a
ab4840
filesystem.
ab4840
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}
ab4840
%patch0 -p1
ab4840
%patch1 -p1
ab4840
%patch2 -p1
ab4840
%patch3 -p1
ab4840
%patch4 -p1
b256da
b256da
%build
b256da
echo %{version} > version
b256da
./autogen.sh
4e69d4
%ifarch x86_64
4e69d4
%configure --disable-static --enable-local --disable-silent-rules --with-libpmem
4e69d4
%else
b256da
%configure --disable-static --enable-local --disable-silent-rules
4e69d4
%endif
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
ab4840
%license util/COPYING licenses/BSD-MIT licenses/CC0
b256da
%{_bindir}/ndctl
ab4840
%{_mandir}/man1/ndctl*
b256da
%{bashcompdir}/
b256da
ab4840
%files -n daxctl
ab4840
%license util/COPYING licenses/BSD-MIT licenses/CC0
ab4840
%{_bindir}/daxctl
ab4840
%{_mandir}/man1/daxctl*
ab4840
b256da
%files -n ndctl-libs
b256da
%doc README.md
ab4840
%license util/COPYING licenses/BSD-MIT licenses/CC0
b256da
%{_libdir}/libndctl.so.*
b256da
b256da
%files -n daxctl-libs
b256da
%doc README.md
ab4840
%license util/COPYING licenses/BSD-MIT licenses/CC0
b256da
%{_libdir}/libdaxctl.so.*
b256da
b256da
%files -n ndctl-devel
ab4840
%license util/COPYING
b256da
%{_includedir}/ndctl/
b256da
%{_libdir}/libndctl.so
b256da
%{_libdir}/pkgconfig/libndctl.pc
b256da
b256da
%files -n daxctl-devel
ab4840
%license util/COPYING
b256da
%{_includedir}/daxctl/
b256da
%{_libdir}/libdaxctl.so
b256da
%{_libdir}/pkgconfig/libdaxctl.pc
b256da
b256da
b256da
%changelog
4e69d4
* Fri Oct 20 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-3
4e69d4
- fix more static checker issues
4e69d4
- Related: bz#1457566 bz#1471807 bz#1456954
4e69d4
4e69d4
* Fri Oct 20 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-2
4e69d4
- add in missing patch files
4e69d4
- Related: bz#1457566 bz#1471807 bz#1456954
4e69d4
4e69d4
* Mon Oct 16 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-1
4e69d4
- rebase to v58.2
4e69d4
- remove patches that were backported from later versions
4e69d4
- we now support >4k faults, so remove rhel-only patches
4e69d4
- add libpmem dependency, and gate it on x86_64
4e69d4
- pull in static checker fix for uncheck sscanf result
4e69d4
- fix up use of uninitialized variable
4e69d4
- Related: bz#1457566 bz#1471807 bz#1456954
4e69d4
ab4840
* Tue May 30 2017 Jeff Moyer <jmoyer@redhat.com> - 56-2
ab4840
- bump release
ab4840
- Related: bz#1440902 bz#1446689
ab4840
ab4840
* Wed May 24 2017 Jeff Moyer <jmoyer@redhat.com> - 56-2
ab4840
- Update documentation to reflect 4k alignment
ab4840
- Add support for the MSFT family of DSM functions
ab4840
- Resolves: bz#1440902 bz#1446689
ab4840
ab4840
* Sun Mar 26 2017 Jeff Moyer <jmoyer@redhat.com> - 56-1
ab4840
- Rebase to upstream version 56
ab4840
- Default to 4k alignment for device dax
ab4840
- Resolves: bz#1384873 bz#1384642 bz#1349233 bz#1357451
ab4840
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