Blame SPECS/ndctl.spec

4b20f0
Name:		ndctl
d212ca
Version:	71.1
cb1869
Release:	4.1%{?dist}
4b20f0
Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
4b20f0
License:	GPLv2
4b20f0
Group:		System Environment/Base
4b20f0
Url:		https://github.com/pmem/ndctl
4b20f0
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
0dc130
cb1869
%if 0%{?facebook}
cb1869
# https://github.com/elake/ndctl diff from 71.1 (ea014c0) to main (3ff031d)
cb1869
# This was generated with `git diff` because `git format-patch` doesn't handle the merges well
cb1869
Patch0:         elake-diff-ea014c0-3ff031d.patch
cb1869
%else
5e9906
Patch0:		modprobe-link-user-keyring-before-loadkeys.patch
0dc130
Patch1:		fb13dfb-zero_info_block-skip-seed-devices.patch
0dc130
Patch2:		daef3a3-libndctl-Unify-adding-dimms-for-papr-and-nfit-families.patch
0dc130
Patch3:		f081f30-papr-Add-support-to-parse-save_fail-flag-for-dimm.patch
0dc130
Patch4:		fe831b5-Use-page-size-as-alignment-value.patch
0dc130
Patch5:		e086106-libndctl-papr-Fix-probe-for-papr-scm-compatible-nvdimms.patch
0dc130
Patch6:		c521093-ndctl-scrub-Stop-translating-return-values.patch
0dc130
Patch7:		4e646fa-ndctl-scrub-Reread-scrub-engine-status-at-start.patch
0dc130
Patch8:		9bd2994-ndctl-namespace-Skip-seed-namespaces-when-processing-all-namespaces.patch
0dc130
Patch9:		07011a3-ndctl-namespace-Suppress-ENXIO-when-processing-all-namespaces.patch
0dc130
Patch10:	80e0d88-namespace-action-Drop-zero-namespace-checks.patch
0dc130
Patch11:	aa99000-libndctl-papr-Add-support-for-reporting-shutdown-count.patch
0dc130
Patch12:	edcd9b7-libndctl-intel-Indicate-supported-smart-inject-types.patch
0dc130
Patch13:	9ef460e-libndctl-papr-Add-limited-support-for-inject-smart.patch
0dc130
Patch14:	6e85cac-ndtest-ack-shutdown-count-Skip-the-test-on-ndtest.patch
cb1869
%endif
4b20f0
4b20f0
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
4b20f0
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
cb1869
%if 0%{?facebook}
cb1869
Requires:	cxl-libs%{?_isa} = %{version}-%{release}
cb1869
%endif
4b20f0
BuildRequires:	autoconf
4b20f0
BuildRequires:	asciidoc
4b20f0
BuildRequires:	xmlto
4b20f0
BuildRequires:	automake
4b20f0
BuildRequires:	libtool
4b20f0
BuildRequires:	pkgconfig
4b20f0
BuildRequires:	pkgconfig(libkmod)
4b20f0
BuildRequires:	pkgconfig(libudev)
4b20f0
BuildRequires:	pkgconfig(uuid)
4b20f0
BuildRequires:	pkgconfig(json-c)
4b20f0
BuildRequires:	pkgconfig(bash-completion)
cb1869
BuildRequires:	pkgconfig(systemd)
4b20f0
BuildRequires:	keyutils-libs-devel
4b20f0
4b20f0
%description
4b20f0
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
4b20f0
subsystem defines a kernel device model and control message interface for
4b20f0
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
4b20f0
Firmware Interface Table).
4b20f0
4b20f0
4b20f0
%package -n ndctl-devel
4b20f0
Summary:	Development files for libndctl
4b20f0
License:	LGPLv2
4b20f0
Group:		Development/Libraries
4b20f0
Requires:	ndctl-libs%{?_isa} = %{version}-%{release}
4b20f0
4b20f0
%description -n ndctl-devel
4b20f0
The %{name}-devel package contains libraries and header files for
4b20f0
developing applications that use %{name}.
4b20f0
4b20f0
%package -n daxctl
4b20f0
Summary:	Manage Device-DAX instances
4b20f0
License:	GPLv2
4b20f0
Group:		System Environment/Base
4b20f0
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
4b20f0
4b20f0
%description -n daxctl
4b20f0
The daxctl utility provides enumeration and provisioning commands for
4b20f0
the Linux kernel Device-DAX facility. This facility enables DAX mappings
4b20f0
of performance / feature differentiated memory without need of a
4b20f0
filesystem.
4b20f0
cb1869
%if 0%{?facebook}
cb1869
%package -n cxl-cli
cb1869
Summary:	Manage CXL devices
cb1869
License:	GPLv2
cb1869
Requires:	cxl-libs%{?_isa} = %{version}-%{release}
cb1869
cb1869
%description -n cxl-cli
cb1869
The cxl utility provides enumeration and provisioning commands for
cb1869
the Linux kernel CXL devices.
cb1869
cb1869
%package -n cxl-devel
cb1869
Summary:	Development files for libcxl
cb1869
License:	LGPLv2
cb1869
Requires:	cxl-libs%{?_isa} = %{version}-%{release}
cb1869
cb1869
%description -n cxl-devel
cb1869
This package contains libraries and header files for developing applications
cb1869
that use libcxl, a library for enumerating and communicating with CXL devices.
cb1869
%endif
cb1869
4b20f0
%package -n daxctl-devel
4b20f0
Summary:	Development files for libdaxctl
4b20f0
License:	LGPLv2
4b20f0
Group:		Development/Libraries
4b20f0
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
4b20f0
4b20f0
%description -n daxctl-devel
4b20f0
The %{name}-devel package contains libraries and header files for
4b20f0
developing applications that use %{name}, a library for enumerating
4b20f0
"Device DAX" devices.  Device DAX is a facility for establishing DAX
4b20f0
mappings of performance / feature-differentiated memory.
4b20f0
4b20f0
4b20f0
%package -n ndctl-libs
4b20f0
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
4b20f0
License:	LGPLv2
4b20f0
Group:		System Environment/Libraries
4b20f0
Requires:	daxctl-libs%{?_isa} = %{version}-%{release}
4b20f0
4b20f0
4b20f0
%description -n ndctl-libs
4b20f0
Libraries for %{name}.
4b20f0
4b20f0
%package -n daxctl-libs
4b20f0
Summary:	Management library for "Device DAX" devices
4b20f0
License:	LGPLv2
4b20f0
Group:		System Environment/Libraries
4b20f0
4b20f0
%description -n daxctl-libs
4b20f0
Device DAX is a facility for establishing DAX mappings of performance /
4b20f0
feature-differentiated memory. daxctl-libs provides an enumeration /
4b20f0
control API for these devices.
4b20f0
cb1869
%if 0%{?facebook}
cb1869
%package -n cxl-libs
cb1869
Summary:	Management library for CXL devices
cb1869
License:	LGPLv2
cb1869
cb1869
%description -n cxl-libs
cb1869
libcxl is a library for enumerating and communicating with CXL devices.
cb1869
%endif
cb1869
4b20f0
4b20f0
%prep
0dc130
%autosetup -p1 ndctl-%{version}
4b20f0
4b20f0
%build
4b20f0
echo %{version} > version
4b20f0
./autogen.sh
4b20f0
%configure --disable-static --disable-silent-rules --disable-asciidoctor
4b20f0
make %{?_smp_mflags}
4b20f0
4b20f0
%install
4b20f0
%make_install
4b20f0
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
4b20f0
4b20f0
%check
4b20f0
make check
4b20f0
cb1869
%ldconfig_scriptlets -n ndctl-libs
4b20f0
cb1869
%ldconfig_scriptlets -n daxctl-libs
4b20f0
cb1869
%if 0%{?facebook}
cb1869
%ldconfig_scriptlets -n cxl-libs
cb1869
%endif
4b20f0
4b20f0
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
4b20f0
4b20f0
%files
d212ca
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_bindir}/ndctl
4b20f0
%{_mandir}/man1/ndctl*
4b20f0
%{bashcompdir}/
4b20f0
%{_unitdir}/ndctl-monitor.service
4b20f0
%{_sysconfdir}/ndctl/keys/keys.readme
4b20f0
%{_sysconfdir}/modprobe.d/nvdimm-security.conf
4b20f0
4b20f0
%config(noreplace) %{_sysconfdir}/ndctl/monitor.conf
4b20f0
4b20f0
%files -n daxctl
d212ca
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_bindir}/daxctl
4b20f0
%{_mandir}/man1/daxctl*
4b20f0
%{_datadir}/daxctl/daxctl.conf
4b20f0
cb1869
%if 0%{?facebook}
cb1869
%files -n cxl-cli
cb1869
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
cb1869
%{_bindir}/cxl
cb1869
%{_mandir}/man1/cxl*
cb1869
%endif
cb1869
4b20f0
%files -n ndctl-libs
4b20f0
%doc README.md
d212ca
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_libdir}/libndctl.so.*
4b20f0
4b20f0
%files -n daxctl-libs
4b20f0
%doc README.md
d212ca
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
4b20f0
%{_libdir}/libdaxctl.so.*
4b20f0
cb1869
%if 0%{?facebook}
cb1869
%files -n cxl-libs
cb1869
%doc README.md
cb1869
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
cb1869
%{_libdir}/libcxl.so.*
cb1869
%endif
cb1869
4b20f0
%files -n ndctl-devel
d212ca
%license LICENSES/preferred/LGPL-2.1
4b20f0
%{_includedir}/ndctl/
4b20f0
%{_libdir}/libndctl.so
4b20f0
%{_libdir}/pkgconfig/libndctl.pc
4b20f0
4b20f0
%files -n daxctl-devel
d212ca
%license LICENSES/preferred/LGPL-2.1
4b20f0
%{_includedir}/daxctl/
4b20f0
%{_libdir}/libdaxctl.so
4b20f0
%{_libdir}/pkgconfig/libdaxctl.pc
4b20f0
cb1869
%if 0%{?facebook}
cb1869
%files -n cxl-devel
cb1869
%license LICENSES/preferred/LGPL-2.1
cb1869
%{_includedir}/cxl/
cb1869
%{_libdir}/libcxl.so
cb1869
%{_libdir}/pkgconfig/libcxl.pc
cb1869
%{_mandir}/man3/cxl*
cb1869
%{_mandir}/man3/libcxl.3.gz
cb1869
%endif
cb1869
4b20f0
4b20f0
%changelog
cb1869
* Fri Feb  3 2023 Anita Zhang <the.anitazha@gmail.com> - 71.1-4.1
cb1869
- Patch 71.1 with diff between ea014c0..3ff031d from elake/ndctl fork for hs+fb
cb1869
- Sync changes from rhel/ndctl.spec (autogenerated by the GitHub Makefile)
cb1869
0dc130
* Tue Jun 14 2022 Jeff Moyer <jmoyer@redhat.com> - 71.1-4.el8
0dc130
- Pull in fixes from upstream v72 and v73 (Jeff Moyer)
0dc130
  - Fix enable-namespace all reporting errors incorrectly
0dc130
  - Add support for inject-smart on papr scm
0dc130
- Related: bz#2090190 bz#1986185 bz#2040074
0dc130
4d8a7d
* Mon Nov 29 2021 Bryan Gurney <bgurney@redhat.com> - 71.1-3.el8
4d8a7d
- Rebuild with latest json-c version
4d8a7d
- Related: bz#2021816
4d8a7d
d212ca
* Thu Feb 11 2021 Jeff Moyer <jmoyer@redhat.com> - 71.1-2.el8
d212ca
- Get rid of confusing message when deleting all namespaces
d212ca
- Related: bz#1782182
d212ca
d212ca
* Fri Feb  5 2021 Jeff Moyer <jmoyer@redhat.com> - 71.1-1.el8
d212ca
- Update to v71.1 to pull in ppc support.
d212ca
- Related: bz#1782182
d212ca
5e9906
* Fri Nov  1 2019 Jeff Moyer <jmoyer@redhat.com> - 67-2.el8
5e9906
- Fix up botched change to nvdimm-security.conf (Jeff Moyer)
5e9906
- Related: bz#1724531
5e9906
5e9906
* Mon Oct 28 2019 Jeff Moyer <jmoyer@redhat.com> - 67-1.el8
5e9906
- Rebase to v67.  This brings in the following features:
5e9906
  - support for the 'security frozen' sysfs attribute
5e9906
  - support for using pmem as system ram
5e9906
  - various cleanup and bug fixes
5e9906
- Fix load-keys failure in initramfs (Jeff Moyer)
5e9906
- Resolves: bz#1724531 bz#1730673 bz#1741164 bz#1741165 bz#1749888 bz#1749889
5e9906
4b20f0
* Mon Jun  3 2019 Jeff Moyer <jmoyer@redhat.com> - 65-1.el8
4b20f0
- Rebase to v65.
4b20f0
- Resolves: bz#1665407 bz#1634349
4b20f0
4b20f0
* Tue Oct 09 2018 Jeff Moyer 
4b20f0
- Remove faulty udev rule
4b20f0
- Resolves: bz#1637624
4b20f0
4b20f0
* Thu Aug 23 2018 Jeff Moyer <jmoyer@redhat.com> - 62-1
4b20f0
- rebase to v62
4b20f0
- Resolves: bz#1567756 bz#1497651 bz#1610650 bz#1511774 bz#1570548
4b20f0
4b20f0
* Mon Apr 23 2018 Dan Williams <dan.j.williams@intel.com> - 60.1-1
4b20f0
- release v60.1
4b20f0
4b20f0
* Thu Apr 19 2018 Dan Williams <dan.j.williams@intel.com> - 60-1
4b20f0
- release v60
4b20f0
4b20f0
* Tue Mar 27 2018 Dan Williams <dan.j.williams@intel.com> - 59.3-1
4b20f0
- release v59.3
4b20f0
4b20f0
* Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 59.2-2
4b20f0
- Rebuilt for libjson-c.so.4 (json-c v0.13.1)
4b20f0
4b20f0
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.2-1
4b20f0
- release v59.2
4b20f0
4b20f0
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59.1-1
4b20f0
- release v59.1
4b20f0
4b20f0
* Fri Feb 09 2018 Dan Williams <dan.j.williams@intel.com> - 59-1
4b20f0
- release v59
4b20f0
4b20f0
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 58.4-3
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4b20f0
4b20f0
* Sun Dec 10 2017 Björn Esser <besser82@fedoraproject.org> - 58.4-2
4b20f0
- Rebuilt for libjson-c.so.3
4b20f0
4b20f0
* Thu Nov 16 2017 Dan Williams <dan.j.williams@intel.com> - 58.4-1
4b20f0
- release v58.4
4b20f0
4b20f0
* Thu Sep 21 2017 Dan Williams <dan.j.williams@intel.com> - 58.2-1
4b20f0
- release v58.2
4b20f0
4b20f0
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-2
4b20f0
- gate libpmem dependency on x86_64
4b20f0
4b20f0
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-1
4b20f0
- add libpmem dependency
4b20f0
- release v58.1
4b20f0
4b20f0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-3
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4b20f0
4b20f0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 57.1-2
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4b20f0
4b20f0
* Fri Jun 30 2017 Dan Williams <dan.j.williams@intel.com> - 57.1-1
4b20f0
- Release v57.1
4b20f0
4b20f0
* Sat May 27 2017 Dan Williams <dan.j.williams@intel.com> - 57-1
4b20f0
- Release v57
4b20f0
4b20f0
* Fri Feb 10 2017 Dan Williams <dan.j.williams@intel.com> - 56-1
4b20f0
- Release v56
4b20f0
4b20f0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 55-2
4b20f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4b20f0
4b20f0
* Fri Oct 21 2016 Dan Williams <dan.j.williams@intel.com> - 55-1
4b20f0
- release v55
4b20f0
4b20f0
* Fri Aug 05 2016 Dan Williams <dan.j.williams@intel.com> - 54-1
4b20f0
- add explicit lib version dependencies
4b20f0
4b20f0
* Sat May 28 2016 Dan Williams <dan.j.williams@intel.com> - 53.1-1
4b20f0
- Fix up tag format vs source url confusion
4b20f0
4b20f0
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
4b20f0
- add daxctl-libs + daxctl-devel packages
4b20f0
- add bash completion
4b20f0
4b20f0
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
4b20f0
- Initial rpm submission to Fedora