Blame SPECS/ndctl.spec

2c7ab9
Name:		ndctl
2c7ab9
Version:	65
2c7ab9
Release:	5%{?dist}
2c7ab9
Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
2c7ab9
License:	GPLv2
2c7ab9
Group:		System Environment/Base
2c7ab9
Url:		https://github.com/pmem/ndctl
2c7ab9
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
2c7ab9
Source1:	dracut-nvdimm-security.conf
2c7ab9
2c7ab9
Patch0:		ndctl-64-disable-asciidoctor.patch
2c7ab9
Patch1:		ndctl-rhel7-fix-make-check.patch
2c7ab9
Patch2:		daxctl-remove-migrate-device-model.patch
2c7ab9
Patch3:		kmod-remove-space-before-semicolon-in-nvdimm-security-conf.patch
2c7ab9
2c7ab9
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
2c7ab9
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
2c7ab9
BuildRequires:	autoconf
2c7ab9
BuildRequires:	asciidoc
2c7ab9
BuildRequires:	xmlto
2c7ab9
BuildRequires:	automake
2c7ab9
BuildRequires:	libtool
2c7ab9
BuildRequires:	pkgconfig
2c7ab9
BuildRequires:	pkgconfig(libkmod)
2c7ab9
BuildRequires:	pkgconfig(libudev)
2c7ab9
BuildRequires:	pkgconfig(uuid)
2c7ab9
BuildRequires:	pkgconfig(json-c)
2c7ab9
BuildRequires:	pkgconfig(bash-completion)
2c7ab9
BuildRequires:	pkgconfig(systemd)
2c7ab9
BuildRequires:	keyutils-libs-devel
2c7ab9
2c7ab9
%description
2c7ab9
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
2c7ab9
subsystem defines a kernel device model and control message interface for
2c7ab9
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
2c7ab9
Firmware Interface Table).
2c7ab9
2c7ab9
2c7ab9
%package -n ndctl-devel
2c7ab9
Summary:	Development files for libndctl
2c7ab9
License:	LGPLv2
2c7ab9
Group:		Development/Libraries
2c7ab9
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
2c7ab9
2c7ab9
%description -n ndctl-devel
2c7ab9
The %{name}-devel package contains libraries and header files for
2c7ab9
developing applications that use %{name}.
2c7ab9
2c7ab9
%package -n daxctl
2c7ab9
Summary:        Manage Device-DAX instances
2c7ab9
License:        GPLv2
2c7ab9
Group:          System Environment/Base
2c7ab9
Requires:       daxctl-libs%{?_isa} = %{version}-%{release}
2c7ab9
2c7ab9
%description -n daxctl
2c7ab9
The daxctl utility provides enumeration and provisioning commands for
2c7ab9
the Linux kernel Device-DAX facility. This facility enables DAX mappings
2c7ab9
of performance / feature differentiated memory without need of a
2c7ab9
filesystem.
2c7ab9
2c7ab9
%package -n daxctl-devel
2c7ab9
Summary:	Development files for libdaxctl
2c7ab9
License:	LGPLv2
2c7ab9
Group:		Development/Libraries
2c7ab9
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
2c7ab9
2c7ab9
%description -n daxctl-devel
2c7ab9
The %{name}-devel package contains libraries and header files for
2c7ab9
developing applications that use %{name}, a library for enumerating
2c7ab9
"Device DAX" devices.  Device DAX is a facility for establishing DAX
2c7ab9
mappings of performance / feature-differentiated memory.
2c7ab9
2c7ab9
2c7ab9
%package -n ndctl-libs
2c7ab9
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
2c7ab9
License:	LGPLv2
2c7ab9
Group:		System Environment/Libraries
2c7ab9
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
2c7ab9
2c7ab9
2c7ab9
%description -n ndctl-libs
2c7ab9
Libraries for %{name}.
2c7ab9
2c7ab9
%package -n daxctl-libs
2c7ab9
Summary:	Management library for "Device DAX" devices
2c7ab9
License:	LGPLv2
2c7ab9
Group:		System Environment/Libraries
2c7ab9
2c7ab9
%description -n daxctl-libs
2c7ab9
Device DAX is a facility for establishing DAX mappings of performance /
2c7ab9
feature-differentiated memory. daxctl-libs provides an enumeration /
2c7ab9
control API for these devices.
2c7ab9
2c7ab9
2c7ab9
%prep
2c7ab9
%setup -q ndctl-%{version}
2c7ab9
%patch0 -p1
2c7ab9
%patch1 -p1
2c7ab9
%patch2 -p1
2c7ab9
%patch3 -p1
2c7ab9
chmod +x test/monitor.sh
2c7ab9
2c7ab9
%build
2c7ab9
echo %{version} > version
2c7ab9
./autogen.sh
2c7ab9
%configure --disable-static --disable-silent-rules
2c7ab9
make %{?_smp_mflags}
2c7ab9
2c7ab9
%install
2c7ab9
%make_install
2c7ab9
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
2c7ab9
install -Dp -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/dracut.conf.d/nvdimm-security.conf
2c7ab9
2c7ab9
%check
2c7ab9
# There are x86-isms in the unit tests
2c7ab9
2c7ab9
%ifarch x86_64
2c7ab9
make check
2c7ab9
%endif
2c7ab9
2c7ab9
%post -n ndctl-libs -p /sbin/ldconfig
2c7ab9
2c7ab9
%postun -n ndctl-libs -p /sbin/ldconfig
2c7ab9
2c7ab9
%post -n daxctl-libs -p /sbin/ldconfig
2c7ab9
2c7ab9
%postun -n daxctl-libs -p /sbin/ldconfig
2c7ab9
2c7ab9
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
2c7ab9
2c7ab9
%files
2c7ab9
%license util/COPYING licenses/BSD-MIT licenses/CC0
2c7ab9
%{_bindir}/ndctl
2c7ab9
%{_mandir}/man1/ndctl*
2c7ab9
%{bashcompdir}/
2c7ab9
%{_unitdir}/ndctl-monitor.service
2c7ab9
%{_sysconfdir}/ndctl/keys/keys.readme
2c7ab9
%{_sysconfdir}/modprobe.d/nvdimm-security.conf
2c7ab9
%{_sysconfdir}/dracut.conf.d/nvdimm-security.conf
2c7ab9
2c7ab9
%config(noreplace) %{_sysconfdir}/ndctl/monitor.conf
2c7ab9
2c7ab9
%files -n daxctl
2c7ab9
%license util/COPYING licenses/BSD-MIT licenses/CC0
2c7ab9
%{_bindir}/daxctl
2c7ab9
%{_mandir}/man1/daxctl*
2c7ab9
%{_datadir}/daxctl/daxctl.conf
2c7ab9
2c7ab9
%files -n ndctl-libs
2c7ab9
%doc README.md
2c7ab9
%license util/COPYING licenses/BSD-MIT licenses/CC0
2c7ab9
%{_libdir}/libndctl.so.*
2c7ab9
2c7ab9
%files -n daxctl-libs
2c7ab9
%doc README.md
2c7ab9
%license util/COPYING licenses/BSD-MIT licenses/CC0
2c7ab9
%{_libdir}/libdaxctl.so.*
2c7ab9
2c7ab9
%files -n ndctl-devel
2c7ab9
%license util/COPYING
2c7ab9
%{_includedir}/ndctl/
2c7ab9
%{_libdir}/libndctl.so
2c7ab9
%{_libdir}/pkgconfig/libndctl.pc
2c7ab9
2c7ab9
%files -n daxctl-devel
2c7ab9
%license util/COPYING
2c7ab9
%{_includedir}/daxctl/
2c7ab9
%{_libdir}/libdaxctl.so
2c7ab9
%{_libdir}/pkgconfig/libdaxctl.pc
2c7ab9
2c7ab9
2c7ab9
%changelog
2c7ab9
* Tue Sep 10 2019 Jeff Moyer <jmoyer@redhat.com> - 65.5.el7
2c7ab9
- Once again attempt to fix nvdimm-security.conf
2c7ab9
- Resolves: rhbz#1750199
2c7ab9
2c7ab9
* Mon Aug 12 2019 Jeff Moyer <jmoyer@redhat.com> - 65.4.el7
2c7ab9
- Add spaces to the add_driver directive in the dracut module
2c7ab9
- Resolves: rhbz#1740383
2c7ab9
2c7ab9
* Tue Aug 06 2019 Jeff Moyer <jmoyer@redhat.com> - 65.3.el7
2c7ab9
- modify nvdimm-security.conf touse '&&' instead of ';'
2c7ab9
  Without this change, the module doesn't load
2c7ab9
- Resolves: rhbz#1725405
2c7ab9
2c7ab9
* Mon Jul 29 2019 Jeff Moyer <jmoyer@redhat.com> - 65.2.el7
2c7ab9
- Remove 'daxctl migrate-device-model' command.  We won't
2c7ab9
  support hot-plugging device dax into the memory hierarchy
2c7ab9
  on RHEL 7.
2c7ab9
- Resolves: rhbz#1734153
2c7ab9
2c7ab9
* Thu Jul 25 2019 Jeff Moyer <jmoyer@redhat.com> - 65.1.el7
2c7ab9
- Rebase to v65
2c7ab9
  - clear-errors: new command to clear errors on a namespace
2c7ab9
  - monitor: remove the requirement of a default config
2c7ab9
  - sanitize-dimm: allow a zero-key for secure-erase
2c7ab9
  - sanitize-dimm: preserve keys after an overwrite
2c7ab9
  - load-keys: fix for non-TPM keys
2c7ab9
- Fix test harness to run against the rhel7 test kernel modules
2c7ab9
- Related: rhbz#1722481
2c7ab9
2c7ab9
* Wed Mar 27 2019 Jeff Moyer <jmoyer@redhat.com> - 64.1-2
2c7ab9
- Fix initramfs creating by forcing installation of libnvdimm.ko
2c7ab9
- Related: bz#1634348
2c7ab9
2c7ab9
* Fri Mar 22 2019 Jeff Moyer <jmoyer@redhat.com> - 64.1-1
2c7ab9
- Rebase to v64.1 (Jeff Moyer)
2c7ab9
  - add security commands
2c7ab9
  - fix broken udev rule for dirty shutdown count
2c7ab9
- Resolves: bz#1634348 bz#1635441
2c7ab9
2c7ab9
* Thu Aug 23 2018 Jeff Moyer <jmoyer@redhat.com> - 62-1
2c7ab9
- Rebase to v62 (Jeff Moyer)
2c7ab9
  - a new monitor command / daemon
2c7ab9
  - an ndctl udev rule for recording the unsafe shutdown count
2c7ab9
  - smart error injection
2c7ab9
  - create-namespace fix for fragmented namespaces
2c7ab9
- Resolves: bz#1610649 bz#1611833 bz#1456320
2c7ab9
2c7ab9
* Mon Jul 30 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-4
2c7ab9
- Apply all patches (Jeff Moyer)
2c7ab9
- Related: bz#1456320
2c7ab9
2c7ab9
* Mon Jul 30 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-3
2c7ab9
- Add monitor daemon (Jeff Moyer)
2c7ab9
- Resolves: bz#1456320
2c7ab9
2c7ab9
* Mon Jul 30 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-2.1
2c7ab9
- Remove the btt.rules udev rule file.  This was fixed in-kernel. (Jeff Moyer)
2c7ab9
- Related: bz#1585122
2c7ab9
2c7ab9
* Thu Jun 14 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-2
2c7ab9
- Fix an issue where btt partitions were not showing up (Jeff Moyer)
2c7ab9
- Resolves: bz#1585122
2c7ab9
2c7ab9
* Fri Jun  8 2018 Jeff Moyer <jmoyer@redhat.com> - 60.3-1
2c7ab9
- Rebase to v60.3
2c7ab9
- Resolves: bz#1517753
2c7ab9
2c7ab9
* Fri Oct 20 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-3
2c7ab9
- fix more static checker issues
2c7ab9
- Related: bz#1457566 bz#1471807 bz#1456954
2c7ab9
2c7ab9
* Fri Oct 20 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-2
2c7ab9
- add in missing patch files
2c7ab9
- Related: bz#1457566 bz#1471807 bz#1456954
2c7ab9
2c7ab9
* Mon Oct 16 2017 Jeff Moyer <jmoyer@redhat.com> - 58.2-1
2c7ab9
- rebase to v58.2
2c7ab9
- remove patches that were backported from later versions
2c7ab9
- we now support >4k faults, so remove rhel-only patches
2c7ab9
- add libpmem dependency, and gate it on x86_64
2c7ab9
- pull in static checker fix for uncheck sscanf result
2c7ab9
- fix up use of uninitialized variable
2c7ab9
- Related: bz#1457566 bz#1471807 bz#1456954
2c7ab9
2c7ab9
* Tue May 30 2017 Jeff Moyer <jmoyer@redhat.com> - 56-2
2c7ab9
- bump release
2c7ab9
- Related: bz#1440902 bz#1446689
2c7ab9
2c7ab9
* Wed May 24 2017 Jeff Moyer <jmoyer@redhat.com> - 56-2
2c7ab9
- Update documentation to reflect 4k alignment
2c7ab9
- Add support for the MSFT family of DSM functions
2c7ab9
- Resolves: bz#1440902 bz#1446689
2c7ab9
2c7ab9
* Sun Mar 26 2017 Jeff Moyer <jmoyer@redhat.com> - 56-1
2c7ab9
- Rebase to upstream version 56
2c7ab9
- Default to 4k alignment for device dax
2c7ab9
- Resolves: bz#1384873 bz#1384642 bz#1349233 bz#1357451
2c7ab9
2c7ab9
* Mon Aug 29 2016 Dave Anderson <anderson@redhat.com> - 54.1
2c7ab9
- Update to 54.1 to address ixpdimm_sw requirements
2c7ab9
- Resolves bz#1271425
2c7ab9
2c7ab9
* Wed Jul  6 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-4
2c7ab9
- Fix up duplicate "-v" documentation in man page
2c7ab9
- Fix bogus test in invalidate_namespace_options
2c7ab9
- Resolves: bz#1350404 bz#1271425
2c7ab9
2c7ab9
* Mon Jun 20 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-3
2c7ab9
- make ndctl Require ndctl-libs-{version}-{release}
2c7ab9
- Resolves bz#1271425
2c7ab9
2c7ab9
* Wed Jun  1 2016 Jeff Moyer <jmoyer@redhat.com> - 53.1-2
2c7ab9
- initial import for RHEL
2c7ab9
- Resolves bz#1271425
2c7ab9
2c7ab9
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
2c7ab9
- add daxctl-libs + daxctl-devel packages
2c7ab9
- add bash completion
2c7ab9
2c7ab9
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
2c7ab9
- Initial rpm submission to Fedora