Hello community,

here is the log from the commit of package miniupnpc for openSUSE:Factory 
checked in at 2020-12-15 12:27:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/miniupnpc (Old)
 and      /work/SRC/openSUSE:Factory/.miniupnpc.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "miniupnpc"

Tue Dec 15 12:27:22 2020 rev:19 rq:855007 version:2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/miniupnpc/miniupnpc.changes      2018-09-07 
15:35:14.834809560 +0200
+++ /work/SRC/openSUSE:Factory/.miniupnpc.new.2328/miniupnpc.changes    
2020-12-15 12:27:22.875855120 +0100
@@ -1,0 +2,12 @@
+Sun Nov 22 00:17:00 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Fix the python subpackage generation
+  gh#openSUSE/python-rpm-macros#79
+
+-------------------------------------------------------------------
+Sat Nov 14 22:55:37 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Support multiple python3 flavors gh#openSUSE/python-rpm-macros#66
+- Don't own the whole python sitearch directory
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ miniupnpc.spec ++++++
--- /var/tmp/diff_new_pack.OMaLZF/_old  2020-12-15 12:27:23.423855561 +0100
+++ /var/tmp/diff_new_pack.OMaLZF/_new  2020-12-15 12:27:23.423855561 +0100
@@ -36,6 +36,16 @@
 BuildRequires:  python-rpm-macros
 Requires:       libminiupnpc%{soname} = %{version}-%{release}
 
+%if 0%{?python38_version_nodots}
+# if python multiflavor is in place yet, use it to generate subpackages
+%define python_subpackage_only 1
+%python_subpackages
+%else
+# same "defaults" for all distributions, used in %files below
+%define python_files() -n python3-%{**}
+%define python_sitearch %{python3_sitearch}
+%endif
+
 %description
 The MiniUPnP project offers software which supports the UPnP Internet Gateway
 Device (IGD) specifications.
@@ -57,6 +67,17 @@
 The MiniUPnP project offers software which supports the UPnP Internet Gateway
 Device (IGD) specifications.
 
+%if 0%{?python_subpackage_only}
+%package -n python-miniupnpc
+Summary:        Universal Plug'n'Play (UPnP) Client Module for Python
+Group:          Development/Libraries/Python
+Requires:       libminiupnpc%{soname} = %{version}-%{release}
+
+%description -n python-miniupnpc
+The MiniUPnP project offers software which supports the UPnP Internet Gateway
+Device (IGD) specifications.
+
+%else
 %package -n python2-miniupnpc
 Summary:        Universal Plug'n'Play (UPnP) Client Module for Python
 Group:          Development/Libraries/Python
@@ -74,6 +95,7 @@
 %description -n python3-miniupnpc
 The MiniUPnP project offers software which supports the UPnP Internet Gateway
 Device (IGD) specifications.
+%endif
 
 %prep
 %setup -q
@@ -92,7 +114,7 @@
 %make_install INSTALLDIRLIB=%{_libdir}
 
 %python_install
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 # Remove static libs
 rm -f %{buildroot}%{_libdir}/*.a
 # The man page should be non executable
@@ -116,16 +138,16 @@
 %{_libdir}/libminiupnpc.so
 %{_libdir}/pkgconfig/miniupnpc.pc
 
-%if %{with python2}
+%if %{with python2} && ! 0%{?python_subpackage_only}
 %files -n python2-miniupnpc
 %doc Changelog.txt README
 %license LICENSE
-%{python2_sitearch}/
+%{python2_sitearch}/miniupnpc*
 %endif
 
-%files -n python3-miniupnpc
+%files %{python_files miniupnpc}
 %doc Changelog.txt README
 %license LICENSE
-%{python3_sitearch}/
+%{python_sitearch}/miniupnpc*
 
 %changelog
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to