From ae7aacdfb9cb83212968b14826f46cc3012d3574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 21:27:58 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/nvmetcli#79525badf33933162946e20b7ea49652c498858a --- .gitignore | 2 ++ nvmetcli.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 100 insertions(+) create mode 100644 nvmetcli.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..7d51299 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/nvmetcli-0.3.tar.gz +/nvmetcli-0.4.tar.gz diff --git a/nvmetcli.spec b/nvmetcli.spec new file mode 100644 index 0000000..8da5fb3 --- /dev/null +++ b/nvmetcli.spec @@ -0,0 +1,97 @@ +Name: nvmetcli +License: ASL 2.0 +Summary: An adminstration shell for NVMe storage targets +Version: 0.4 +Release: 12%{?dist} +URL: ftp://ftp.infradead.org/pub/nvmetcli/ +Source: ftp://ftp.infradead.org/pub/nvmetcli/%{name}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python3-devel python3-setuptools systemd-units asciidoc xmlto +Requires: python3-configshell python3-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 +%{__python3} setup.py build +cd Documentation +make +gzip --stdout nvmetcli.8 > nvmetcli.8.gz + +%install +%{__python3} setup.py install --skip-build --root %{buildroot} +mkdir -p %{buildroot}%{_unitdir} +mkdir -p %{buildroot}%{_sysconfdir}/nvmet +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 +%{python3_sitelib}/* +%dir %{_sysconfdir}/nvmet +%{_sbindir}/nvmetcli +%{_unitdir}/nvmet.service +%doc README +%license COPYING +%{_mandir}/man8/nvmetcli.8.gz + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 0.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.4-11 +- Rebuilt for Python 3.9 + +* Wed Jan 29 2020 Fedora Release Engineering - 0.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.4-9 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.4-8 +- Rebuilt for Python 3.8 + +* Thu Jul 25 2019 Fedora Release Engineering - 0.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.4-4 +- Rebuilt for Python 3.7 + +* Thu Feb 08 2018 Fedora Release Engineering - 0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..9ede9af --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (nvmetcli-0.4.tar.gz) = a6619052295200b3d8fb4b075426f1bdffc809cb11a38fe0e3d70c7f01d3dbdc0be4c7fd7c507d279584024647b2cea3ea4f67e41379804deb45f55009796f06