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
|
2011-12-13 23:29:15 +00:00
|
|
|
Version: 2.0rc1.fb3
|
2011-12-14 00:36:49 +00:00
|
|
|
Release: 2%{?dist}
|
2011-12-07 18:56:58 +00:00
|
|
|
URL: https://github.com/agrover/targetcli-fb
|
|
|
|
Source: https://github.com/agrover/%{oname}/tarball/v%{version}
|
2011-11-04 22:17:44 +00:00
|
|
|
Source1: targetcli.service
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel python-rtslib python-configshell epydoc
|
|
|
|
BuildRequires: systemd-units
|
2011-12-13 23:29:15 +00:00
|
|
|
Requires: python-rtslib >= 2.1.fb2, python-configshell
|
2011-11-04 22:17:44 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
2011-12-13 23:29:15 +00:00
|
|
|
%setup -q -n agrover-%{oname}-8186d2d
|
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
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
# Initial installation
|
|
|
|
/bin/systemctl enable targetcli.service >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitelib}
|
|
|
|
%{_bindir}/targetcli
|
|
|
|
%{_unitdir}/targetcli.service
|
|
|
|
%dir %{_sysconfdir}/target/backup
|
|
|
|
%doc COPYING README
|
|
|
|
%{_mandir}/man8/targetcli.8.gz
|
|
|
|
|
|
|
|
%changelog
|
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
|