bcf6bc
Name:		ndctl
b41cfb
Version:	62
b41cfb
Release:	1%{?dist}
bcf6bc
Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
bcf6bc
License:	GPLv2
bcf6bc
Group:		System Environment/Base
bcf6bc
Url:		https://github.com/pmem/ndctl
bcf6bc
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
bcf6bc
bcf6bc
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
bcf6bc
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
bcf6bc
BuildRequires:	autoconf
bcf6bc
BuildRequires:	asciidoc
bcf6bc
BuildRequires:	xmlto
bcf6bc
BuildRequires:	automake
bcf6bc
BuildRequires:	libtool
bcf6bc
BuildRequires:	pkgconfig
bcf6bc
BuildRequires:	pkgconfig(libkmod)
bcf6bc
BuildRequires:	pkgconfig(libudev)
bcf6bc
BuildRequires:	pkgconfig(uuid)
bcf6bc
BuildRequires:	pkgconfig(json-c)
bcf6bc
BuildRequires:	pkgconfig(bash-completion)
b41cfb
BuildRequires:	systemd
bcf6bc
bcf6bc
%description
bcf6bc
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
bcf6bc
subsystem defines a kernel device model and control message interface for
bcf6bc
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
bcf6bc
Firmware Interface Table).
bcf6bc
bcf6bc
bcf6bc
%package -n ndctl-devel
bcf6bc
Summary:	Development files for libndctl
bcf6bc
License:	LGPLv2
bcf6bc
Group:		Development/Libraries
bcf6bc
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
bcf6bc
bcf6bc
%description -n ndctl-devel
bcf6bc
The %{name}-devel package contains libraries and header files for
bcf6bc
developing applications that use %{name}.
bcf6bc
bcf6bc
%package -n daxctl
bcf6bc
Summary:        Manage Device-DAX instances
bcf6bc
License:        GPLv2
bcf6bc
Group:          System Environment/Base
bcf6bc
Requires:       daxctl-libs%{?_isa} = %{version}-%{release}
bcf6bc
bcf6bc
%description -n daxctl
bcf6bc
The daxctl utility provides enumeration and provisioning commands for
bcf6bc
the Linux kernel Device-DAX facility. This facility enables DAX mappings
bcf6bc
of performance / feature differentiated memory without need of a
bcf6bc
filesystem.
bcf6bc
bcf6bc
%package -n daxctl-devel
bcf6bc
Summary:	Development files for libdaxctl
bcf6bc
License:	LGPLv2
bcf6bc
Group:		Development/Libraries
bcf6bc
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
bcf6bc
bcf6bc
%description -n daxctl-devel
bcf6bc
The %{name}-devel package contains libraries and header files for
bcf6bc
developing applications that use %{name}, a library for enumerating
bcf6bc
"Device DAX" devices.  Device DAX is a facility for establishing DAX
bcf6bc
mappings of performance / feature-differentiated memory.
bcf6bc
bcf6bc
bcf6bc
%package -n ndctl-libs
bcf6bc
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
bcf6bc
License:	LGPLv2
bcf6bc
Group:		System Environment/Libraries
bcf6bc
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
bcf6bc
bcf6bc
bcf6bc
%description -n ndctl-libs
bcf6bc
Libraries for %{name}.
bcf6bc
bcf6bc
%package -n daxctl-libs
bcf6bc
Summary:	Management library for "Device DAX" devices
bcf6bc
License:	LGPLv2
bcf6bc
Group:		System Environment/Libraries
bcf6bc
bcf6bc
%description -n daxctl-libs
bcf6bc
Device DAX is a facility for establishing DAX mappings of performance /
bcf6bc
feature-differentiated memory. daxctl-libs provides an enumeration /
bcf6bc
control API for these devices.
bcf6bc
bcf6bc
bcf6bc
%prep
bcf6bc
%setup -q ndctl-%{version}
b41cfb
chmod +x test/monitor.sh
bcf6bc
bcf6bc
%build
bcf6bc
echo %{version} > version
bcf6bc
./autogen.sh
b41cfb
%configure --disable-static --disable-silent-rules
bcf6bc
make %{?_smp_mflags}
bcf6bc
bcf6bc
%install
bcf6bc
%make_install
bcf6bc
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
bcf6bc
bcf6bc
%check
b41cfb
# There are x86-isms in the unit tests
b41cfb
b41cfb
%ifarch x86_64
bcf6bc
make check
b41cfb
%endif
bcf6bc
bcf6bc
%post -n ndctl-libs -p /sbin/ldconfig
bcf6bc
bcf6bc
%postun -n ndctl-libs -p /sbin/ldconfig
bcf6bc
bcf6bc
%post -n daxctl-libs -p /sbin/ldconfig
bcf6bc
bcf6bc
%postun -n daxctl-libs -p /sbin/ldconfig
bcf6bc
bcf6bc
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
b41cfb
%define udevdir %(pkg-config --variable=udevdir udev)
bcf6bc
bcf6bc
%files
bcf6bc
%license util/COPYING licenses/BSD-MIT licenses/CC0
bcf6bc
%{_bindir}/ndctl
bcf6bc
%{_mandir}/man1/ndctl*
bcf6bc
%{bashcompdir}/
b41cfb
%{_sysconfdir}/ndctl/monitor.conf
b41cfb
%{_unitdir}/ndctl-monitor.service
b41cfb
%{_udevrulesdir}/80-ndctl.rules
b41cfb
%{udevdir}/ndctl-udev
bcf6bc
bcf6bc
%files -n daxctl
bcf6bc
%license util/COPYING licenses/BSD-MIT licenses/CC0
bcf6bc
%{_bindir}/daxctl
bcf6bc
%{_mandir}/man1/daxctl*
bcf6bc
bcf6bc
%files -n ndctl-libs
bcf6bc
%doc README.md
bcf6bc
%license util/COPYING licenses/BSD-MIT licenses/CC0
bcf6bc
%{_libdir}/libndctl.so.*
bcf6bc
bcf6bc
%files -n daxctl-libs
bcf6bc
%doc README.md
bcf6bc
%license util/COPYING licenses/BSD-MIT licenses/CC0
bcf6bc
%{_libdir}/libdaxctl.so.*
bcf6bc
bcf6bc
%files -n ndctl-devel
bcf6bc
%license util/COPYING
bcf6bc
%{_includedir}/ndctl/
bcf6bc
%{_libdir}/libndctl.so
bcf6bc
%{_libdir}/pkgconfig/libndctl.pc
bcf6bc
bcf6bc
%files -n daxctl-devel
bcf6bc
%license util/COPYING
bcf6bc
%{_includedir}/daxctl/
bcf6bc
%{_libdir}/libdaxctl.so
bcf6bc
%{_libdir}/pkgconfig/libdaxctl.pc
bcf6bc
bcf6bc
bcf6bc
%changelog
b41cfb
* Thu Aug 23 2018 Jeff Moyer <jmoyer@redhat.com> - 62-1
b41cfb
- Rebase to v62 (Jeff Moyer)
b41cfb
  - a new monitor command / daemon
b41cfb
  - an ndctl udev rule for recording the unsafe shutdown count
b41cfb
  - smart error injection
b41cfb
  - create-namespace fix for fragmented namespaces
b41cfb
- Resolves: bz#1610649 bz#1611833 bz#1456320
b41cfb
b41cfb
* Mon Jul 30 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-4
b41cfb
- Apply all patches (Jeff Moyer)
b41cfb
- Related: bz#1456320
b41cfb
b41cfb
* Mon Jul 30 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-3
b41cfb
- Add monitor daemon (Jeff Moyer)
b41cfb
- Resolves: bz#1456320
b41cfb
b41cfb
* Mon Jul 30 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-2.1
b41cfb
- Remove the btt.rules udev rule file.  This was fixed in-kernel. (Jeff Moyer)
b41cfb
- Related: bz#1585122
b41cfb
b41cfb
* Thu Jun 14 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-2
b41cfb
- Fix an issue where btt partitions were not showing up (Jeff Moyer)
b41cfb
- Resolves: bz#1585122
b41cfb
b41cfb
* Fri Jun  8 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-1
b41cfb
- Rebase to v60.3
b41cfb
- Resolves: bz#1517753
b41cfb
bcf6bc
* Fri Oct 20 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-3
bcf6bc
- fix more static checker issues
bcf6bc
- Related: bz#1457566 bz#1471807 bz#1456954
bcf6bc
bcf6bc
* Fri Oct 20 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-2
bcf6bc
- add in missing patch files
bcf6bc
- Related: bz#1457566 bz#1471807 bz#1456954
bcf6bc
bcf6bc
* Mon Oct 16 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-1
bcf6bc
- rebase to v58.2
bcf6bc
- remove patches that were backported from later versions
bcf6bc
- we now support >4k faults, so remove rhel-only patches
bcf6bc
- add libpmem dependency, and gate it on x86_64
bcf6bc
- pull in static checker fix for uncheck sscanf result
bcf6bc
- fix up use of uninitialized variable
bcf6bc
- Related: bz#1457566 bz#1471807 bz#1456954
bcf6bc
bcf6bc
* Tue May 30 2017 Jeff Moyer <jmoyer@redhat.com> - 56-2
bcf6bc
- bump release
bcf6bc
- Related: bz#1440902 bz#1446689
bcf6bc
bcf6bc
* Wed May 24 2017 Jeff Moyer <jmoyer@redhat.com> - 56-2
bcf6bc
- Update documentation to reflect 4k alignment
bcf6bc
- Add support for the MSFT family of DSM functions
bcf6bc
- Resolves: bz#1440902 bz#1446689
bcf6bc
bcf6bc
* Sun Mar 26 2017 Jeff Moyer <jmoyer@redhat.com> - 56-1
bcf6bc
- Rebase to upstream version 56
bcf6bc
- Default to 4k alignment for device dax
bcf6bc
- Resolves: bz#1384873 bz#1384642 bz#1349233 bz#1357451
bcf6bc
bcf6bc
* Mon Aug 29 2016 Dave Anderson <anderson@redhat.com> - 54.1
bcf6bc
- Update to 54.1 to address ixpdimm_sw requirements
bcf6bc
- Resolves bz#1271425
bcf6bc
bcf6bc
* Wed Jul  6 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-4
bcf6bc
- Fix up duplicate "-v" documentation in man page
bcf6bc
- Fix bogus test in invalidate_namespace_options
bcf6bc
- Resolves: bz#1350404 bz#1271425
bcf6bc
bcf6bc
* Mon Jun 20 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-3
bcf6bc
- make ndctl Require ndctl-libs-{version}-{release}
bcf6bc
- Resolves bz#1271425
bcf6bc
bcf6bc
* Wed Jun  1 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-2
bcf6bc
- initial import for RHEL
bcf6bc
- Resolves bz#1271425
bcf6bc
bcf6bc
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
bcf6bc
- add daxctl-libs + daxctl-devel packages
bcf6bc
- add bash completion
bcf6bc
bcf6bc
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
bcf6bc
- Initial rpm submission to Fedora