Blame SPECS/nvmetcli.spec

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