2019-09-30 11:09:31 -04:00
|
|
|
Name: ndctl
|
2024-01-17 16:17:23 +08:00
|
|
|
Version: 78
|
2024-04-08 17:48:01 +08:00
|
|
|
Release: 2
|
2019-09-30 11:09:31 -04:00
|
|
|
Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
|
2022-10-31 16:53:57 +08:00
|
|
|
License: GPL-2 AND LGPL-2.1 AND MIT AND CC0-1.0
|
2019-09-30 11:09:31 -04:00
|
|
|
Group: System Environment/Base
|
|
|
|
|
Url: https://github.com/pmem/ndctl
|
|
|
|
|
Source0: https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
|
2023-01-06 01:41:27 +00:00
|
|
|
Patch1: 0001-zero_info_block-skip-seed-devices.patch
|
2024-04-08 17:48:01 +08:00
|
|
|
Patch2: 0002-exclude-cxl_monitor_service.patch
|
2023-01-06 01:41:27 +00:00
|
|
|
|
2019-09-30 11:09:31 -04:00
|
|
|
Requires: ndctl-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: daxctl-libs%{?_isa} = %{version}-%{release}
|
2022-10-31 16:53:57 +08:00
|
|
|
Requires: cxl-libs%{?_isa} = %{version}-%{release}
|
2019-09-30 11:09:31 -04:00
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: rubygem-asciidoctor
|
2024-01-17 16:17:23 +08:00
|
|
|
BuildRequires: libtraceevent-devel
|
2022-10-31 16:53:57 +08:00
|
|
|
%define asciidoctor -Dasciidoctor=enabled
|
2024-01-17 16:17:23 +08:00
|
|
|
%define libtracefs -Dlibtracefs=disabled
|
2019-09-30 11:09:31 -04:00
|
|
|
BuildRequires: xmlto
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: pkgconfig(libkmod)
|
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
|
BuildRequires: pkgconfig(uuid)
|
|
|
|
|
BuildRequires: pkgconfig(json-c)
|
|
|
|
|
BuildRequires: pkgconfig(bash-completion)
|
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
2022-10-31 16:53:57 +08:00
|
|
|
BuildRequires: keyutils-libs-devel
|
|
|
|
|
BuildRequires: iniparser
|
|
|
|
|
BuildRequires: meson
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Utility library for managing the "libnvdimm" subsystem. The "libnvdimm"
|
|
|
|
|
subsystem defines a kernel device model and control message interface for
|
|
|
|
|
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
|
|
|
|
|
Firmware Interface Table).
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
%if 0%{?flatpak}
|
|
|
|
|
%global _udevrulesdir %{_prefix}/lib/udev/rules.d
|
|
|
|
|
%endif
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%package -n ndctl-devel
|
|
|
|
|
Summary: Development files for libndctl
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: ndctl-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n ndctl-devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%package -n daxctl
|
|
|
|
|
Summary: Manage Device-DAX instances
|
|
|
|
|
License: GPLv2
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: daxctl-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n daxctl
|
|
|
|
|
The daxctl utility provides enumeration and provisioning commands for
|
|
|
|
|
the Linux kernel Device-DAX facility. This facility enables DAX mappings
|
|
|
|
|
of performance / feature differentiated memory without need of a
|
|
|
|
|
filesystem.
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
%package -n cxl-cli
|
|
|
|
|
Summary: Manage CXL devices
|
|
|
|
|
License: GPLv2
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: cxl-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n cxl-cli
|
|
|
|
|
The cxl utility provides enumeration and provisioning commands for
|
|
|
|
|
the Linux kernel CXL devices.
|
|
|
|
|
|
|
|
|
|
%package -n cxl-devel
|
|
|
|
|
Summary: Development files for libcxl
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: cxl-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n cxl-devel
|
|
|
|
|
This package contains libraries and header files for developing applications
|
|
|
|
|
that use libcxl, a library for enumerating and communicating with CXL devices.
|
|
|
|
|
|
2019-09-30 11:09:31 -04:00
|
|
|
%package -n daxctl-devel
|
|
|
|
|
Summary: Development files for libdaxctl
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: daxctl-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n daxctl-devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}, a library for enumerating
|
|
|
|
|
"Device DAX" devices. Device DAX is a facility for establishing DAX
|
|
|
|
|
mappings of performance / feature-differentiated memory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ndctl-libs
|
|
|
|
|
Summary: Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Requires: daxctl-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n ndctl-libs
|
|
|
|
|
Libraries for %{name}.
|
|
|
|
|
|
|
|
|
|
%package -n daxctl-libs
|
|
|
|
|
Summary: Management library for "Device DAX" devices
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n daxctl-libs
|
|
|
|
|
Device DAX is a facility for establishing DAX mappings of performance /
|
|
|
|
|
feature-differentiated memory. daxctl-libs provides an enumeration /
|
|
|
|
|
control API for these devices.
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
%package -n cxl-libs
|
|
|
|
|
Summary: Management library for CXL devices
|
|
|
|
|
License: LGPLv2
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n cxl-libs
|
|
|
|
|
libcxl is a library for enumerating and communicating with CXL devices.
|
|
|
|
|
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%prep
|
2021-08-02 00:20:21 +08:00
|
|
|
%autosetup -n ndctl-%{version} -p1
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%build
|
2024-01-17 16:17:23 +08:00
|
|
|
%meson %{?asciidoctor} %{?libtracefs} -Dversion-tag=%{version}
|
2022-10-31 16:53:57 +08:00
|
|
|
%meson_build
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%install
|
2022-10-31 16:53:57 +08:00
|
|
|
%meson_install
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%check
|
2022-10-31 16:53:57 +08:00
|
|
|
%meson_test
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%post -n ndctl-libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n ndctl-libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%post -n daxctl-libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n daxctl-libs -p /sbin/ldconfig
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
%post -n cxl-libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n cxl-libs -p /sbin/ldconfig
|
|
|
|
|
|
2019-09-30 11:09:31 -04:00
|
|
|
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
%pre
|
|
|
|
|
if [ -f %{_sysconfdir}/ndctl/monitor.conf ] ; then
|
|
|
|
|
if ! [ -f %{_sysconfdir}/ndctl.conf.d/monitor.conf ] ; then
|
|
|
|
|
cp -a %{_sysconfdir}/ndctl/monitor.conf /var/run/ndctl-monitor.conf-migration
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if [ -f /var/run/ndctl-monitor.conf-migration ] ; then
|
|
|
|
|
config_found=false
|
|
|
|
|
while read line ; do
|
|
|
|
|
[ -n "$line" ] || continue
|
|
|
|
|
case "$line" in
|
|
|
|
|
\#*) continue ;;
|
|
|
|
|
esac
|
|
|
|
|
config_found=true
|
|
|
|
|
break
|
|
|
|
|
done < /var/run/ndctl-monitor.conf-migration
|
|
|
|
|
if $config_found ; then
|
|
|
|
|
echo "[monitor]" > %{_sysconfdir}/ndctl.conf.d/monitor.conf
|
|
|
|
|
cat /var/run/ndctl-monitor.conf-migration >> %{_sysconfdir}/ndctl.conf.d/monitor.conf
|
|
|
|
|
fi
|
|
|
|
|
rm /var/run/ndctl-monitor.conf-migration
|
|
|
|
|
fi
|
|
|
|
|
|
2019-09-30 11:09:31 -04:00
|
|
|
%files
|
2021-01-28 10:32:13 +08:00
|
|
|
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
2019-09-30 11:09:31 -04:00
|
|
|
%{_bindir}/ndctl
|
|
|
|
|
%{_mandir}/man1/ndctl*
|
2022-10-31 16:53:57 +08:00
|
|
|
%{bashcompdir}/ndctl
|
2019-09-30 11:09:31 -04:00
|
|
|
%{_unitdir}/ndctl-monitor.service
|
2020-06-04 17:12:20 +08:00
|
|
|
%{_sysconfdir}/ndctl/keys/keys.readme
|
|
|
|
|
%{_sysconfdir}/modprobe.d/nvdimm-security.conf
|
2022-10-31 16:53:57 +08:00
|
|
|
%dir %{_sysconfdir}/ndctl.conf.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ndctl.conf.d/monitor.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ndctl.conf.d/ndctl.conf
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%files -n daxctl
|
2021-01-28 10:32:13 +08:00
|
|
|
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
2019-09-30 11:09:31 -04:00
|
|
|
%{_bindir}/daxctl
|
|
|
|
|
%{_mandir}/man1/daxctl*
|
2020-06-04 17:12:20 +08:00
|
|
|
%{_datadir}/daxctl/daxctl.conf
|
2022-10-31 16:53:57 +08:00
|
|
|
%{bashcompdir}/daxctl
|
|
|
|
|
%{_unitdir}/daxdev-reconfigure@.service
|
|
|
|
|
%config %{_udevrulesdir}/90-daxctl-device.rules
|
|
|
|
|
%dir %{_sysconfdir}/daxctl.conf.d/
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/daxctl.conf.d/daxctl.example.conf
|
|
|
|
|
|
|
|
|
|
%files -n cxl-cli
|
|
|
|
|
%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
|
|
|
|
%{_bindir}/cxl
|
|
|
|
|
%{_mandir}/man1/cxl*
|
|
|
|
|
%{bashcompdir}/cxl
|
2024-04-08 17:48:01 +08:00
|
|
|
%exclude %{_unitdir}/cxl-monitor.service
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%files -n ndctl-libs
|
|
|
|
|
%doc README.md
|
2021-01-28 10:32:13 +08:00
|
|
|
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
2019-09-30 11:09:31 -04:00
|
|
|
%{_libdir}/libndctl.so.*
|
|
|
|
|
|
|
|
|
|
%files -n daxctl-libs
|
|
|
|
|
%doc README.md
|
2021-01-28 10:32:13 +08:00
|
|
|
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
2019-09-30 11:09:31 -04:00
|
|
|
%{_libdir}/libdaxctl.so.*
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
%files -n cxl-libs
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
|
|
|
|
%{_libdir}/libcxl.so.*
|
|
|
|
|
|
2019-09-30 11:09:31 -04:00
|
|
|
%files -n ndctl-devel
|
2021-01-28 10:32:13 +08:00
|
|
|
%license LICENSES/preferred/LGPL-2.1
|
2019-09-30 11:09:31 -04:00
|
|
|
%{_includedir}/ndctl/
|
|
|
|
|
%{_libdir}/libndctl.so
|
|
|
|
|
%{_libdir}/pkgconfig/libndctl.pc
|
|
|
|
|
|
|
|
|
|
%files -n daxctl-devel
|
2021-01-28 10:32:13 +08:00
|
|
|
%license LICENSES/preferred/LGPL-2.1
|
2019-09-30 11:09:31 -04:00
|
|
|
%{_includedir}/daxctl/
|
|
|
|
|
%{_libdir}/libdaxctl.so
|
|
|
|
|
%{_libdir}/pkgconfig/libdaxctl.pc
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
%files -n cxl-devel
|
|
|
|
|
%license LICENSES/preferred/LGPL-2.1
|
|
|
|
|
%{_includedir}/cxl/
|
|
|
|
|
%{_libdir}/libcxl.so
|
|
|
|
|
%{_libdir}/pkgconfig/libcxl.pc
|
|
|
|
|
%{_mandir}/man3/cxl*
|
|
|
|
|
%{_mandir}/man3/libcxl.3*
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2024-04-08 17:48:01 +08:00
|
|
|
* Mon Apr 8 2024 wuyifeng <wuyifeng10@huawei.com> - 78-2
|
|
|
|
|
- fix ndctl delete monitor.service
|
|
|
|
|
|
2024-01-17 16:17:23 +08:00
|
|
|
* Wed Jan 17 2024 wuyifeng <wuyifeng10@huawei.com> - 78-1
|
|
|
|
|
- upgrade to version 78:
|
|
|
|
|
-incorporate up to 6.5 kernel
|
|
|
|
|
-add new cxl commands
|
|
|
|
|
-fix some bugs detail see:github.com/pmem/ndctl
|
|
|
|
|
|
2023-02-10 16:26:53 +08:00
|
|
|
* Fri Feb 10 2023 suweifeng <suweifeng1@huawei.com> - 75-1
|
|
|
|
|
- upgrade to version 75
|
|
|
|
|
|
2023-01-06 01:41:27 +00:00
|
|
|
* Fri Jan 6 2023 lihaoxiang <lihaoxiang9@huawei.com> - 74-2
|
|
|
|
|
- fix ndctl delete namespace exception
|
|
|
|
|
|
2022-10-31 16:53:57 +08:00
|
|
|
* Mon Oct 31 2022 liusirui <liusirui@huawei.com> - 74-1
|
|
|
|
|
- update version 74
|
|
|
|
|
|
2022-10-20 15:33:46 +08:00
|
|
|
* Thu Oct 20 2022 liusirui <liusirui@huawei.com> - 71.1-4
|
|
|
|
|
- backport patch to fix test case
|
|
|
|
|
|
2021-08-02 00:20:21 +08:00
|
|
|
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 71.1-3
|
|
|
|
|
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2021-06-29 19:04:41 +08:00
|
|
|
* Tue Jun 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 71.1-2
|
|
|
|
|
- add buildrequire git
|
|
|
|
|
|
2021-01-28 10:32:13 +08:00
|
|
|
* Thu Jan 28 2021 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 71.1-1
|
|
|
|
|
- update ndctl to v71.1 latest version
|
|
|
|
|
|
2020-10-30 12:43:33 +08:00
|
|
|
* Fri Oct 30 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 68-2
|
|
|
|
|
- backport upstream patches to fix some potential problems
|
|
|
|
|
|
2020-06-04 17:12:20 +08:00
|
|
|
* Thu Jun 04 2020 lingsheng <lingsheng@huawei.com> - 68-1
|
|
|
|
|
- update version 68
|
|
|
|
|
|
2019-11-06 19:43:45 +08:00
|
|
|
* Wed Oct 16 2019 ted.zhang <ted.zhang@huawei.com> - 63-2
|
|
|
|
|
- generate spec file from source code
|
2019-09-30 11:09:31 -04:00
|
|
|
|
|
|
|
|
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
|
|
|
|
|
- add daxctl-libs + daxctl-devel packages
|
|
|
|
|
- add bash completion
|
|
|
|
|
|
|
|
|
|
* Mon Apr 04 2016 Dan Williams <dan.j.williams@intel.com> - 52-1
|
|
|
|
|
- Initial rpm submission to Fedora
|