Blame SPECS/targetcli.spec

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