Blame SPECS/nvmetcli.spec

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