From 2e2fe306f8ed4ec1900894035ff375087d32944f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 21 Jan 2020 10:28:15 -0500 Subject: [PATCH] import targetcli-2.1.51-1.el8 --- .gitignore | 2 +- .targetcli.metadata | 2 +- ...-socket-and-service-files-to-the-dat.patch | 26 +++++++++++++++++++ SPECS/targetcli.spec | 16 ++++++++++-- 4 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 SOURCES/0001-setup.py-add-the-socket-and-service-files-to-the-dat.patch diff --git a/.gitignore b/.gitignore index ba01e7f..4f66cec 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/targetcli-fb-2.1.fb49.tar.gz +SOURCES/targetcli-fb-2.1.51.tar.gz diff --git a/.targetcli.metadata b/.targetcli.metadata index 52a4911..2a071a5 100644 --- a/.targetcli.metadata +++ b/.targetcli.metadata @@ -1 +1 @@ -f55bb874f9644991a042ee83f25c14d44a86d2db SOURCES/targetcli-fb-2.1.fb49.tar.gz +3e6f8caa6fc7a2591a97fd8b5c37554c71c1dd52 SOURCES/targetcli-fb-2.1.51.tar.gz diff --git a/SOURCES/0001-setup.py-add-the-socket-and-service-files-to-the-dat.patch b/SOURCES/0001-setup.py-add-the-socket-and-service-files-to-the-dat.patch new file mode 100644 index 0000000..5087bdb --- /dev/null +++ b/SOURCES/0001-setup.py-add-the-socket-and-service-files-to-the-dat.patch @@ -0,0 +1,26 @@ +From e1fece46f5f47ef0636132216b9d293e86153193 Mon Sep 17 00:00:00 2001 +From: Maurizio Lombardi +Date: Thu, 21 Nov 2019 09:58:55 +0100 +Subject: [PATCH] setup.py: add the socket and service files to the data_files + section + +Signed-off-by: Maurizio Lombardi +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/setup.py b/setup.py +index 8dff55e..13152f9 100755 +--- a/setup.py ++++ b/setup.py +@@ -34,6 +34,7 @@ setup( + 'scripts/targetcli', + 'daemon/targetclid' + ], ++ data_files = [('/usr/lib/systemd/system', ['systemd/targetclid.socket', 'systemd/targetclid.service'])], + classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 3", +-- +2.21.0 + diff --git a/SPECS/targetcli.spec b/SPECS/targetcli.spec index a2757c0..0cc1197 100644 --- a/SPECS/targetcli.spec +++ b/SPECS/targetcli.spec @@ -4,13 +4,14 @@ Name: targetcli License: ASL 2.0 Group: System Environment/Libraries Summary: An administration shell for storage targets -Version: 2.1.fb49 +Version: 2.1.51 Release: 1%{?dist} URL: https://fedorahosted.org/targetcli-fb/ Source: https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz +Patch0: 0001-setup.py-add-the-socket-and-service-files-to-the-dat.patch BuildArch: noarch BuildRequires: python3-devel, python3-setuptools -Requires: python3-rtslib, target-restore, python3-configshell, python3-six, python3-dbus, python3-gobject +Requires: python3-rtslib, target-restore, python3-configshell, python3-six, python3-dbus, python3-gobject-base %description @@ -21,26 +22,37 @@ users will also need to install and use fcoe-utils. %prep %setup -q -n %{oname}-%{version} +%patch0 -p1 %build %{__python3} setup.py build gzip --stdout targetcli.8 > targetcli.8.gz +gzip --stdout targetclid.8 > targetclid.8.gz %install +mkdir -p %{buildroot}%{_unitdir} %{__python3} setup.py install --skip-build --root %{buildroot} mkdir -p %{buildroot}%{_sysconfdir}/target/backup mkdir -p %{buildroot}%{_mandir}/man8/ install -m 644 targetcli.8.gz %{buildroot}%{_mandir}/man8/ +install -m 644 targetclid.8.gz %{buildroot}%{_mandir}/man8/ %files %{python3_sitelib}/* %{_bindir}/targetcli +%{_bindir}/targetclid %dir %{_sysconfdir}/target %dir %{_sysconfdir}/target/backup %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 +* Mon Nov 18 2019 Maurizio Lombardi - 2.1.51-1 +- Update to new upstream release + * Thu Sep 06 2018 Maurizio Lombardi - 2.1.fb49-1 - Update to new upstream release