Hello community,

here is the log from the commit of package targetcli-fb for openSUSE:Factory 
checked in at 2018-01-16 09:42:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/targetcli-fb (Old)
 and      /work/SRC/openSUSE:Factory/.targetcli-fb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "targetcli-fb"

Tue Jan 16 09:42:55 2018 rev:5 rq:564462 version:2.1.47

Changes:
--------
--- /work/SRC/openSUSE:Factory/targetcli-fb/targetcli-fb.changes        
2017-08-23 11:55:07.247124640 +0200
+++ /work/SRC/openSUSE:Factory/.targetcli-fb.new/targetcli-fb.changes   
2018-01-16 09:42:57.384043807 +0100
@@ -1,0 +2,35 @@
+Mon Jan 15 02:32:27 UTC 2018 - [email protected]
+
+- Removed duplicate BuildRequires line, and add Conflicts for
+  sub-package
+
+-------------------------------------------------------------------
+Thu Jan  4 22:14:36 UTC 2018 - [email protected]
+
+- Added dependency on dbus package to SPEC file (bsc#1073913)
+
+-------------------------------------------------------------------
+Thu Jan  4 21:54:00 UTC 2018 - [email protected]
+
+- 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 - [email protected]
+
+- 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 - [email protected]
+
+- 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.
+
+-------------------------------------------------------------------

Old:
----
  targetcli-fb-2.1.fb47.tar.gz

New:
----
  targetcli-fb-2.1.fb47.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ targetcli-fb.spec ++++++
--- /var/tmp/diff_new_pack.yAHKUC/_old  2018-01-16 09:42:58.072011604 +0100
+++ /var/tmp/diff_new_pack.yAHKUC/_new  2018-01-16 09:42:58.072011604 +0100
@@ -1,7 +1,7 @@
 #
 # 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
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,30 +18,40 @@
 
 %define oname targetcli-fb
 %define realver  2.1.fb47
-
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           %{oname}
 Version:        2.1.47
 Release:        0
-Url:            http://github.com/agrover/%{oname}
 Summary:        A command shell for managing the Linux LIO kernel target
 License:        Apache-2.0
 Group:          System/Management
-Source:         %{oname}-%{realver}.tar.gz
+Url:            http://github.com/agrover/%{oname}
+Source:         %{oname}-%{realver}.tar.xz
 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-dbus-python
 Requires:       python-rtslib-fb
 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
-BuildRequires:  fdupes
-BuildRequires:  python-configshell-fb
-BuildRequires:  python-devel
-BuildRequires:  python-pyparsing
-BuildRequires:  python-rtslib-fb
-BuildRequires:  python-setuptools
-BuildRequires:  systemd
 %{?systemd_requires}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%python_subpackages
 
 %description
 targetcli-fb is a command-line interface for configuring the LIO generic
@@ -53,43 +63,66 @@
 rtslib, and configshell, or stick with all non-fb versions, since they are
 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
 %setup -q -n %{oname}-%{realver}%{?extraver}
 
 %build
-python setup.py build
+%python_build
 
 %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/backup
 install -d -m755 %{buildroot}%{_sbindir}
-%fdupes %{buildroot}%{python_sitelib}
 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
 
 %post
-%{service_add_post targetcli.service}
+%python_install_alternative targetcli
 
 %postun
-%{service_del_postun targetcli.service}
+%python_uninstall_alternative targetcli
 
 %pre
 %{service_add_pre targetcli.service}
 
 %preun
 %{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}
 
-%files
-%defattr(-,root,root)
+%files %{python_files}
+%python_alternative %{_bindir}/targetcli
+%{python_sitelib}/*
+
+%files -n %{name}-common
 %doc COPYING README.md THANKS
 %dir %{_sysconfdir}/target
 %dir %{_sysconfdir}/target/backup
-%{_bindir}/targetcli
-%{python_sitelib}/*
-%doc %{_mandir}/man8/targetcli.8.gz
+%doc %{_mandir}/man8/targetcli.8%{ext_man}
 %{_unitdir}/targetcli.service
 %{_sbindir}/rctargetcli
 

++++++ _service ++++++
--- /var/tmp/diff_new_pack.yAHKUC/_old  2018-01-16 09:42:58.124009171 +0100
+++ /var/tmp/diff_new_pack.yAHKUC/_new  2018-01-16 09:42:58.124009171 +0100
@@ -4,8 +4,8 @@
     <param name="url">https://github.com/open-iscsi/targetcli-fb.git</param>
     <param name="subdir"></param>
     <param name="filename">targetcli-fb</param>
-    <param name="versionformat">2.1.fb46</param>
-    <param name="revision">v2.1.fb46</param>
+    <param name="versionformat">2.1.fb47</param>
+    <param name="revision">v2.1.fb47</param>
     <param name="changesgenerate">enable</param>
   </service>
   <service name="recompress" mode="disabled">

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.yAHKUC/_old  2018-01-16 09:42:58.152007859 +0100
+++ /var/tmp/diff_new_pack.yAHKUC/_new  2018-01-16 09:42:58.156007673 +0100
@@ -1,4 +1,4 @@
 <servicedata>
 <service name="tar_scm">
-            <param 
name="url">https://github.com/open-iscsi/targetcli-fb.git</param>
-          <param 
name="changesrevision">f632f38264edc5a620ed5cd0f506d8dc205efce3</param></service></servicedata>
\ No newline at end of file
+                <param 
name="url">https://github.com/open-iscsi/targetcli-fb.git</param>
+              <param 
name="changesrevision">ee32a2493eaccd9352cc596b9e3387960cca48fc</param></service></servicedata>
\ No newline at end of file


Reply via email to