Blame SPECS/nvmetcli.spec

1c05bf
Name:           nvmetcli
1c05bf
License:        ASL 2.0
1c05bf
Group:          Applications/System
1c05bf
Summary:        An adminstration shell for NVMe storage targets
cc39cd
Version:        0.7
cc39cd
Release:        3%{?dist}
1c05bf
URL:            ftp://ftp.infradead.org/pub/nvmetcli/
1c05bf
Source:         ftp://ftp.infradead.org/pub/nvmetcli/%{name}-%{version}.tar.gz
cc39cd
Patch0:         0001-Documentation-fix-typo.patch
cc39cd
Patch1:         0002-nvmetcli-don-t-remove-ANA-Group-1-on-clear.patch
1c05bf
BuildArch:      noarch
1c05bf
BuildRequires:  python3-devel python3-setuptools systemd-units asciidoc xmlto
1c05bf
Requires:       python3-configshell python3-kmod
1c05bf
Requires(post): systemd
1c05bf
Requires(preun): systemd
1c05bf
Requires(postun): systemd
1c05bf
1c05bf
%description
1c05bf
This package contains the command line interface to the NVMe over Fabrics
1c05bf
nvmet in the Linux kernel.  It allows configuring the nvmet interactively
1c05bf
as well as saving / restoring the configuration to / from a json file.
1c05bf
1c05bf
%prep
1c05bf
%setup -q
1c05bf
%patch0 -p1
cc39cd
%patch1 -p1
1c05bf
1c05bf
%build
1c05bf
%{__python3} setup.py build
1c05bf
cd Documentation
1c05bf
make
1c05bf
gzip --stdout nvmetcli.8 > nvmetcli.8.gz
1c05bf
1c05bf
%install
1c05bf
%{__python3} setup.py install --skip-build --root %{buildroot}
1c05bf
mkdir -p %{buildroot}%{_unitdir}
1c05bf
mkdir -p %{buildroot}%{_sysconfdir}/nvmet
1c05bf
install -m 644 nvmet.service %{buildroot}%{_unitdir}/nvmet.service
1c05bf
mkdir -p %{buildroot}%{_mandir}/man8/
1c05bf
install -m 644 Documentation/nvmetcli.8.gz %{buildroot}%{_mandir}/man8/
1c05bf
1c05bf
%post
1c05bf
%systemd_post nvmet.service
1c05bf
1c05bf
%preun
1c05bf
%systemd_preun nvmet.service
1c05bf
1c05bf
%postun
1c05bf
%systemd_postun_with_restart nvmet.service
1c05bf
1c05bf
%files
1c05bf
%{python3_sitelib}/*
1c05bf
%dir %{_sysconfdir}/nvmet
1c05bf
%{_sbindir}/nvmetcli
1c05bf
%{_unitdir}/nvmet.service
1c05bf
%doc README
1c05bf
%license COPYING
1c05bf
%{_mandir}/man8/nvmetcli.8.gz
1c05bf
1c05bf
%changelog
cc39cd
* Wed Apr 28 2021 Maurizio Lombardi <mlombard@redhat.com> - 0.7-3
cc39cd
- Fix a failure when executing a clear command
cc39cd
cc39cd
* Thu Apr 22 2021 Maurizio Lombardi <mlombard@redhat.com> - 0.7-1
cc39cd
- Fix typo in the documentation
cc39cd
cc39cd
* Thu Apr 22 2021 Maurizio Lombardi <mlombard@redhat.com> - 0.7-1
cc39cd
- Update to the latest version
cc39cd
1c05bf
* Fri Sep 14 2018 Maurizio Lombardi <mlombard@redhat.com> - 0.6-2
1c05bf
- Support python3 dictionary access.
1c05bf
1c05bf
* Fri Jul 06 2018 Maurizio Lombardi <mlombard@redhat.com> - 0.6-1
1c05bf
- Update for new upstream release
1c05bf
1c05bf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-2
1c05bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1c05bf
1c05bf
* Tue May 9 2017 Andy Grover <agrover@redhat.com> - 0.4-1
1c05bf
- Update for new upstream release
1c05bf
- Remove fix-setup.patch
1c05bf
1c05bf
* Tue Feb 21 2017 Andy Grover <agrover@redhat.com> - 0.3-1
1c05bf
- Update for new upstream release
1c05bf
1c05bf
* Wed Oct 12 2016 Andy Grover <agrover@redhat.com> - 0.2-1
1c05bf
- Initial packaging