From 882ffc92ebf704f9f02d13c68a1b2e4e178750b8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:47:50 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.13-1mamba;Sat Dec 26 2020] --- README.md | 2 ++ nvme-cli.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 nvme-cli.spec diff --git a/README.md b/README.md index 8798edb..d0b6427 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # nvme-cli +NVM-Express user space tooling for Linux. + diff --git a/nvme-cli.spec b/nvme-cli.spec new file mode 100644 index 0000000..4c24a66 --- /dev/null +++ b/nvme-cli.spec @@ -0,0 +1,76 @@ +Name: nvme-cli +Version: 1.13 +Release: 1mamba +Summary: NVM-Express user space tooling for Linux +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/linux-nvme/nvme-cli.git +Source: https://github.com/linux-nvme/nvme-cli.git/v%{version}/nvme-cli-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libsystemd-devel +BuildRequires: libuuid-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +NVM-Express user space tooling for Linux. + +%debug_package + +%prep +%setup -q + +%build +%make + +%preun +%systemd_preun nvmf-autoconnect +: + +%postun +%systemd_postun nvmf-autoconnect +: + +%post +%systemd_post nvmf-autoconnect +: + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + UDEVRULESDIR=%{_udevrulesdir} \ + DRACUTDIR=%{_prefix}/lib/dracut \ + SYSTEMDDIR=/lib/systemd + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_sysconfdir}/nvme +%config(noreplace) %{_sysconfdir}/nvme/discovery.conf +%{_sysconfdir}/nvme/hostid +%{_sysconfdir}/nvme/hostnqn +%{_sbindir}/nvme +%{_prefix}/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf +%{_unitdir}/nvmefc-boot-connections.service +%{_unitdir}/nvmf-autoconnect.service +%{_unitdir}/nvmf-connect.target +%{_unitdir}/nvmf-connect@.service +%{_udevrulesdir}/70-nvmf-autoconnect.rules +%{_udevrulesdir}/71-nvmf-iopolicy-netapp.rules +%{_datadir}/bash-completion/completions/nvme +%{_datadir}/zsh/site-functions/_nvme +%{_mandir}/man1/nvme*.1* +%doc LICENSE + +%changelog +* Sat Dec 26 2020 Silvan Calarco 1.13-1mamba +- package created using the webbuild interface