2011-12-07 18:56:58 +00:00
|
|
|
%global oname targetcli-fb
|
|
|
|
|
2011-11-04 22:17:44 +00:00
|
|
|
Name: targetcli
|
|
|
|
License: AGPLv3
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Summary: An administration shell for storage targets
|
2013-05-02 22:58:33 +00:00
|
|
|
Version: 2.1.fb24
|
2013-02-26 21:45:40 +00:00
|
|
|
Release: 1%{?dist}
|
2013-05-02 22:58:33 +00:00
|
|
|
URL: https://fedorahosted.org/targetcli-fb/
|
|
|
|
Source: https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz
|
2011-11-04 22:17:44 +00:00
|
|
|
Source1: targetcli.service
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2013-05-02 22:58:33 +00:00
|
|
|
BuildRequires: python-devel python-configshell python-ethtool epydoc
|
|
|
|
BuildRequires: python-rtslib >= 2.1.fb33
|
2011-11-04 22:17:44 +00:00
|
|
|
BuildRequires: systemd-units
|
2013-05-02 22:58:33 +00:00
|
|
|
Requires: python-rtslib >= 2.1.fb33, python-configshell, python-ethtool
|
2012-12-13 18:53:12 +00:00
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
2011-11-04 22:17:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
An administration shell for configuring iSCSI, FCoE, and other
|
|
|
|
SCSI targets, using the TCM/LIO kernel target subsystem. FCoE
|
|
|
|
users will also need to install and use fcoe-utils.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-05-31 03:40:09 +00:00
|
|
|
%setup -q -n %{oname}-%{version}
|
2011-11-04 22:17:44 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
gzip --stdout targetcli.8 > targetcli.8.gz
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/target/backup
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man8/
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/targetcli.service
|
|
|
|
install -m 644 targetcli.8.gz %{buildroot}%{_mandir}/man8/
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
2012-12-13 18:53:12 +00:00
|
|
|
%systemd_post targetcli.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun targetcli.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart targetcli.service
|
2011-11-04 22:17:44 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-07-03 21:59:59 +00:00
|
|
|
%{python_sitelib}/*
|
2011-11-04 22:17:44 +00:00
|
|
|
%{_bindir}/targetcli
|
|
|
|
%{_unitdir}/targetcli.service
|
2012-07-03 21:59:59 +00:00
|
|
|
%dir %{_sysconfdir}/target
|
2011-11-04 22:17:44 +00:00
|
|
|
%dir %{_sysconfdir}/target/backup
|
2013-05-02 22:58:33 +00:00
|
|
|
%doc COPYING README.md
|
2011-11-04 22:17:44 +00:00
|
|
|
%{_mandir}/man8/targetcli.8.gz
|
|
|
|
|
|
|
|
%changelog
|
2013-05-02 22:58:33 +00:00
|
|
|
* Thu May 2 2013 Andy Grover <agrover@redhat.com> - 2.1.fb24-1
|
|
|
|
- New upstream release
|
|
|
|
- Update source URL
|
|
|
|
|
2013-04-12 19:26:10 +00:00
|
|
|
* Fri Apr 12 2013 Andy Grover <agrover@redhat.com> - 2.1.fb23-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-04-10 18:57:33 +00:00
|
|
|
* Wed Apr 10 2013 Andy Grover <agrover@redhat.com> - 2.1.fb22-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-03-04 23:08:07 +00:00
|
|
|
* Mon Mar 4 2013 Andy Grover <agrover@redhat.com> - 2.0.fb21-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-02-26 21:45:40 +00:00
|
|
|
* Tue Feb 26 2013 Andy Grover <agrover@redhat.com> - 2.0.fb20-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-02-15 01:18:35 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0rc1.fb19-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-07 23:37:02 +00:00
|
|
|
* Mon Jan 7 2013 Andy Grover <agrover@redhat.com> - 2.0rc1.fb19-1
|
|
|
|
- New upstream release
|
|
|
|
|
2013-01-03 22:05:58 +00:00
|
|
|
* Thu Jan 3 2013 Andy Grover <agrover@redhat.com> - 2.0rc1.fb18-2
|
|
|
|
- Add python-ethtool BuildRequires
|
|
|
|
|
|
|
|
* Thu Dec 20 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb18-1
|
2012-12-20 23:05:24 +00:00
|
|
|
- New upstream release
|
|
|
|
- Add python-ethtool requires
|
|
|
|
- Update Source0 to use Github tar-from-tag instead of Downloads
|
|
|
|
|
2012-12-13 18:53:12 +00:00
|
|
|
* Thu Dec 13 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 2.0rc1.fb17-2
|
|
|
|
- Scriptlets replaced with new systemd macros (#850335)
|
|
|
|
|
2012-11-12 22:29:58 +00:00
|
|
|
* Mon Nov 12 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb17-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-08-07 19:12:27 +00:00
|
|
|
* Tue Aug 7 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb16-1
|
|
|
|
- New upstream release
|
|
|
|
- Update rtslib version dependency
|
|
|
|
|
2012-07-31 18:12:00 +00:00
|
|
|
* Tue Jul 31 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb15-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-07-21 22:48:46 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0rc1.fb14-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-03 21:59:59 +00:00
|
|
|
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb14-2
|
|
|
|
- Fix %files to claim /etc/target, not claim sitelib
|
|
|
|
|
2012-06-28 20:51:54 +00:00
|
|
|
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb14-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-06-12 23:27:38 +00:00
|
|
|
* Tue Jun 12 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb13-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-05-31 03:40:09 +00:00
|
|
|
* Wed May 30 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb12-1
|
2012-06-12 23:27:38 +00:00
|
|
|
- Update Source URL to proper tarball
|
2012-05-31 03:40:09 +00:00
|
|
|
- New upstream release
|
|
|
|
|
2012-04-09 18:43:52 +00:00
|
|
|
* Mon Apr 9 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb11-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-03-01 00:55:35 +00:00
|
|
|
* Wed Feb 29 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb10-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-02-21 20:34:36 +00:00
|
|
|
* Tue Feb 21 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb9-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-02-17 00:32:53 +00:00
|
|
|
* Thu Feb 16 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb8-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-02-08 18:15:41 +00:00
|
|
|
* Wed Feb 8 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb7-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-02-03 21:34:35 +00:00
|
|
|
* Fri Feb 3 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-27 21:08:17 +00:00
|
|
|
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb5-2
|
|
|
|
- Update After= in service file to wait for localfs and network
|
|
|
|
- Improve description in service file
|
|
|
|
|
2012-01-25 06:26:00 +00:00
|
|
|
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb5-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-13 21:40:44 +00:00
|
|
|
* Fri Jan 13 2012 Andy Grover <agrover@redhat.com> - 2.0rc1.fb4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2011-12-14 00:36:49 +00:00
|
|
|
* Tue Dec 13 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb3-2
|
|
|
|
- Fix service file to mount configfs before starting targetcli
|
|
|
|
|
2011-12-13 23:29:15 +00:00
|
|
|
* Tue Dec 13 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb3-1
|
|
|
|
- New upstream release
|
|
|
|
- Fixup service file for new start/stop targetcli commands
|
|
|
|
|
2011-12-07 18:56:58 +00:00
|
|
|
* Tue Dec 6 2011 Andy Grover <agrover@redhat.com> - 2.0rc1.fb2-1
|
|
|
|
- New upstream source and release
|
|
|
|
- Remove patches:
|
|
|
|
* targetcli-git-version.patch
|
|
|
|
* 0001-Remove-ads-from-cli-welcome-msg.-Mention-help-is-ava.patch
|
|
|
|
* 0002-bundle-lio-utils.patch
|
|
|
|
* 0003-Hack.-dump-scripts-aren-t-in-PATH-anymore-so-call-th.patch
|
|
|
|
* 0004-ignore-errors-from-failure-to-set-device-attributes.patch
|
|
|
|
* 0005-fix-spec_root-path.patch
|
|
|
|
* 0006-add-docs.patch
|
|
|
|
* 0007-all-start.patch
|
|
|
|
|
2011-11-21 23:56:49 +00:00
|
|
|
* Mon Nov 21 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-4
|
|
|
|
- Update doc patch to include iscsi tutorial
|
|
|
|
|
2011-11-04 22:17:44 +00:00
|
|
|
* Wed Nov 2 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-3
|
|
|
|
- Add buildrequires for systemd-units
|
|
|
|
- use _unitdir
|
|
|
|
- remove preun, modify post
|
|
|
|
|
|
|
|
* Wed Nov 2 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-2
|
|
|
|
- Add patch
|
|
|
|
* 0007-all-start.patch
|
|
|
|
- Replace sysv init with systemd init
|
|
|
|
|
|
|
|
* Fri Oct 7 2011 Andy Grover <agrover@redhat.com> - 1.99.2.gitb03ec79-1
|
|
|
|
- Initial Fedora packaging
|