Blame SPECS/ndctl.spec

5a1f83
Name:		ndctl
3b07c1
Version:	71.1
48bcec
Release:	3%{?dist}
5a1f83
Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
5a1f83
License:	GPLv2
5a1f83
Group:		System Environment/Base
5a1f83
Url:		https://github.com/pmem/ndctl
5a1f83
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
4f7f8b
Patch0:		modprobe-link-user-keyring-before-loadkeys.patch
3b07c1
Patch1:		ndctl-skip-seed-devices-in-zero_info_block.patch
5a1f83
5a1f83
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
BuildRequires:	autoconf
5a1f83
BuildRequires:	asciidoc
5a1f83
BuildRequires:	xmlto
5a1f83
BuildRequires:	automake
5a1f83
BuildRequires:	libtool
5a1f83
BuildRequires:	pkgconfig
5a1f83
BuildRequires:	pkgconfig(libkmod)
5a1f83
BuildRequires:	pkgconfig(libudev)
5a1f83
BuildRequires:	pkgconfig(uuid)
5a1f83
BuildRequires:	pkgconfig(json-c)
5a1f83
BuildRequires:	pkgconfig(bash-completion)
5a1f83
BuildRequires:	systemd
728eec
BuildRequires:	keyutils-libs-devel
5a1f83
5a1f83
%description
5a1f83
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
5a1f83
subsystem defines a kernel device model and control message interface for
5a1f83
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
5a1f83
Firmware Interface Table).
5a1f83
5a1f83
5a1f83
%package -n ndctl-devel
5a1f83
Summary:	Development files for libndctl
5a1f83
License:	LGPLv2
5a1f83
Group:		Development/Libraries
5a1f83
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
%description -n ndctl-devel
5a1f83
The %{name}-devel package contains libraries and header files for
5a1f83
developing applications that use %{name}.
5a1f83
5a1f83
%package -n daxctl
5a1f83
Summary:	Manage Device-DAX instances
5a1f83
License:	GPLv2
5a1f83
Group:		System Environment/Base
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
%description -n daxctl
5a1f83
The daxctl utility provides enumeration and provisioning commands for
5a1f83
the Linux kernel Device-DAX facility. This facility enables DAX mappings
5a1f83
of performance / feature differentiated memory without need of a
5a1f83
filesystem.
5a1f83
5a1f83
%package -n daxctl-devel
5a1f83
Summary:	Development files for libdaxctl
5a1f83
License:	LGPLv2
5a1f83
Group:		Development/Libraries
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
%description -n daxctl-devel
5a1f83
The %{name}-devel package contains libraries and header files for
5a1f83
developing applications that use %{name}, a library for enumerating
5a1f83
"Device DAX" devices.  Device DAX is a facility for establishing DAX
5a1f83
mappings of performance / feature-differentiated memory.
5a1f83
5a1f83
5a1f83
%package -n ndctl-libs
5a1f83
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
5a1f83
License:	LGPLv2
5a1f83
Group:		System Environment/Libraries
5a1f83
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
5a1f83
5a1f83
5a1f83
%description -n ndctl-libs
5a1f83
Libraries for %{name}.
5a1f83
5a1f83
%package -n daxctl-libs
5a1f83
Summary:	Management library for "Device DAX" devices
5a1f83
License:	LGPLv2
5a1f83
Group:		System Environment/Libraries
5a1f83
5a1f83
%description -n daxctl-libs
5a1f83
Device DAX is a facility for establishing DAX mappings of performance /
5a1f83
feature-differentiated memory. daxctl-libs provides an enumeration /
5a1f83
control API for these devices.
5a1f83
5a1f83
5a1f83
%prep
5a1f83
%setup -q ndctl-%{version}
4f7f8b
%patch0 -p1
3b07c1
%patch1 -p1
5a1f83
5a1f83
%build
5a1f83
echo %{version} > version
5a1f83
./autogen.sh
728eec
%configure --disable-static --disable-silent-rules --disable-asciidoctor
5a1f83
make %{?_smp_mflags}
5a1f83
5a1f83
%install
5a1f83
%make_install
5a1f83
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
5a1f83
5a1f83
%check
5a1f83
make check
5a1f83
5a1f83
%post -n ndctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%postun -n ndctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%post -n daxctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%postun -n daxctl-libs -p /sbin/ldconfig
5a1f83
5a1f83
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
5a1f83
5a1f83
%files
3b07c1
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
5a1f83
%{_bindir}/ndctl
5a1f83
%{_mandir}/man1/ndctl*
5a1f83
%{bashcompdir}/
5a1f83
%{_unitdir}/ndctl-monitor.service
728eec
%{_sysconfdir}/ndctl/keys/keys.readme
728eec
%{_sysconfdir}/modprobe.d/nvdimm-security.conf
728eec
728eec
%config(noreplace) %{_sysconfdir}/ndctl/monitor.conf
5a1f83
5a1f83
%files -n daxctl
3b07c1
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
5a1f83
%{_bindir}/daxctl
5a1f83
%{_mandir}/man1/daxctl*
728eec
%{_datadir}/daxctl/daxctl.conf
5a1f83
5a1f83
%files -n ndctl-libs
5a1f83
%doc README.md
3b07c1
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
5a1f83
%{_libdir}/libndctl.so.*
5a1f83
5a1f83
%files -n daxctl-libs
5a1f83
%doc README.md
3b07c1
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
5a1f83
%{_libdir}/libdaxctl.so.*
5a1f83
5a1f83
%files -n ndctl-devel
3b07c1
%license LICENSES/preferred/LGPL-2.1
5a1f83
%{_includedir}/ndctl/
5a1f83
%{_libdir}/libndctl.so
5a1f83
%{_libdir}/pkgconfig/libndctl.pc
5a1f83
5a1f83
%files -n daxctl-devel
3b07c1
%license LICENSES/preferred/LGPL-2.1
5a1f83
%{_includedir}/daxctl/
5a1f83
%{_libdir}/libdaxctl.so
5a1f83
%{_libdir}/pkgconfig/libdaxctl.pc
5a1f83
5a1f83
5a1f83
%changelog
48bcec
* Mon Nov 29 2021 Bryan Gurney <bgurney@redhat.com> - 71.1-3.el8
48bcec
- Rebuild with latest json-c version
48bcec
- Related: bz#2021816
48bcec
3b07c1
* Thu Feb 11 2021 Jeff Moyer <jmoyer@redhat.com> - 71.1-2.el8
3b07c1
- Get rid of confusing message when deleting all namespaces
3b07c1
- Related: bz#1782182
3b07c1
3b07c1
* Fri Feb  5 2021 Jeff Moyer <jmoyer@redhat.com> - 71.1-1.el8
3b07c1
- Update to v71.1 to pull in ppc support.
3b07c1
- Related: bz#1782182
3b07c1
4f7f8b
* Fri Nov  1 2019 Jeff Moyer <jmoyer@redhat.com> - 67-2.el8
4f7f8b
- Fix up botched change to nvdimm-security.conf (Jeff Moyer)
4f7f8b
- Related: bz#1724531
4f7f8b
4f7f8b
* Mon Oct 28 2019 Jeff Moyer <jmoyer@redhat.com> - 67-1.el8
4f7f8b
- Rebase to v67.  This brings in the following features:
4f7f8b
  - support for the 'security frozen' sysfs attribute
4f7f8b
  - support for using pmem as system ram
4f7f8b
  - various cleanup and bug fixes
4f7f8b
- Fix load-keys failure in initramfs (Jeff Moyer)
4f7f8b
- Resolves: bz#1724531 bz#1730673 bz#1741164 bz#1741165 bz#1749888 bz#1749889
4f7f8b
728eec
* Mon Jun  3 2019 Jeff Moyer <jmoyer@redhat.com> - 65-1.el8
728eec
- Rebase to v65.
728eec
- Resolves: bz#1665407 bz#1634349
728eec
5a1f83
* Tue Oct 09 2018 Jeff Moyer 
5a1f83
- Remove faulty udev rule
5a1f83
- Resolves: bz#1637624
5a1f83
5a1f83
* Thu Aug 23 2018 Jeff Moyer <jmoyer@redhat.com> - 62-1
5a1f83
- rebase to v62
5a1f83
- Resolves: bz#1567756 bz#1497651 bz#1610650 bz#1511774 bz#1570548
5a1f83
5a1f83
* Mon Apr 23 2018 Dan Williams <dan.j.williams@intel.com> - 60.1-1
5a1f83
- release v60.1
5a1f83
5a1f83
* Thu Apr 19 2018 Dan Williams <dan.j.williams@intel.com> - 60-1
5a1f83
- release v60
5a1f83
5a1f83
* Tue Mar 27 2018 Dan Williams <dan.j.williams@intel.com> - 59.3-1
5a1f83
- release v59.3
5a1f83
5a1f83
* Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 59.2-2
5a1f83
- Rebuilt for libjson-c.so.4 (json-c v0.13.1)
5a1f83
5a1f83
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.2-1
5a1f83
- release v59.2
5a1f83
5a1f83
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.1-1
5a1f83
- release v59.1
5a1f83
5a1f83
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59-1
5a1f83
- release v59
5a1f83
5a1f83
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 58.4-3
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5a1f83
5a1f83
* Sun Dec 10 2017 Björn Esser <besser82@fedoraproject.org> - 58.4-2
5a1f83
- Rebuilt for libjson-c.so.3
5a1f83
5a1f83
* Thu Nov 16 2017 Dan Williams <dan.j.williams@intel.com> - 58.4-1
5a1f83
- release v58.4
5a1f83
5a1f83
* Thu Sep 21 2017 Dan Williams <dan.j.williams@intel.com> - 58.2-1
5a1f83
- release v58.2
5a1f83
5a1f83
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-2
5a1f83
- gate libpmem dependency on x86_64
5a1f83
5a1f83
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-1
5a1f83
- add libpmem dependency
5a1f83
- release v58.1
5a1f83
5a1f83
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-3
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5a1f83
5a1f83
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-2
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5a1f83
5a1f83
* Fri Jun 30 2017 Dan Williams <dan.j.williams@intel.com> - 57.1-1
5a1f83
- Release v57.1
5a1f83
5a1f83
* Sat May 27 2017 Dan Williams <dan.j.williams@intel.com> - 57-1
5a1f83
- Release v57
5a1f83
5a1f83
* Fri Feb 10 2017 Dan Williams <dan.j.williams@intel.com> - 56-1
5a1f83
- Release v56
5a1f83
5a1f83
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 55-2
5a1f83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5a1f83
5a1f83
* Fri Oct 21 2016 Dan Williams <dan.j.williams@intel.com> - 55-1
5a1f83
- release v55
5a1f83
5a1f83
* Fri Aug 05 2016 Dan Williams <dan.j.williams@intel.com> - 54-1
5a1f83
- add explicit lib version dependencies
5a1f83
5a1f83
* Sat May 28 2016 Dan Williams <dan.j.williams@intel.com> - 53.1-1
5a1f83
- Fix up tag format vs source url confusion
5a1f83
5a1f83
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
5a1f83
- add daxctl-libs + daxctl-devel packages
5a1f83
- add bash completion
5a1f83
5a1f83
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
5a1f83
- Initial rpm submission to Fedora