Blame SPECS/ndctl.spec

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