439fba
Name:           nvmetcli
439fba
License:        Apache License 2.0
439fba
Group:          Applications/System
439fba
Summary:        An adminstration shell for NVMe storage targets
f8b547
Version:        0.6
439fba
Release:        1%{?dist}
439fba
URL:            ftp://ftp.infradead.org/pub/nvmetcli/
439fba
Source:         ftp://ftp.infradead.org/pub/nvmetcli/%{name}-%{version}.tar.gz
439fba
BuildArch:      noarch
439fba
BuildRequires:  python-devel python-setuptools systemd-units asciidoc xmlto
439fba
Requires:       python-configshell python-kmod
439fba
Requires(post): systemd
439fba
Requires(preun): systemd
439fba
Requires(postun): systemd
439fba
439fba
%description
439fba
This package contains the command line interface to the NVMe over Fabrics
439fba
nvmet in the Linux kernel.  It allows configuring the nvmet interactively
439fba
as well as saving / restoring the configuration to / from a json file.
439fba
439fba
%prep
439fba
%setup -q
439fba
439fba
%build
439fba
%{__python} setup.py build
439fba
cd Documentation
439fba
make
439fba
gzip --stdout nvmetcli.8 > nvmetcli.8.gz
439fba
439fba
%install
439fba
%{__python} setup.py install --skip-build --root %{buildroot}
439fba
mkdir -p %{buildroot}%{_unitdir}
439fba
mkdir -p %{buildroot}%{_sysconfdir}/nvmet
439fba
#install -m 755 nvmetcli %{buildroot}/usr/sbin/nvmetcli
439fba
install -m 644 nvmet.service %{buildroot}%{_unitdir}/nvmet.service
439fba
mkdir -p %{buildroot}%{_mandir}/man8/
439fba
install -m 644 Documentation/nvmetcli.8.gz %{buildroot}%{_mandir}/man8/
439fba
439fba
%post
439fba
%systemd_post nvmet.service
439fba
439fba
%preun
439fba
%systemd_preun nvmet.service
439fba
439fba
%postun
439fba
%systemd_postun_with_restart nvmet.service
439fba
439fba
%files
439fba
%{python_sitelib}/*
439fba
%dir %{_sysconfdir}/nvmet
439fba
%{_sbindir}/nvmetcli
439fba
%{_unitdir}/nvmet.service
439fba
%doc COPYING README
439fba
%{_mandir}/man8/nvmetcli.8.gz
439fba
439fba
%changelog
f8b547
* Tue Jul 31 2018 Maurizio Lombardi <mlombard@redhat.com> - 0.6-1
f8b547
- Update for new upstream release
f8b547
439fba
* Tue Nov 14 2017 Maurizio Lombardi <mlombard@redhat.com> - 0.5-1
439fba
- Update for new upstream release
439fba
439fba
* Tue May 9 2017 Andy Grover <agrover@redhat.com> - 0.4-1
439fba
- Update for new upstream release
439fba
- Remove fix-setup.patch
439fba
439fba
* Tue Feb 21 2017 Andy Grover <agrover@redhat.com> - 0.3-1
439fba
- Update for new upstream release
439fba
439fba
* Wed Oct 12 2016 Andy Grover <agrover@redhat.com> - 0.2-1
439fba
- Initial packaging