2013-04-16 21:47:38 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
2011-12-07 01:30:27 +00:00
|
|
|
%global oname rtslib-fb
|
2011-11-16 20:15:36 +00:00
|
|
|
|
|
|
|
Name: python-rtslib
|
2013-07-24 01:18:24 +00:00
|
|
|
License: ASL 2.0
|
2011-11-16 20:15:36 +00:00
|
|
|
Group: System Environment/Libraries
|
2013-02-26 21:38:18 +00:00
|
|
|
Summary: API for Linux kernel LIO SCSI target
|
2013-09-23 20:47:50 +00:00
|
|
|
Version: 2.1.fb40
|
2013-09-10 17:23:34 +00:00
|
|
|
Release: 1%{?dist}
|
2013-05-02 22:38:24 +00:00
|
|
|
URL: https://fedorahosted.org/targetcli-fb/
|
|
|
|
Source: https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz
|
2011-11-16 20:15:36 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2012-12-20 22:48:05 +00:00
|
|
|
BuildRequires: python-devel epydoc
|
|
|
|
Requires: python-kmod
|
2011-11-16 20:15:36 +00:00
|
|
|
|
2013-04-16 21:47:38 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel python-tools
|
|
|
|
%endif
|
|
|
|
|
2012-03-19 21:31:25 +00:00
|
|
|
%package doc
|
2012-08-07 19:05:58 +00:00
|
|
|
Summary: Documentation for python-rtslib
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2012-03-19 21:31:25 +00:00
|
|
|
|
|
|
|
|
2011-11-16 20:15:36 +00:00
|
|
|
%description
|
2011-12-07 01:30:27 +00:00
|
|
|
API for generic Linux SCSI kernel target.
|
2011-11-16 20:15:36 +00:00
|
|
|
|
2012-03-19 21:31:25 +00:00
|
|
|
%description doc
|
|
|
|
API documentation for rtslib, to configure the generic Linux SCSI
|
2013-02-26 21:38:18 +00:00
|
|
|
multiprotocol kernel target.
|
2012-03-19 21:31:25 +00:00
|
|
|
|
2013-04-16 21:47:38 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-rtslib
|
|
|
|
Summary: API for Linux kernel LIO SCSI target
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description -n python3-rtslib
|
|
|
|
API for generic Linux SCSI kernel target.
|
|
|
|
%endif
|
|
|
|
|
2011-11-16 20:15:36 +00:00
|
|
|
%prep
|
2012-05-31 03:30:44 +00:00
|
|
|
%setup -q -n %{oname}-%{version}
|
2011-11-16 20:15:36 +00:00
|
|
|
|
2013-04-16 21:47:38 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif
|
|
|
|
|
2011-11-16 20:15:36 +00:00
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
2012-03-19 21:31:25 +00:00
|
|
|
mkdir -p doc/html
|
|
|
|
epydoc --no-sourcecode --html -n rtslib -o doc/html rtslib/*.py
|
2011-11-16 20:15:36 +00:00
|
|
|
|
2013-04-16 21:47:38 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
2to3 --write --nobackups .
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2011-11-16 20:15:36 +00:00
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
2013-04-16 21:47:38 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
popd
|
|
|
|
%endif
|
2011-11-16 20:15:36 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-08-07 19:05:58 +00:00
|
|
|
%{python_sitelib}/*
|
2013-05-02 22:38:24 +00:00
|
|
|
%doc COPYING README.md
|
2011-11-16 20:15:36 +00:00
|
|
|
|
2013-04-16 21:47:38 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-rtslib
|
|
|
|
%{python3_sitelib}/*
|
2013-05-02 22:38:24 +00:00
|
|
|
%doc COPYING README.md
|
2013-04-16 21:47:38 +00:00
|
|
|
%endif
|
|
|
|
|
2012-03-19 21:31:25 +00:00
|
|
|
%files doc
|
|
|
|
%doc doc/html
|
|
|
|
|
2011-11-16 20:15:36 +00:00
|
|
|
%changelog
|
2013-09-23 20:47:50 +00:00
|
|
|
* Mon Sep 23 2013 Andy Grover <agrover@redhat.com> - 2.1.fb40-1
|
|
|
|
- New upstream version, fixes restore of mappedluns
|
|
|
|
|
2013-09-11 18:14:55 +00:00
|
|
|
* Wed Sep 11 2013 Andy Grover <agrover@redhat.com> - 2.1.fb39-1
|
|
|
|
- New upstream version, fixes fcoe
|
|
|
|
|
2013-09-10 17:23:34 +00:00
|
|
|
* Tue Sep 10 2013 Andy Grover <agrover@redhat.com> - 2.1.fb38-1
|
|
|
|
- New upstream version
|
|
|
|
|
2013-08-04 09:40:12 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb37-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-24 01:18:24 +00:00
|
|
|
* Tue Jul 23 2013 Andy Grover <agrover@redhat.com> - 2.1.fb37-1
|
|
|
|
- New upstream version
|
|
|
|
- License now Apache 2.0
|
|
|
|
|
2013-07-02 18:03:01 +00:00
|
|
|
* Tue Jul 2 2013 Andy Grover <agrover@redhat.com> - 2.1.fb36-1
|
|
|
|
- New upstream version
|
|
|
|
- Remove fix-tabs.patch
|
|
|
|
|
2013-06-07 22:15:30 +00:00
|
|
|
* Fri Jun 7 2013 Andy Grover <agrover@redhat.com> - 2.1.fb35-1
|
|
|
|
- New upstream version
|
2013-06-07 22:36:58 +00:00
|
|
|
- add fix-tabs.patch
|
2013-06-07 22:15:30 +00:00
|
|
|
|
2013-05-09 20:23:25 +00:00
|
|
|
* Thu May 9 2013 Andy Grover <agrover@redhat.com> - 2.1.fb34-1
|
|
|
|
- New upstream version
|
|
|
|
|
2013-05-02 22:38:24 +00:00
|
|
|
* Thu May 2 2013 Andy Grover <agrover@redhat.com> - 2.1.fb33-1
|
|
|
|
- New upstream version
|
|
|
|
- Update source file location
|
|
|
|
|
2013-04-16 21:47:38 +00:00
|
|
|
* Tue Apr 16 2013 Andy Grover <agrover@redhat.com> - 2.1.fb32-2
|
|
|
|
- Add python3 subpackage
|
|
|
|
|
2013-04-10 00:45:59 +00:00
|
|
|
* Tue Apr 9 2013 Andy Grover <agrover@redhat.com> - 2.1.fb32-1
|
|
|
|
- New upstream version
|
|
|
|
|
2013-02-26 21:38:18 +00:00
|
|
|
* Tue Feb 26 2013 Andy Grover <agrover@redhat.com> - 2.1.fb30-1
|
|
|
|
- New upstream version
|
|
|
|
- Update description and summary
|
|
|
|
- Remove patch0, upstream doesn't include usb gadget any more
|
|
|
|
|
2013-02-14 20:20:15 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb28-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-07 23:40:36 +00:00
|
|
|
* Mon Jan 7 2013 Andy Grover <agrover@redhat.com> - 2.1.fb28-1
|
|
|
|
- New upstream version
|
|
|
|
|
2013-01-03 00:12:49 +00:00
|
|
|
* Wed Jan 2 2013 Andy Grover <agrover@redhat.com> - 2.1.fb27-1
|
|
|
|
- Specfiles removed upstream, remove handling
|
|
|
|
- Refresh no-usb.patch
|
|
|
|
|
2012-12-20 22:48:05 +00:00
|
|
|
* Thu Dec 20 2012 Andy Grover <agrover@redhat.com> - 2.1.fb26-1
|
|
|
|
- New upstream release
|
|
|
|
- Remove kernel dependency
|
|
|
|
- Remove python-ethtool and python-ipaddr dependencies
|
|
|
|
|
2012-11-14 04:34:50 +00:00
|
|
|
* Tue Nov 13 2012 Andy Grover <agrover@redhat.com> - 2.1.fb24-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-10-30 14:57:37 +00:00
|
|
|
* Tue Oct 30 2012 Andy Grover <agrover@redhat.com> - 2.1.fb23-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-09-06 22:31:33 +00:00
|
|
|
* Thu Sep 6 2012 Andy Grover <agrover@redhat.com> - 2.1.fb22-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-08-08 17:10:26 +00:00
|
|
|
* Wed Aug 8 2012 Andy Grover <agrover@redhat.com> - 2.1.fb21-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-08-07 19:50:52 +00:00
|
|
|
* Tue Aug 7 2012 Andy Grover <agrover@redhat.com> - 2.1.fb20-2
|
|
|
|
- Add patch no-usb.patch
|
|
|
|
|
2012-08-07 19:05:58 +00:00
|
|
|
* Tue Aug 7 2012 Andy Grover <agrover@redhat.com> - 2.1.fb20-1
|
|
|
|
- New upstream release. Add kernel version dependency.
|
|
|
|
- Don't claim python_sitelib
|
|
|
|
|
2012-08-02 18:08:36 +00:00
|
|
|
* Thu Aug 2 2012 Andy Grover <agrover@redhat.com> - 2.1.fb19-1
|
|
|
|
- New upstream release. Add kmod dependency.
|
|
|
|
|
2012-07-31 18:08:01 +00:00
|
|
|
* Tue Jul 31 2012 Andy Grover <agrover@redhat.com> - 2.1.fb18-1
|
|
|
|
- New upstream release. Remove configobj dependency
|
|
|
|
|
2012-07-21 08:46:00 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.fb17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-28 20:40:35 +00:00
|
|
|
* Thu Jun 28 2012 Andy Grover <agrover@redhat.com> - 2.1.fb17-1
|
|
|
|
- New upstream release
|
|
|
|
- Remove patch retry-target-creation.patch, upstream has alternate
|
|
|
|
fix.
|
|
|
|
|
2012-06-12 23:22:18 +00:00
|
|
|
* Tue Jun 12 2012 Andy Grover <agrover@redhat.com> - 2.1.fb15-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-05-31 03:30:44 +00:00
|
|
|
* Wed May 30 2012 Andy Grover <agrover@redhat.com> - 2.1.fb14-1
|
|
|
|
- Update Source URL to proper tarball
|
|
|
|
- Add patch retry-target-creation.patch
|
|
|
|
- New upstream release
|
|
|
|
|
2012-04-09 18:38:31 +00:00
|
|
|
* Mon Apr 9 2012 Andy Grover <agrover@redhat.com> - 2.1.fb13-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-03-19 21:31:25 +00:00
|
|
|
* Wed Feb 29 2012 Andy Grover <agrover@redhat.com> - 2.1.fb12-2
|
|
|
|
- Add -doc package of epydoc-generated html docs
|
|
|
|
|
2012-03-01 01:00:20 +00:00
|
|
|
* Wed Feb 29 2012 Andy Grover <agrover@redhat.com> - 2.1.fb12-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-02-21 21:14:08 +00:00
|
|
|
* Tue Feb 21 2012 Andy Grover <agrover@redhat.com> - 2.1.fb11-1
|
2012-02-21 20:37:28 +00:00
|
|
|
- New upstream release
|
|
|
|
|
2012-02-08 18:11:48 +00:00
|
|
|
* Fri Feb 8 2012 Andy Grover <agrover@redhat.com> - 2.1.fb9-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-02-03 21:31:01 +00:00
|
|
|
* Fri Feb 3 2012 Andy Grover <agrover@redhat.com> - 2.1.fb8-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-25 07:44:57 +00:00
|
|
|
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.1.fb7-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-25 06:28:32 +00:00
|
|
|
* Tue Jan 24 2012 Andy Grover <agrover@redhat.com> - 2.1.fb6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-14 01:08:05 +00:00
|
|
|
* Fri Jan 13 2012 Andy Grover <agrover@redhat.com> - 2.1.fb5-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-13 21:20:36 +00:00
|
|
|
* Fri Jan 13 2012 Andy Grover <agrover@redhat.com> - 2.1.fb4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2012-01-11 06:47:14 +00:00
|
|
|
* Tue Jan 10 2012 Andy Grover <agrover@redhat.com> - 2.1.fb3-1
|
|
|
|
- New upstream release
|
|
|
|
|
2011-12-13 22:56:19 +00:00
|
|
|
* Tue Dec 6 2011 Andy Grover <agrover@redhat.com> - 2.1.fb2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2011-12-07 01:30:27 +00:00
|
|
|
* Tue Dec 6 2011 Andy Grover <agrover@redhat.com> - 2.1.fb1-1
|
|
|
|
- Change upstream URL
|
|
|
|
- New upstream release
|
|
|
|
- Remove upstreamed patches:
|
|
|
|
* python-rtslib-git-version.patch
|
|
|
|
* python-rtslib-use-ethtool.patch
|
|
|
|
* python-rtslib-update-specpath.patch
|
|
|
|
|
2011-11-16 20:15:36 +00:00
|
|
|
* Mon Nov 14 2011 Andy Grover <agrover@redhat.com> - 1.99.1.git644eece-8
|
|
|
|
- Change archive instructions to use gzip -n
|
|
|
|
- Fix issues raised in Fedora package review (#744349)
|
|
|
|
|
|
|
|
* Thu Oct 6 2011 Andy Grover <agrover@redhat.com> - 1.99.1.git644eece-7
|
|
|
|
- Remove patch
|
|
|
|
* python-rtslib-del-unused-specs.patch
|
|
|
|
|
|
|
|
* Wed Aug 17 2011 Andy Grover <agrover@redhat.com> - 1.99-6
|
|
|
|
- Update based on review comments
|
|
|
|
- Fully document steps to build archive
|
|
|
|
- Remove commented-out extraneous text
|
|
|
|
- Remove a repeat in Requires line
|
|
|
|
- Update git-version.patch to have proper sha1
|
|
|
|
- Change location of fabric spec files to /var/lib/target
|
|
|
|
- Remove unused specs
|
|
|
|
|
|
|
|
* Tue May 10 2011 Andy Grover <agrover@redhat.com> - 1.99-1
|
|
|
|
- Initial packaging
|