|
|
@ -2,18 +2,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: targetcli
|
|
|
|
Name: targetcli
|
|
|
|
License: ASL 2.0
|
|
|
|
License: ASL 2.0
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Summary: An administration shell for storage targets
|
|
|
|
Summary: An administration shell for storage targets
|
|
|
|
Version: 2.1.53
|
|
|
|
Version: 2.1.53
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
URL: https://github.com/open-iscsi/%{oname}
|
|
|
|
URL: https://github.com/open-iscsi/%{oname}
|
|
|
|
Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz
|
|
|
|
Source: %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz
|
|
|
|
# Proposed upstream
|
|
|
|
Patch0: 0001-setup.py-add-the-socket-and-service-files-to-the-dat.patch
|
|
|
|
## From: https://github.com/open-iscsi/targetcli-fb/pull/176
|
|
|
|
Patch1: 0002-fileio-backstore-fix-sparse-file-creation.patch
|
|
|
|
Patch1: Do-not-install-systemd-files-in-setup.py.patch
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel, python3-setuptools, systemd-rpm-macros
|
|
|
|
BuildRequires: python3-devel, python3-setuptools
|
|
|
|
Requires: python3-rtslib, target-restore, python3-configshell, python3-six, python3-dbus
|
|
|
|
Requires: python3-rtslib, target-restore, python3-configshell, python3-six, python3-dbus, python3-gobject-base
|
|
|
|
Requires: python3-gobject-base
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
@ -24,93 +23,60 @@ users will also need to install and use fcoe-utils.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{oname}-%{version}
|
|
|
|
%setup -q -n %{oname}-%{version}
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%{__python3} setup.py build
|
|
|
|
|
|
|
|
gzip --stdout targetcli.8 > targetcli.8.gz
|
|
|
|
|
|
|
|
gzip --stdout targetclid.8 > targetclid.8.gz
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/target/backup
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/target/backup
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/target/pr
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man8/
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man8/
|
|
|
|
install -m 644 targetcli*.8 %{buildroot}%{_mandir}/man8/
|
|
|
|
install -m 644 targetcli.8.gz %{buildroot}%{_mandir}/man8/
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}/
|
|
|
|
install -m 644 targetclid.8.gz %{buildroot}%{_mandir}/man8/
|
|
|
|
install -m 644 systemd/* %{buildroot}%{_unitdir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc README.md
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
%{python3_sitelib}/targetcli*
|
|
|
|
|
|
|
|
%{_bindir}/targetcli
|
|
|
|
%{_bindir}/targetcli
|
|
|
|
%{_bindir}/targetclid
|
|
|
|
%{_bindir}/targetclid
|
|
|
|
%{_mandir}/man8/targetcli*.8*
|
|
|
|
|
|
|
|
%{_unitdir}/*
|
|
|
|
|
|
|
|
%dir %{_sysconfdir}/target
|
|
|
|
%dir %{_sysconfdir}/target
|
|
|
|
%dir %{_sysconfdir}/target/backup
|
|
|
|
%dir %{_sysconfdir}/target/backup
|
|
|
|
|
|
|
|
%dir %{_sysconfdir}/target/pr
|
|
|
|
|
|
|
|
%doc COPYING README.md
|
|
|
|
|
|
|
|
%{_mandir}/man8/targetcli.8.gz
|
|
|
|
|
|
|
|
%{_mandir}/man8/targetclid.8.gz
|
|
|
|
|
|
|
|
%{_usr}/lib/systemd/system/targetclid.service
|
|
|
|
|
|
|
|
%{_usr}/lib/systemd/system/targetclid.socket
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.53-7
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.1.53-2
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 24 2021 Maurizio Lombardi <mlombard@redhat.com> - 2.1.53-5
|
|
|
|
* Tue Dec 01 2020 Maurizio Lombardi <mlombard@redhat.com> - 2.1.53-2
|
|
|
|
- Add the gating.yaml file
|
|
|
|
- Fix sparse file creation
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.53-4
|
|
|
|
* Thu Jun 25 2020 Maurizio Lombardi <mlombard@redhat.com> - 2.1.53-1
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Update to new upstream version
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.53-3
|
|
|
|
* Mon May 11 2020 Maurizio Lombardi <mlombard@redhat.com> - 2.1.52-1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Update to new upstream version
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.53-2
|
|
|
|
* Fri Dec 06 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.51-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
- Create the target/pr directory when installing the package
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 25 2020 Matt Coleman <matt@datto.com> - 2.1.53-1
|
|
|
|
* Mon Nov 18 2019 Maurizio Lombardi <mlombard@redhat.com> - 2.1.51-1
|
|
|
|
- New upstream version
|
|
|
|
- Update to new upstream release
|
|
|
|
- Add the upstream project's targetclid systemd unit files
|
|
|
|
|
|
|
|
- Add proposed upstream patch:
|
|
|
|
|
|
|
|
+ Do not install systemd files in setup.py
|
|
|
|
|
|
|
|
+ https://github.com/open-iscsi/targetcli-fb/pull/176
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb49-9
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb49-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 01 2019 Neal Gompa <ngompa13@gmail.com> - 2.1.fb49-7
|
|
|
|
|
|
|
|
- Use correct Python macros to build the package
|
|
|
|
|
|
|
|
- Fix file list and install COPYING as license file
|
|
|
|
|
|
|
|
- Don't compress manpages in build phase, as rpm auto-compresses manpages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb49-6
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb49-5
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb49-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 15 2019 Alan Pevec <apevec AT redhat.com> - 2.1.fb49-3
|
|
|
|
|
|
|
|
- Reduce dep to python3-gobject-base rhbz#1688808
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb49-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 10 2018 Andy Grover <agrover@redhat.com> - 2.1.fb49-1
|
|
|
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
- Fix URL so spectool -g works
|
|
|
|
|
|
|
|
- Remove patch 0001-signed-char.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.fb48-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.fb48-5
|
|
|
|
* Thu Sep 06 2018 Maurizio Lombardi <mlombard@redhat.com> - 2.1.fb49-1
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
- Update to new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 8 2018 Andy Grover <agrover@redhat.com> - 2.1.fb48-4
|
|
|
|
* Mon Aug 06 2018 Maurizio Lombardi <mlombard@redhat.com> - 2.1.fb48-4
|
|
|
|
- Add patch 0001-signed-char.patch
|
|
|
|
- Fix code incompatible with python3
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.fb48-3
|
|
|
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.fb48-3
|
|
|
|
- Escape macros in %%changelog
|
|
|
|
- Escape macros in %%changelog
|
|
|
|