Blame SPECS/targetcli.spec

b32908
%global oname targetcli-fb
b32908
b32908
Name:           targetcli
b32908
License:        ASL 2.0
b32908
Group:          System Environment/Libraries
b32908
Summary:        An administration shell for storage targets
bdc779
Version:        2.1.51
b32908
Release:        1%{?dist}
b32908
URL:            https://fedorahosted.org/targetcli-fb/
b32908
Source:         https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz
bdc779
Patch0:         0001-setup.py-add-the-socket-and-service-files-to-the-dat.patch
b32908
BuildArch:      noarch
b32908
BuildRequires:  python3-devel, python3-setuptools
bdc779
Requires:       python3-rtslib, target-restore, python3-configshell, python3-six, python3-dbus, python3-gobject-base
b32908
b32908
b32908
%description
b32908
An administration shell for configuring iSCSI, FCoE, and other
b32908
SCSI targets, using the TCM/LIO kernel target subsystem. FCoE
b32908
users will also need to install and use fcoe-utils.
b32908
b32908
b32908
%prep
b32908
%setup -q -n %{oname}-%{version}
bdc779
%patch0 -p1
b32908
b32908
%build
b32908
%{__python3} setup.py build
b32908
gzip --stdout targetcli.8 > targetcli.8.gz
bdc779
gzip --stdout targetclid.8 > targetclid.8.gz
b32908
b32908
%install
bdc779
mkdir -p %{buildroot}%{_unitdir}
b32908
%{__python3} setup.py install --skip-build --root %{buildroot}
b32908
mkdir -p %{buildroot}%{_sysconfdir}/target/backup
b32908
mkdir -p %{buildroot}%{_mandir}/man8/
b32908
install -m 644 targetcli.8.gz %{buildroot}%{_mandir}/man8/
bdc779
install -m 644 targetclid.8.gz %{buildroot}%{_mandir}/man8/
b32908
b32908
%files
b32908
%{python3_sitelib}/*
b32908
%{_bindir}/targetcli
bdc779
%{_bindir}/targetclid
b32908
%dir %{_sysconfdir}/target
b32908
%dir %{_sysconfdir}/target/backup
b32908
%doc COPYING README.md
b32908
%{_mandir}/man8/targetcli.8.gz
bdc779
%{_mandir}/man8/targetclid.8.gz
bdc779
%{_usr}/lib/systemd/system/targetclid.service
bdc779
%{_usr}/lib/systemd/system/targetclid.socket
b32908
b32908
%changelog
bdc779
* Mon Nov 18 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.51-1
bdc779
- Update to new upstream release
bdc779
b32908
* Thu Sep 06 2018 Maurizio Lombardi <mlombard@redhat.com> - 2.1.fb49-1
b32908
- Update to new upstream release
b32908
b32908
* Mon Aug 06 2018 Maurizio Lombardi <mlombard@redhat.com> - 2.1.fb48-4
b32908
- Fix code incompatible with python3
b32908
b32908
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.fb48-3
b32908
- Escape macros in %%changelog
b32908
b32908
* Wed Jan 31 2018 Andy Grover <agrover@redhat.com> - 2.1.fb48-2
b32908
- Add dep on python3-gobject
b32908
b32908
* Fri Jan 26 2018 Andy Grover <agrover@redhat.com> - 2.1.fb48-1
b32908
- New upstream version
b32908
b32908
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb46-2
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b32908
b32908
* Wed Mar 1 2017 Andy Grover <agrover@redhat.com> - 2.1.fb46-1
b32908
- New upstream version
b32908
b32908
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb43-4
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b32908
b32908
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb43-3
b32908
- Rebuild for Python 3.6
b32908
b32908
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb43-2
b32908
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b32908
b32908
* Thu Apr 7 2016 Andy Grover <agrover@redhat.com> - 2.1.fb43-1
b32908
- New upstream version
b32908
b32908
* Tue Feb 23 2016 Andy Grover <agrover@redhat.com> - 2.1.fb42-3
b32908
- Fix #1294337 by adding dep on correct Py3 dbus pkg
b32908
b32908
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb42-2
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b32908
b32908
* Tue Dec 1 2015 Andy Grover <agrover@redhat.com> - 2.1.fb42-1
b32908
- New upstream version
b32908
b32908
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb41-4
b32908
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b32908
b32908
* Mon Aug 31 2015 Andy Grover <agrover@redhat.com> - 2.1.fb41-3
b32908
- Fix Requires to python3-six from python-six
b32908
b32908
* Fri Aug 28 2015 Andy Grover <agrover@redhat.com> - 2.1.fb41-2
b32908
- Add Requires on target-restore
b32908
b32908
* Tue Jun 23 2015 Andy Grover <agrover@redhat.com> - 2.1.fb41-1
b32908
- New upstream version
b32908
- Use python-six instead of 2to3
b32908
b32908
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb40-2
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b32908
b32908
* Mon Apr 20 2015 Andy Grover <agrover@redhat.com> - 2.1.fb40-1
b32908
- New upstream version
b32908
b32908
* Tue Jan 13 2015 Andy Grover <agrover@redhat.com> - 2.1.fb39-1
b32908
- New upstream version
b32908
b32908
* Tue Dec 2 2014 Andy Grover <agrover@redhat.com> - 2.1.fb38-1
b32908
- New upstream version
b32908
b32908
* Thu Nov 13 2014 Andy Grover <agrover@redhat.com> - 2.1.fb37-2
b32908
- Convert to using Python 3 interpreter and libs
b32908
b32908
* Wed Sep 24 2014 Andy Grover <agrover@redhat.com> - 2.1.fb37-1
b32908
- New upstream version
b32908
b32908
* Thu Aug 28 2014 Andy Grover <agrover@redhat.com> - 2.1.fb36-1
b32908
- New upstream version
b32908
b32908
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb35-2
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b32908
b32908
* Fri Mar 14 2014 Andy Grover <agrover@redhat.com> - 2.1.fb35-1
b32908
- New upstream version
b32908
b32908
* Mon Feb 24 2014 Andy Grover <agrover@redhat.com> - 2.1.fb34-1
b32908
- New upstream version
b32908
b32908
* Wed Dec 4 2013 Andy Grover <agrover@redhat.com> - 2.1.fb33-1
b32908
- New upstream version
b32908
b32908
* Fri Nov 1 2013 Andy Grover <agrover@redhat.com> - 2.1.fb31-1
b32908
- New upstream version
b32908
- Move service handling to python-rtslib
b32908
- Remove old packaging bits: clean, buildroot, defattr
b32908
b32908
* Thu Sep 12 2013 Andy Grover <agrover@redhat.com> - 2.1.fb30-1
b32908
- New upstream version
b32908
b32908
* Tue Sep 10 2013 Andy Grover <agrover@redhat.com> - 2.1.fb29-1
b32908
- New upstream release
b32908
- Remove no-longer-needed BuildRequires
b32908
b32908
* Mon Aug 5 2013 Andy Grover <agrover@redhat.com> - 2.1.fb28-1
b32908
- New upstream release
b32908
b32908
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb27-2
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b32908
b32908
* Tue Jul 23 2013 Andy Grover <agrover@redhat.com> - 2.1.fb27-1
b32908
- New upstream release
b32908
- License now Apache 2.0
b32908
- Remove patch modules-not-loaded.patch
b32908
b32908
* Tue Jun 18 2013 Andy Grover <agrover@redhat.com> - 2.1.fb26-2
b32908
- Add patch
b32908
  * modules-not-loaded.patch
b32908
b32908
* Fri Jun 7 2013 Andy Grover <agrover@redhat.com> - 2.1.fb26-1
b32908
- New upstream release
b32908
b32908
* Thu May 9 2013 Andy Grover <agrover@redhat.com> - 2.1.fb25-1
b32908
- New upstream release
b32908
b32908
* Thu May 2 2013 Andy Grover <agrover@redhat.com> - 2.1.fb24-1
b32908
- New upstream release
b32908
- Update source URL
b32908
b32908
* Fri Apr 12 2013 Andy Grover <agrover@redhat.com> - 2.1.fb23-1
b32908
- New upstream release
b32908
b32908
* Wed Apr 10 2013 Andy Grover <agrover@redhat.com> - 2.1.fb22-1
b32908
- New upstream release
b32908
b32908
* Mon Mar 4 2013 Andy Grover <agrover@redhat.com> - 2.0.fb21-1
b32908
- New upstream release
b32908
b32908
* Tue Feb 26 2013 Andy Grover <agrover@redhat.com> - 2.0.fb20-1
b32908
- New upstream release
b32908
b32908
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0rc1.fb19-2
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b32908
b32908
* Mon Jan 7 2013 Andy Grover <agrover@redhat.com> - 2.0rc1.fb19-1
b32908
- New upstream release
b32908
b32908
* Thu Jan 3 2013 Andy Grover <agrover@redhat.com> - 2.0rc1.fb18-2
b32908
- Add python-ethtool BuildRequires
b32908
b32908
* Thu Dec 20 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb18-1
b32908
- New upstream release
b32908
- Add python-ethtool requires
b32908
- Update Source0 to use Github tar-from-tag instead of Downloads
b32908
b32908
* Thu Dec 13 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 2.0rc1.fb17-2
b32908
- Scriptlets replaced with new systemd macros (#850335)
b32908
b32908
* Mon Nov 12 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb17-1
b32908
- New upstream release
b32908
b32908
* Tue Aug 7 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb16-1
b32908
- New upstream release
b32908
- Update rtslib version dependency
b32908
b32908
* Tue Jul 31 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb15-1
b32908
- New upstream release
b32908
b32908
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0rc1.fb14-3
b32908
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b32908
b32908
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb14-2
b32908
- Fix %%files to claim /etc/target, not claim sitelib
b32908
b32908
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb14-1
b32908
- New upstream release
b32908
b32908
* Tue Jun 12 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb13-1
b32908
- New upstream release
b32908
b32908
* Wed May 30 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb12-1
b32908
- Update Source URL to proper tarball
b32908
- New upstream release
b32908
b32908
* Mon Apr 9 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb11-1
b32908
- New upstream release
b32908
b32908
* Wed Feb 29 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb10-1
b32908
- New upstream release
b32908
b32908
* Tue Feb 21 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb9-1
b32908
- New upstream release
b32908
b32908
* Thu Feb 16 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb8-1
b32908
- New upstream release
b32908
b32908
* Wed Feb 8 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb7-1
b32908
- New upstream release
b32908
b32908
* Fri Feb 3 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb6-1
b32908
- New upstream release
b32908
b32908
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb5-2
b32908
- Update After= in service file to wait for localfs and network
b32908
- Improve description in service file
b32908
b32908
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb5-1
b32908
- New upstream release
b32908
b32908
* Fri Jan 13 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb4-1
b32908
- New upstream release
b32908
b32908
* Tue Dec 13 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb3-2
b32908
- Fix service file to mount configfs before starting targetcli
b32908
b32908
* Tue Dec 13 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb3-1
b32908
- New upstream release
b32908
- Fixup service file for new start/stop targetcli commands
b32908
b32908
* Tue Dec 6 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb2-1
b32908
- New upstream source and release
b32908
- Remove patches:
b32908
  * targetcli-git-version.patch
b32908
  * 0001-Remove-ads-from-cli-welcome-msg.-Mention-help-is-ava.patch
b32908
  * 0002-bundle-lio-utils.patch
b32908
  * 0003-Hack.-dump-scripts-aren-t-in-PATH-anymore-so-call-th.patch
b32908
  * 0004-ignore-errors-from-failure-to-set-device-attributes.patch
b32908
  * 0005-fix-spec_root-path.patch
b32908
  * 0006-add-docs.patch
b32908
  * 0007-all-start.patch
b32908
b32908
* Mon Nov 21 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-4
b32908
- Update doc patch to include iscsi tutorial
b32908
b32908
* Wed Nov 2 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-3
b32908
- Add buildrequires for systemd-units
b32908
- use _unitdir
b32908
- remove preun, modify post
b32908
b32908
* Wed Nov 2 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-2
b32908
- Add patch
b32908
  * 0007-all-start.patch
b32908
- Replace sysv init with systemd init
b32908
b32908
* Fri Oct 7 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-1
b32908
- Initial Fedora packaging