From 439fbad13fe199bcc79e261d62e7da66a42b46b2 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 10 2018 05:50:32 +0000 Subject: import nvmetcli-0.5-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9e9196 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/nvmetcli-0.5.tar.gz diff --git a/.nvmetcli.metadata b/.nvmetcli.metadata new file mode 100644 index 0000000..30cfc21 --- /dev/null +++ b/.nvmetcli.metadata @@ -0,0 +1 @@ +5f1ed17bbec66da9937e28f1f6c91138995e5457 SOURCES/nvmetcli-0.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nvmetcli.spec b/SPECS/nvmetcli.spec new file mode 100644 index 0000000..6d31bd3 --- /dev/null +++ b/SPECS/nvmetcli.spec @@ -0,0 +1,68 @@ +Name: nvmetcli +License: Apache License 2.0 +Group: Applications/System +Summary: An adminstration shell for NVMe storage targets +Version: 0.5 +Release: 1%{?dist} +URL: ftp://ftp.infradead.org/pub/nvmetcli/ +Source: ftp://ftp.infradead.org/pub/nvmetcli/%{name}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python-devel python-setuptools systemd-units asciidoc xmlto +Requires: python-configshell python-kmod +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + +%description +This package contains the command line interface to the NVMe over Fabrics +nvmet in the Linux kernel. It allows configuring the nvmet interactively +as well as saving / restoring the configuration to / from a json file. + +%prep +%setup -q + +%build +%{__python} setup.py build +cd Documentation +make +gzip --stdout nvmetcli.8 > nvmetcli.8.gz + +%install +%{__python} setup.py install --skip-build --root %{buildroot} +mkdir -p %{buildroot}%{_unitdir} +mkdir -p %{buildroot}%{_sysconfdir}/nvmet +#install -m 755 nvmetcli %{buildroot}/usr/sbin/nvmetcli +install -m 644 nvmet.service %{buildroot}%{_unitdir}/nvmet.service +mkdir -p %{buildroot}%{_mandir}/man8/ +install -m 644 Documentation/nvmetcli.8.gz %{buildroot}%{_mandir}/man8/ + +%post +%systemd_post nvmet.service + +%preun +%systemd_preun nvmet.service + +%postun +%systemd_postun_with_restart nvmet.service + +%files +%{python_sitelib}/* +%dir %{_sysconfdir}/nvmet +%{_sbindir}/nvmetcli +%{_unitdir}/nvmet.service +%doc COPYING README +%{_mandir}/man8/nvmetcli.8.gz + +%changelog +* Tue Nov 14 2017 Maurizio Lombardi - 0.5-1 +- Update for new upstream release + +* Tue May 9 2017 Andy Grover - 0.4-1 +- Update for new upstream release +- Remove fix-setup.patch + +* Tue Feb 21 2017 Andy Grover - 0.3-1 +- Update for new upstream release + +* Wed Oct 12 2016 Andy Grover - 0.2-1 +- Initial packaging