Hello community,

here is the log from the commit of package python-rtslib-fb for 
openSUSE:Factory checked in at 2020-11-12 22:36:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rtslib-fb (Old)
 and      /work/SRC/openSUSE:Factory/.python-rtslib-fb.new.24930 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rtslib-fb"

Thu Nov 12 22:36:54 2020 rev:27 rq:846968 version:2.1.74

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rtslib-fb/python-rtslib-fb.changes        
2020-10-22 14:20:53.622675445 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-rtslib-fb.new.24930/python-rtslib-fb.changes 
    2020-11-12 22:37:24.262017317 +0100
@@ -1,0 +2,17 @@
+Sat Nov  7 18:05:32 UTC 2020 - Lee Duncan <[email protected]>
+
+- Fixed issue in SPEC file w/r/t package split with common.
+  Now, packages python3-rtslib-fb and python-rtslib-fb-common
+  are built, and the former depends on the latter. The common
+  package has the non-python parts (documentation, etc),
+  and the python3-* part the python parts.
+
+-------------------------------------------------------------------
+Fri Oct 23 18:20:23 UTC 2020 - Lee Duncan <[email protected]>
+
+- Split package into "common" part, python-rtslib-fb-common, which
+  is python-verserion-agnostic, and either python2-rtslib-comon-fb
+  or python3-rtslib-fb. This maens common files, like man pages,
+  don't have to be duplicated.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-rtslib-fb.spec ++++++
--- /var/tmp/diff_new_pack.eUy60y/_old  2020-11-12 22:37:24.786017864 +0100
+++ /var/tmp/diff_new_pack.eUy60y/_new  2020-11-12 22:37:24.786017864 +0100
@@ -25,7 +25,7 @@
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://github.com/open-iscsi/rtslib-fb.git
-Source:         %{name}-v%{version}.tar.xz
+Source:         python-rtslib-fb-v%{version}.tar.xz
 Patch1:         rbd-support.patch
 Patch2:         
rtslib-Fix-handling-of-sysfs-RW-attrs-that-are-actually-RO.patch
 Patch3:         rtslib-target-service-for-suse.patch
@@ -35,6 +35,9 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-pyudev
+%define oldpython python
+%define cpkg %{oldpython}-rtslib-fb-common
+Requires:       %{cpkg}
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 Provides:       python-rtslib = %{version}-%{release}
@@ -45,6 +48,7 @@
 Obsoletes:      python-rtslib-rbd < %{version}
 %endif
 BuildArch:      noarch
+
 %python_subpackages
 
 %description
@@ -52,8 +56,17 @@
 SCSI target, present in 3.x Linux kernel versions. rtslib-fb is licensed under
 the Apache 2.0 license. Contributions are welcome
 
+%package -n %{cpkg}
+Summary:        Common python-rtslib-fb subpackage for Python 2 or 3
+Group:          Development/Languages/Python
+Obsoletes:      %{name} < %{version}-%{release}
+
+%description -n %{cpkg}
+python-rtslib-fb-common is the invariant base package needed by both
+python2-rtslib-fb and python3-rtslib-fb.
+
 %prep
-%setup -q -n %{name}-v%{version}
+%setup -q -n python-rtslib-fb-v%{version}
 %if 0%{?sle_version} >= 150000
 # RBD support is dependent on LIO changes present in the SLE/Leap kernel
 %patch1 -p1
@@ -70,10 +83,8 @@
 %fdupes %{buildroot}
 install -d -m755 %{buildroot}%{_mandir}/man5
 install -m644 doc/saveconfig.json.5 %{buildroot}%{_mandir}/man5
-%python_clone -a %{buildroot}%{_mandir}/man5/saveconfig.json.5
 install -d -m755 %{buildroot}%{_mandir}/man8
 install -m644 doc/targetctl.8 %{buildroot}%{_mandir}/man8
-%python_clone -a %{buildroot}%{_mandir}/man8/targetctl.8
 install -d -m755 %{buildroot}/%{dbdir}
 install -d -m755 %{buildroot}/%{dbdir}/pr
 install -d -m755 %{buildroot}/%{dbdir}/alua
@@ -83,7 +94,7 @@
 ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rctarget
 
 %post
-%python_install_alternative targetctl targetctl.8 saveconfig.json.5
+%python_install_alternative targetctl
 %{service_add_post target.service}
 
 %postun
@@ -97,17 +108,31 @@
 %{stop_on_removal target}
 %{service_del_preun target.service}
 
+%post -n %{cpkg}
+%{service_add_post target.service}
+
+%postun -n %{cpkg}
+%{service_del_postun target.service}
+
+%pre -n %{cpkg}
+%{service_add_pre target.service}
+
+%preun -n %{cpkg}
+%{service_del_preun target.service}
+
 %files %{python_files}
 %python_alternative %{_bindir}/targetctl
 %{python_sitelib}/*
+
+%files -n %{cpkg}
 %license COPYING
 %doc README.md
-%doc %python_alternative %{_mandir}/man5/saveconfig.json.5.gz
-%doc %python_alternative %{_mandir}/man8/targetctl.8.gz
 %dir %{dbdir}
 %dir %{dbdir}/pr
 %dir %{dbdir}/alua
 %{_unitdir}/target.service
 %{_sbindir}/rctarget
+%doc %{_mandir}/man5/saveconfig.json.5.gz
+%doc %{_mandir}/man8/targetctl.8.gz
 
 %changelog
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to