[packages/nvme-cli] up to 1.12

atler atler at pld-linux.org
Sat Jul 4 18:29:21 CEST 2020


commit e9677b2f6578f1577d3821537bbaa1bba2a89001
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Jul 4 18:27:54 2020 +0200

    up to 1.12

 nvme-cli.spec | 36 +++++++++++++++++++++++++++++++++---
 1 file changed, 33 insertions(+), 3 deletions(-)
---
diff --git a/nvme-cli.spec b/nvme-cli.spec
index 52651f5..acb88e8 100644
--- a/nvme-cli.spec
+++ b/nvme-cli.spec
@@ -1,22 +1,40 @@
 Summary:	NVMe management command line interface
 Summary(pl.UTF-8):	Konsolowy interfejs do zarządzania NVMe
 Name:		nvme-cli
-Version:	1.8.1
+Version:	1.12
 Release:	1
 License:	GPL v2+
 Group:		Applications
 Source0:	https://github.com/linux-nvme/nvme-cli/archive/v%{version}.tar.gz
-# Source0-md5:	19e9677bd1f0f7bb7dcd6d73023b483c
+# Source0-md5:	94997b72a63b5bc26c2862c7603bb6e3
 URL:		https://github.com/linux-nvme/nvme-cli
 BuildRequires:	libuuid-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		dracutdir	/usr/lib/dracut
+
 %description
 nvme-cli provides NVM-Express user space tooling for Linux.
 
 %description -l pl.UTF-8
 nvme-cli dostarcza narzędzia zarządzania NVM-Express.
 
+%package -n dracut-nvmf
+Summary:	nvmf support for Dracut
+Summary(pl.UTF-8):	Obsługa nvmf dla Dracut
+Group:		Applications/System
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	dracut
+%if "%{_rpmversion}" >= "4.6"
+BuildArch:	noarch
+%endif
+
+%description -n dracut-nvmf
+nvmf support for Dracut.
+
+%description -n dracut-nvmf -l pl.UTF-8
+Obsługa nvmf dla Dracut.
+
 %package -n bash-completion-nvme-cli
 Summary:	bash-completion for nvme-cli
 Summary(pl.UTF-8):	Bashowe dopełnianie składni dla nvme-cli
@@ -67,7 +85,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
 	PREFIX=%{_prefix} \
-	DESTDIR=$RPM_BUILD_ROOT
+	DESTDIR=$RPM_BUILD_ROOT \
+	DRACUTDIR=%{dracutdir} \
+	SYSTEMDDIR=%{systemdunitdir}/..
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -75,8 +95,18 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.md
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/70-nvmf-autoconnect.rules
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/udev/rules.d/71-nvmf-iopolicy-netapp.rules
 %attr(755,root,root) %{_sbindir}/nvme
 %{_mandir}/man1/nvme*
+%{systemdunitdir}/nvmefc-boot-connections.service
+%{systemdunitdir}/nvmf-autoconnect.service
+%{systemdunitdir}/nvmf-connect.target
+%{systemdunitdir}/nvmf-connect at .service
+
+%files -n dracut-nvmf
+%defattr(644,root,root,755)
+%{dracutdir}/dracut.conf.d/70-nvmf-autoconnect.conf
 
 %files -n bash-completion-nvme-cli
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nvme-cli.git/commitdiff/e9677b2f6578f1577d3821537bbaa1bba2a89001



More information about the pld-cvs-commit mailing list