Accepting request 564462 from Base:System
OBS-URL: https://build.opensuse.org/request/show/564462 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/targetcli-fb?expand=0&rev=5
This commit is contained in:
commit
d4fb9a3ecf
4
_service
4
_service
@ -4,8 +4,8 @@
|
|||||||
<param name="url">https://github.com/open-iscsi/targetcli-fb.git</param>
|
<param name="url">https://github.com/open-iscsi/targetcli-fb.git</param>
|
||||||
<param name="subdir"></param>
|
<param name="subdir"></param>
|
||||||
<param name="filename">targetcli-fb</param>
|
<param name="filename">targetcli-fb</param>
|
||||||
<param name="versionformat">2.1.fb46</param>
|
<param name="versionformat">2.1.fb47</param>
|
||||||
<param name="revision">v2.1.fb46</param>
|
<param name="revision">v2.1.fb47</param>
|
||||||
<param name="changesgenerate">enable</param>
|
<param name="changesgenerate">enable</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="recompress" mode="disabled">
|
<service name="recompress" mode="disabled">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<servicedata>
|
<servicedata>
|
||||||
<service name="tar_scm">
|
<service name="tar_scm">
|
||||||
<param name="url">https://github.com/open-iscsi/targetcli-fb.git</param>
|
<param name="url">https://github.com/open-iscsi/targetcli-fb.git</param>
|
||||||
<param name="changesrevision">f632f38264edc5a620ed5cd0f506d8dc205efce3</param></service></servicedata>
|
<param name="changesrevision">ee32a2493eaccd9352cc596b9e3387960cca48fc</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0a88c06e7a00e716fdcb980f9c6ccad159b98b6655b267a7075a57bd01c861e4
|
|
||||||
size 33059
|
|
3
targetcli-fb-2.1.fb47.tar.xz
Normal file
3
targetcli-fb-2.1.fb47.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:006c501dfcf464bcde89a548e46c56ee8d897ba560c8659098a791911531737e
|
||||||
|
size 28956
|
@ -1,3 +1,38 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 15 02:32:27 UTC 2018 - lduncan@suse.com
|
||||||
|
|
||||||
|
- Removed duplicate BuildRequires line, and add Conflicts for
|
||||||
|
sub-package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 4 22:14:36 UTC 2018 - lduncan@suse.com
|
||||||
|
|
||||||
|
- Added dependency on dbus package to SPEC file (bsc#1073913)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 4 21:54:00 UTC 2018 - lduncan@suse.com
|
||||||
|
|
||||||
|
- Converted RPM SPEC file to singlepsec format (bsc#1045332),
|
||||||
|
updating SPEC file only. This breaks this package into two
|
||||||
|
packages. The new base package is called targetcli-fb-common,
|
||||||
|
and does not depend on the python version. The other package
|
||||||
|
is python-version dependent, and is called either
|
||||||
|
python2-targetcli-fb or python3-targetcli-fb, dpending on
|
||||||
|
which version of Python you wish to use.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 15 22:03:58 UTC 2017 - lduncan@suse.com
|
||||||
|
|
||||||
|
- Ran "spec-cleaner" over the SPEC file, to clean it up, before
|
||||||
|
support for Python3 is added.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 15 21:43:06 UTC 2017 - lduncan@suse.com
|
||||||
|
|
||||||
|
- Moved targetcli-fb-2.1.fb47.tar.gz to targetcli-fb-2.1.fb47.tar.xz,
|
||||||
|
after appropriate decompression/compression, to match SPEC and
|
||||||
|
_service file. Updated _servicedata to match.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 17 09:34:08 UTC 2017 - lszhu@suse.com
|
Thu Aug 17 09:34:08 UTC 2017 - lszhu@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package targetcli-fb
|
# spec file for package targetcli-fb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,30 +18,40 @@
|
|||||||
|
|
||||||
%define oname targetcli-fb
|
%define oname targetcli-fb
|
||||||
%define realver 2.1.fb47
|
%define realver 2.1.fb47
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: %{oname}
|
Name: %{oname}
|
||||||
Version: 2.1.47
|
Version: 2.1.47
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://github.com/agrover/%{oname}
|
|
||||||
Summary: A command shell for managing the Linux LIO kernel target
|
Summary: A command shell for managing the Linux LIO kernel target
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Source: %{oname}-%{realver}.tar.gz
|
Url: http://github.com/agrover/%{oname}
|
||||||
|
Source: %{oname}-%{realver}.tar.xz
|
||||||
Source1: %{oname}.service
|
Source1: %{oname}.service
|
||||||
Conflicts: targetcli
|
BuildRequires: %{python_module configshell-fb}
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pyparsing}
|
||||||
|
BuildRequires: %{python_module rtslib-fb}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: systemd
|
||||||
Requires: python-configshell-fb
|
Requires: python-configshell-fb
|
||||||
|
Requires: python-dbus-python
|
||||||
Requires: python-rtslib-fb
|
Requires: python-rtslib-fb
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
|
Requires: targetcli-fb-common
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%ifpython3
|
||||||
|
Provides: targetcli-fb = %{version}
|
||||||
|
%endif
|
||||||
|
Obsoletes: targetcli-fb < %{version}
|
||||||
|
Conflicts: targetcli
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-configshell-fb
|
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-pyparsing
|
|
||||||
BuildRequires: python-rtslib-fb
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: systemd
|
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
targetcli-fb is a command-line interface for configuring the LIO generic
|
targetcli-fb is a command-line interface for configuring the LIO generic
|
||||||
@ -53,43 +63,66 @@ to use either all "fb" versions of the targetcli components -- targetcli,
|
|||||||
rtslib, and configshell, or stick with all non-fb versions, since they are
|
rtslib, and configshell, or stick with all non-fb versions, since they are
|
||||||
no longer strictly compatible.
|
no longer strictly compatible.
|
||||||
|
|
||||||
|
%package -n %{name}-common
|
||||||
|
Summary: Common targetcli-fb subpackage for either flavor of Python
|
||||||
|
Group: System/Management
|
||||||
|
Provides: %{python_module targetcli-fb-common}
|
||||||
|
Conflicts: targetcli
|
||||||
|
|
||||||
|
%description -n %{name}-common
|
||||||
|
targetcli-fb-common is the invariant base package needed by both
|
||||||
|
python2-targetcli-fb and python3-targetcli-fb.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{oname}-%{realver}%{?extraver}
|
%setup -q -n %{oname}-%{realver}%{?extraver}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/targetcli
|
||||||
install -d -m755 %{buildroot}%{_sysconfdir}/target
|
install -d -m755 %{buildroot}%{_sysconfdir}/target
|
||||||
install -d -m755 %{buildroot}%{_sysconfdir}/target/backup
|
install -d -m755 %{buildroot}%{_sysconfdir}/target/backup
|
||||||
install -d -m755 %{buildroot}%{_sbindir}
|
install -d -m755 %{buildroot}%{_sbindir}
|
||||||
%fdupes %{buildroot}%{python_sitelib}
|
|
||||||
install -D -m644 targetcli.8 %{buildroot}%{_mandir}/man8/targetcli.8
|
install -D -m644 targetcli.8 %{buildroot}%{_mandir}/man8/targetcli.8
|
||||||
install -D -m644 %{S:1} %{buildroot}%{_unitdir}/targetcli.service
|
install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/targetcli.service
|
||||||
|
%fdupes %{buildroot}
|
||||||
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rctargetcli
|
ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rctargetcli
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{service_add_post targetcli.service}
|
%python_install_alternative targetcli
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%{service_del_postun targetcli.service}
|
%python_uninstall_alternative targetcli
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%{service_add_pre targetcli.service}
|
%{service_add_pre targetcli.service}
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%{stop_on_removal targetcli}
|
%{stop_on_removal targetcli}
|
||||||
|
|
||||||
|
%post -n %{name}-common
|
||||||
|
%{service_add_post targetcli.service}
|
||||||
|
|
||||||
|
%postun -n %{name}-common
|
||||||
|
%{service_del_postun targetcli.service}
|
||||||
|
|
||||||
|
%pre -n %{name}-common
|
||||||
|
%{service_add_pre targetcli.service}
|
||||||
|
|
||||||
|
%preun -n %{name}-common
|
||||||
%{service_del_preun targetcli.service}
|
%{service_del_preun targetcli.service}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%python_alternative %{_bindir}/targetcli
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%files -n %{name}-common
|
||||||
%doc COPYING README.md THANKS
|
%doc COPYING README.md THANKS
|
||||||
%dir %{_sysconfdir}/target
|
%dir %{_sysconfdir}/target
|
||||||
%dir %{_sysconfdir}/target/backup
|
%dir %{_sysconfdir}/target/backup
|
||||||
%{_bindir}/targetcli
|
%doc %{_mandir}/man8/targetcli.8%{ext_man}
|
||||||
%{python_sitelib}/*
|
|
||||||
%doc %{_mandir}/man8/targetcli.8.gz
|
|
||||||
%{_unitdir}/targetcli.service
|
%{_unitdir}/targetcli.service
|
||||||
%{_sbindir}/rctargetcli
|
%{_sbindir}/rctargetcli
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user