|
Jeff Moyer |
2c91dc |
From 57b1484fa427228afd52cdfa4fa3916a7a5878bf Mon Sep 17 00:00:00 2001
|
|
Jeff Moyer |
2c91dc |
From: Ira Weiny <ira.weiny@intel.com>
|
|
Jeff Moyer |
2c91dc |
Date: Thu, 7 Oct 2021 02:21:37 -0600
|
|
Jeff Moyer |
2c91dc |
Subject: [PATCH 044/217] ndctl: Add CXL packages to the RPM spec
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
Add CXL related packages - the cxl-cli utility, the libcxl library, and
|
|
Jeff Moyer |
2c91dc |
development headers to respective RPM packages in the main spec file.
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
|
|
Jeff Moyer |
2c91dc |
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
|
|
Jeff Moyer |
2c91dc |
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
|
|
Jeff Moyer |
2c91dc |
---
|
|
Jeff Moyer |
2c91dc |
Makefile.am | 4 ++++
|
|
Jeff Moyer |
2c91dc |
ndctl.spec.in | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
|
|
Jeff Moyer |
2c91dc |
2 files changed, 53 insertions(+)
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
diff --git a/Makefile.am b/Makefile.am
|
|
Jeff Moyer |
2c91dc |
index e2f6bef..fa2010a 100644
|
|
Jeff Moyer |
2c91dc |
--- a/Makefile.am
|
|
Jeff Moyer |
2c91dc |
+++ b/Makefile.am
|
|
Jeff Moyer |
2c91dc |
@@ -23,17 +23,21 @@ CLEANFILES += $(noinst_SCRIPTS)
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
do_rhel_subst = sed -e 's,VERSION,$(VERSION),g' \
|
|
Jeff Moyer |
2c91dc |
-e 's,DAX_DNAME,daxctl-devel,g' \
|
|
Jeff Moyer |
2c91dc |
+ -e 's,CXL_DNAME,cxl-devel,g' \
|
|
Jeff Moyer |
2c91dc |
-e 's,DNAME,ndctl-devel,g' \
|
|
Jeff Moyer |
2c91dc |
-e '/^%defattr.*/d' \
|
|
Jeff Moyer |
2c91dc |
-e 's,DAX_LNAME,daxctl-libs,g' \
|
|
Jeff Moyer |
2c91dc |
+ -e 's,CXL_LNAME,cxl-libs,g' \
|
|
Jeff Moyer |
2c91dc |
-e 's,LNAME,ndctl-libs,g'
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
do_sles_subst = sed -e 's,VERSION,$(VERSION),g' \
|
|
Jeff Moyer |
2c91dc |
-e 's,DAX_DNAME,libdaxctl-devel,g' \
|
|
Jeff Moyer |
2c91dc |
+ -e 's,CXL_DNAME,libcxl-devel,g' \
|
|
Jeff Moyer |
2c91dc |
-e 's,DNAME,libndctl-devel,g' \
|
|
Jeff Moyer |
2c91dc |
-e 's,%license,%doc,g' \
|
|
Jeff Moyer |
2c91dc |
-e 's,\(^License:.*GPL\)v2,\1-2.0,g' \
|
|
Jeff Moyer |
2c91dc |
-e "s,DAX_LNAME,libdaxctl$$(($(LIBDAXCTL_CURRENT) - $(LIBDAXCTL_AGE))),g" \
|
|
Jeff Moyer |
2c91dc |
+ -e "s,CXL_LNAME,libcxl$$(($(LIBCXL_CURRENT) - $(LIBCXL_AGE))),g" \
|
|
Jeff Moyer |
2c91dc |
-e "s,LNAME,libndctl$$(($(LIBNDCTL_CURRENT) - $(LIBNDCTL_AGE))),g"
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
rhel/ndctl.spec: ndctl.spec.in Makefile.am version.m4
|
|
Jeff Moyer |
2c91dc |
diff --git a/ndctl.spec.in b/ndctl.spec.in
|
|
Jeff Moyer |
2c91dc |
index 0563b2d..4b08c05 100644
|
|
Jeff Moyer |
2c91dc |
--- a/ndctl.spec.in
|
|
Jeff Moyer |
2c91dc |
+++ b/ndctl.spec.in
|
|
Jeff Moyer |
2c91dc |
@@ -8,6 +8,7 @@ Source0: https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{v
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
Requires: LNAME%{?_isa} = %{version}-%{release}
|
|
Jeff Moyer |
2c91dc |
Requires: DAX_LNAME%{?_isa} = %{version}-%{release}
|
|
Jeff Moyer |
2c91dc |
+Requires: CXL_LNAME%{?_isa} = %{version}-%{release}
|
|
Jeff Moyer |
2c91dc |
BuildRequires: autoconf
|
|
Jeff Moyer |
2c91dc |
%if 0%{?rhel} < 9
|
|
Jeff Moyer |
2c91dc |
BuildRequires: asciidoc
|
|
Jeff Moyer |
2c91dc |
@@ -54,6 +55,24 @@ the Linux kernel Device-DAX facility. This facility enables DAX mappings
|
|
Jeff Moyer |
2c91dc |
of performance / feature differentiated memory without need of a
|
|
Jeff Moyer |
2c91dc |
filesystem.
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
+%package -n cxl-cli
|
|
Jeff Moyer |
2c91dc |
+Summary: Manage CXL devices
|
|
Jeff Moyer |
2c91dc |
+License: GPLv2
|
|
Jeff Moyer |
2c91dc |
+Requires: CXL_LNAME%{?_isa} = %{version}-%{release}
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
+%description -n cxl-cli
|
|
Jeff Moyer |
2c91dc |
+The cxl utility provides enumeration and provisioning commands for
|
|
Jeff Moyer |
2c91dc |
+the Linux kernel CXL devices.
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
+%package -n CXL_DNAME
|
|
Jeff Moyer |
2c91dc |
+Summary: Development files for libcxl
|
|
Jeff Moyer |
2c91dc |
+License: LGPLv2
|
|
Jeff Moyer |
2c91dc |
+Requires: CXL_LNAME%{?_isa} = %{version}-%{release}
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
+%description -n CXL_DNAME
|
|
Jeff Moyer |
2c91dc |
+This package contains libraries and header files for developing applications
|
|
Jeff Moyer |
2c91dc |
+that use libcxl, a library for enumerating and communicating with CXL devices.
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
%package -n DAX_DNAME
|
|
Jeff Moyer |
2c91dc |
Summary: Development files for libdaxctl
|
|
Jeff Moyer |
2c91dc |
License: LGPLv2
|
|
Jeff Moyer |
2c91dc |
@@ -84,6 +103,13 @@ Device DAX is a facility for establishing DAX mappings of performance /
|
|
Jeff Moyer |
2c91dc |
feature-differentiated memory. DAX_LNAME provides an enumeration /
|
|
Jeff Moyer |
2c91dc |
control API for these devices.
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
+%package -n CXL_LNAME
|
|
Jeff Moyer |
2c91dc |
+Summary: Management library for CXL devices
|
|
Jeff Moyer |
2c91dc |
+License: LGPLv2
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
+%description -n CXL_LNAME
|
|
Jeff Moyer |
2c91dc |
+libcxl is a library for enumerating and communicating with CXL devices.
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
%prep
|
|
Jeff Moyer |
2c91dc |
%setup -q ndctl-%{version}
|
|
Jeff Moyer |
2c91dc |
@@ -105,6 +131,8 @@ make check
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
%ldconfig_scriptlets -n DAX_LNAME
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
+%ldconfig_scriptlets -n CXL_LNAME
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
%define bashcompdir %(pkg-config --variable=completionsdir bash-completion)
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
%files
|
|
Jeff Moyer |
2c91dc |
@@ -126,6 +154,12 @@ make check
|
|
Jeff Moyer |
2c91dc |
%{_mandir}/man1/daxctl*
|
|
Jeff Moyer |
2c91dc |
%{_datadir}/daxctl/daxctl.conf
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
+%files -n cxl-cli
|
|
Jeff Moyer |
2c91dc |
+%defattr(-,root,root)
|
|
Jeff Moyer |
2c91dc |
+%license LICENSES/preferred/GPL-2.0 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
|
Jeff Moyer |
2c91dc |
+%{_bindir}/cxl
|
|
Jeff Moyer |
2c91dc |
+%{_mandir}/man1/cxl*
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
%files -n LNAME
|
|
Jeff Moyer |
2c91dc |
%defattr(-,root,root)
|
|
Jeff Moyer |
2c91dc |
%doc README.md
|
|
Jeff Moyer |
2c91dc |
@@ -138,6 +172,12 @@ make check
|
|
Jeff Moyer |
2c91dc |
%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
|
Jeff Moyer |
2c91dc |
%{_libdir}/libdaxctl.so.*
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
+%files -n CXL_LNAME
|
|
Jeff Moyer |
2c91dc |
+%defattr(-,root,root)
|
|
Jeff Moyer |
2c91dc |
+%doc README.md
|
|
Jeff Moyer |
2c91dc |
+%license LICENSES/preferred/LGPL-2.1 LICENSES/other/MIT LICENSES/other/CC0-1.0
|
|
Jeff Moyer |
2c91dc |
+%{_libdir}/libcxl.so.*
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
%files -n DNAME
|
|
Jeff Moyer |
2c91dc |
%defattr(-,root,root)
|
|
Jeff Moyer |
2c91dc |
%license LICENSES/preferred/LGPL-2.1
|
|
Jeff Moyer |
2c91dc |
@@ -152,6 +192,15 @@ make check
|
|
Jeff Moyer |
2c91dc |
%{_libdir}/libdaxctl.so
|
|
Jeff Moyer |
2c91dc |
%{_libdir}/pkgconfig/libdaxctl.pc
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
+%files -n CXL_DNAME
|
|
Jeff Moyer |
2c91dc |
+%defattr(-,root,root)
|
|
Jeff Moyer |
2c91dc |
+%license LICENSES/preferred/LGPL-2.1
|
|
Jeff Moyer |
2c91dc |
+%{_includedir}/cxl/
|
|
Jeff Moyer |
2c91dc |
+%{_libdir}/libcxl.so
|
|
Jeff Moyer |
2c91dc |
+%{_libdir}/pkgconfig/libcxl.pc
|
|
Jeff Moyer |
2c91dc |
+%{_mandir}/man3/cxl*
|
|
Jeff Moyer |
2c91dc |
+%{_mandir}/man3/libcxl.3.gz
|
|
Jeff Moyer |
2c91dc |
+
|
|
Jeff Moyer |
2c91dc |
|
|
Jeff Moyer |
2c91dc |
%changelog
|
|
Jeff Moyer |
2c91dc |
* Fri May 27 2016 Dan Williams <dan.j.williams@intel.com> - 53-1
|
|
Jeff Moyer |
2c91dc |
--
|
|
Jeff Moyer |
2c91dc |
2.27.0
|
|
Jeff Moyer |
2c91dc |
|