a65f79
%global oname targetcli-fb
a65f79
a65f79
Name:           targetcli
a65f79
License:        ASL 2.0
a65f79
Summary:        An administration shell for storage targets
a65f79
Version:        2.1.53
a65f79
Release:        7%{?dist}
a65f79
URL:            https://github.com/open-iscsi/%{oname}
a65f79
Source:         %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz
a65f79
# Proposed upstream
a65f79
## From: https://github.com/open-iscsi/targetcli-fb/pull/176
a65f79
Patch1:         Do-not-install-systemd-files-in-setup.py.patch
a65f79
BuildArch:      noarch
a65f79
BuildRequires:  python3-devel, python3-setuptools, systemd-rpm-macros
a65f79
Requires:       python3-rtslib, target-restore, python3-configshell, python3-six, python3-dbus
a65f79
Requires:       python3-gobject-base
a65f79
a65f79
a65f79
%description
a65f79
An administration shell for configuring iSCSI, FCoE, and other
a65f79
SCSI targets, using the TCM/LIO kernel target subsystem. FCoE
a65f79
users will also need to install and use fcoe-utils.
a65f79
a65f79
a65f79
%prep
a65f79
%setup -q -n %{oname}-%{version}
a65f79
%patch1 -p1
a65f79
a65f79
%build
a65f79
%py3_build
a65f79
a65f79
%install
a65f79
%py3_install
a65f79
mkdir -p %{buildroot}%{_sysconfdir}/target/backup
a65f79
mkdir -p %{buildroot}%{_mandir}/man8/
a65f79
install -m 644 targetcli*.8 %{buildroot}%{_mandir}/man8/
a65f79
mkdir -p %{buildroot}%{_unitdir}/
a65f79
install -m 644 systemd/* %{buildroot}%{_unitdir}/
a65f79
a65f79
%files
a65f79
%doc README.md
a65f79
%license COPYING
a65f79
%{python3_sitelib}/targetcli*
a65f79
%{_bindir}/targetcli
a65f79
%{_bindir}/targetclid
a65f79
%{_mandir}/man8/targetcli*.8*
a65f79
%{_unitdir}/*
a65f79
%dir %{_sysconfdir}/target
a65f79
%dir %{_sysconfdir}/target/backup
a65f79
a65f79
%changelog
a65f79
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.53-7
a65f79
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
a65f79
  Related: rhbz#1991688
a65f79
a65f79
* Thu Jun 24 2021 Maurizio Lombardi <mlombard@redhat.com> - 2.1.53-5
a65f79
- Add the gating.yaml file
a65f79
a65f79
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.53-4
a65f79
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
a65f79
a65f79
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.53-3
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a65f79
a65f79
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.53-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a65f79
a65f79
* Thu Jun 25 2020 Matt Coleman <matt@datto.com> - 2.1.53-1
a65f79
- New upstream version
a65f79
- Add the upstream project's targetclid systemd unit files
a65f79
- Add proposed upstream patch:
a65f79
  + Do not install systemd files in setup.py
a65f79
  + https://github.com/open-iscsi/targetcli-fb/pull/176
a65f79
a65f79
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb49-9
a65f79
- Rebuilt for Python 3.9
a65f79
a65f79
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb49-8
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a65f79
a65f79
* Fri Nov 01 2019 Neal Gompa <ngompa13@gmail.com> - 2.1.fb49-7
a65f79
- Use correct Python macros to build the package
a65f79
- Fix file list and install COPYING as license file
a65f79
- Don't compress manpages in build phase, as rpm auto-compresses manpages
a65f79
a65f79
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb49-6
a65f79
- Rebuilt for Python 3.8.0rc1 (#1748018)
a65f79
a65f79
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb49-5
a65f79
- Rebuilt for Python 3.8
a65f79
a65f79
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb49-4
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a65f79
a65f79
* Fri Mar 15 2019 Alan Pevec <apevec AT redhat.com> - 2.1.fb49-3
a65f79
- Reduce dep to python3-gobject-base rhbz#1688808
a65f79
a65f79
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb49-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a65f79
a65f79
* Wed Oct 10 2018 Andy Grover <agrover@redhat.com> - 2.1.fb49-1
a65f79
- New upstream version
a65f79
- Fix URL so spectool -g works
a65f79
- Remove patch 0001-signed-char.patch
a65f79
a65f79
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb48-6
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a65f79
a65f79
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb48-5
a65f79
- Rebuilt for Python 3.7
a65f79
a65f79
* Tue May 8 2018 Andy Grover <agrover@redhat.com> - 2.1.fb48-4
a65f79
- Add patch 0001-signed-char.patch
a65f79
a65f79
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.fb48-3
a65f79
- Escape macros in %%changelog
a65f79
a65f79
* Wed Jan 31 2018 Andy Grover <agrover@redhat.com> - 2.1.fb48-2
a65f79
- Add dep on python3-gobject
a65f79
a65f79
* Fri Jan 26 2018 Andy Grover <agrover@redhat.com> - 2.1.fb48-1
a65f79
- New upstream version
a65f79
a65f79
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb46-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a65f79
a65f79
* Wed Mar 1 2017 Andy Grover <agrover@redhat.com> - 2.1.fb46-1
a65f79
- New upstream version
a65f79
a65f79
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb43-4
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a65f79
a65f79
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb43-3
a65f79
- Rebuild for Python 3.6
a65f79
a65f79
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb43-2
a65f79
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
a65f79
a65f79
* Thu Apr 7 2016 Andy Grover <agrover@redhat.com> - 2.1.fb43-1
a65f79
- New upstream version
a65f79
a65f79
* Tue Feb 23 2016 Andy Grover <agrover@redhat.com> - 2.1.fb42-3
a65f79
- Fix #1294337 by adding dep on correct Py3 dbus pkg
a65f79
a65f79
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb42-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a65f79
a65f79
* Tue Dec 1 2015 Andy Grover <agrover@redhat.com> - 2.1.fb42-1
a65f79
- New upstream version
a65f79
a65f79
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb41-4
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a65f79
a65f79
* Mon Aug 31 2015 Andy Grover <agrover@redhat.com> - 2.1.fb41-3
a65f79
- Fix Requires to python3-six from python-six
a65f79
a65f79
* Fri Aug 28 2015 Andy Grover <agrover@redhat.com> - 2.1.fb41-2
a65f79
- Add Requires on target-restore
a65f79
a65f79
* Tue Jun 23 2015 Andy Grover <agrover@redhat.com> - 2.1.fb41-1
a65f79
- New upstream version
a65f79
- Use python-six instead of 2to3
a65f79
a65f79
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb40-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a65f79
a65f79
* Mon Apr 20 2015 Andy Grover <agrover@redhat.com> - 2.1.fb40-1
a65f79
- New upstream version
a65f79
a65f79
* Tue Jan 13 2015 Andy Grover <agrover@redhat.com> - 2.1.fb39-1
a65f79
- New upstream version
a65f79
a65f79
* Tue Dec 2 2014 Andy Grover <agrover@redhat.com> - 2.1.fb38-1
a65f79
- New upstream version
a65f79
a65f79
* Thu Nov 13 2014 Andy Grover <agrover@redhat.com> - 2.1.fb37-2
a65f79
- Convert to using Python 3 interpreter and libs
a65f79
a65f79
* Wed Sep 24 2014 Andy Grover <agrover@redhat.com> - 2.1.fb37-1
a65f79
- New upstream version
a65f79
a65f79
* Thu Aug 28 2014 Andy Grover <agrover@redhat.com> - 2.1.fb36-1
a65f79
- New upstream version
a65f79
a65f79
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb35-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a65f79
a65f79
* Fri Mar 14 2014 Andy Grover <agrover@redhat.com> - 2.1.fb35-1
a65f79
- New upstream version
a65f79
a65f79
* Mon Feb 24 2014 Andy Grover <agrover@redhat.com> - 2.1.fb34-1
a65f79
- New upstream version
a65f79
a65f79
* Wed Dec 4 2013 Andy Grover <agrover@redhat.com> - 2.1.fb33-1
a65f79
- New upstream version
a65f79
a65f79
* Fri Nov 1 2013 Andy Grover <agrover@redhat.com> - 2.1.fb31-1
a65f79
- New upstream version
a65f79
- Move service handling to python-rtslib
a65f79
- Remove old packaging bits: clean, buildroot, defattr
a65f79
a65f79
* Thu Sep 12 2013 Andy Grover <agrover@redhat.com> - 2.1.fb30-1
a65f79
- New upstream version
a65f79
a65f79
* Tue Sep 10 2013 Andy Grover <agrover@redhat.com> - 2.1.fb29-1
a65f79
- New upstream release
a65f79
- Remove no-longer-needed BuildRequires
a65f79
a65f79
* Mon Aug 5 2013 Andy Grover <agrover@redhat.com> - 2.1.fb28-1
a65f79
- New upstream release
a65f79
a65f79
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb27-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a65f79
a65f79
* Tue Jul 23 2013 Andy Grover <agrover@redhat.com> - 2.1.fb27-1
a65f79
- New upstream release
a65f79
- License now Apache 2.0
a65f79
- Remove patch modules-not-loaded.patch
a65f79
a65f79
* Tue Jun 18 2013 Andy Grover <agrover@redhat.com> - 2.1.fb26-2
a65f79
- Add patch
a65f79
  * modules-not-loaded.patch
a65f79
a65f79
* Fri Jun 7 2013 Andy Grover <agrover@redhat.com> - 2.1.fb26-1
a65f79
- New upstream release
a65f79
a65f79
* Thu May 9 2013 Andy Grover <agrover@redhat.com> - 2.1.fb25-1
a65f79
- New upstream release
a65f79
a65f79
* Thu May 2 2013 Andy Grover <agrover@redhat.com> - 2.1.fb24-1
a65f79
- New upstream release
a65f79
- Update source URL
a65f79
a65f79
* Fri Apr 12 2013 Andy Grover <agrover@redhat.com> - 2.1.fb23-1
a65f79
- New upstream release
a65f79
a65f79
* Wed Apr 10 2013 Andy Grover <agrover@redhat.com> - 2.1.fb22-1
a65f79
- New upstream release
a65f79
a65f79
* Mon Mar 4 2013 Andy Grover <agrover@redhat.com> - 2.0.fb21-1
a65f79
- New upstream release
a65f79
a65f79
* Tue Feb 26 2013 Andy Grover <agrover@redhat.com> - 2.0.fb20-1
a65f79
- New upstream release
a65f79
a65f79
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0rc1.fb19-2
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a65f79
a65f79
* Mon Jan 7 2013 Andy Grover <agrover@redhat.com> - 2.0rc1.fb19-1
a65f79
- New upstream release
a65f79
a65f79
* Thu Jan 3 2013 Andy Grover <agrover@redhat.com> - 2.0rc1.fb18-2
a65f79
- Add python-ethtool BuildRequires
a65f79
a65f79
* Thu Dec 20 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb18-1
a65f79
- New upstream release
a65f79
- Add python-ethtool requires
a65f79
- Update Source0 to use Github tar-from-tag instead of Downloads
a65f79
a65f79
* Thu Dec 13 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 2.0rc1.fb17-2
a65f79
- Scriptlets replaced with new systemd macros (#850335)
a65f79
a65f79
* Mon Nov 12 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb17-1
a65f79
- New upstream release
a65f79
a65f79
* Tue Aug 7 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb16-1
a65f79
- New upstream release
a65f79
- Update rtslib version dependency
a65f79
a65f79
* Tue Jul 31 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb15-1
a65f79
- New upstream release
a65f79
a65f79
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0rc1.fb14-3
a65f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a65f79
a65f79
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb14-2
a65f79
- Fix %%files to claim /etc/target, not claim sitelib
a65f79
a65f79
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb14-1
a65f79
- New upstream release
a65f79
a65f79
* Tue Jun 12 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb13-1
a65f79
- New upstream release
a65f79
a65f79
* Wed May 30 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb12-1
a65f79
- Update Source URL to proper tarball
a65f79
- New upstream release
a65f79
a65f79
* Mon Apr 9 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb11-1
a65f79
- New upstream release
a65f79
a65f79
* Wed Feb 29 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb10-1
a65f79
- New upstream release
a65f79
a65f79
* Tue Feb 21 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb9-1
a65f79
- New upstream release
a65f79
a65f79
* Thu Feb 16 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb8-1
a65f79
- New upstream release
a65f79
a65f79
* Wed Feb 8 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb7-1
a65f79
- New upstream release
a65f79
a65f79
* Fri Feb 3 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb6-1
a65f79
- New upstream release
a65f79
a65f79
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb5-2
a65f79
- Update After= in service file to wait for localfs and network
a65f79
- Improve description in service file
a65f79
a65f79
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb5-1
a65f79
- New upstream release
a65f79
a65f79
* Fri Jan 13 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb4-1
a65f79
- New upstream release
a65f79
a65f79
* Tue Dec 13 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb3-2
a65f79
- Fix service file to mount configfs before starting targetcli
a65f79
a65f79
* Tue Dec 13 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb3-1
a65f79
- New upstream release
a65f79
- Fixup service file for new start/stop targetcli commands
a65f79
a65f79
* Tue Dec 6 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb2-1
a65f79
- New upstream source and release
a65f79
- Remove patches:
a65f79
  * targetcli-git-version.patch
a65f79
  * 0001-Remove-ads-from-cli-welcome-msg.-Mention-help-is-ava.patch
a65f79
  * 0002-bundle-lio-utils.patch
a65f79
  * 0003-Hack.-dump-scripts-aren-t-in-PATH-anymore-so-call-th.patch
a65f79
  * 0004-ignore-errors-from-failure-to-set-device-attributes.patch
a65f79
  * 0005-fix-spec_root-path.patch
a65f79
  * 0006-add-docs.patch
a65f79
  * 0007-all-start.patch
a65f79
a65f79
* Mon Nov 21 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-4
a65f79
- Update doc patch to include iscsi tutorial
a65f79
a65f79
* Wed Nov 2 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-3
a65f79
- Add buildrequires for systemd-units
a65f79
- use _unitdir
a65f79
- remove preun, modify post
a65f79
a65f79
* Wed Nov 2 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-2
a65f79
- Add patch
a65f79
  * 0007-all-start.patch
a65f79
- Replace sysv init with systemd init
a65f79
a65f79
* Fri Oct 7 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-1
a65f79
- Initial Fedora packaging