Hello community, here is the log from the commit of package libpfm for openSUSE:Factory checked in at 2020-12-15 12:27:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpfm (Old) and /work/SRC/openSUSE:Factory/.libpfm.new.2328 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libpfm" Tue Dec 15 12:27:20 2020 rev:25 rq:855006 version:4.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libpfm/libpfm.changes 2020-03-05 23:18:04.597170281 +0100 +++ /work/SRC/openSUSE:Factory/.libpfm.new.2328/libpfm.changes 2020-12-15 12:27:21.775854234 +0100 @@ -1,0 +2,12 @@ +Sun Nov 22 00:18:22 UTC 2020 - Benjamin Greiner <c...@bnavigator.de> + +- Fix the python subpackage generation + gh#openSUSE/python-rpm-macros#79 + +------------------------------------------------------------------- +Thu Nov 19 18:21:46 UTC 2020 - Benjamin Greiner <c...@bnavigator.de> + +- Support multiple python 3 flavors in the python subpackage + gh#openSUSE/python-rpm-macros#66 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpfm.spec ++++++ --- /var/tmp/diff_new_pack.bzh2v9/_old 2020-12-15 12:27:22.571854875 +0100 +++ /var/tmp/diff_new_pack.bzh2v9/_new 2020-12-15 12:27:22.579854882 +0100 @@ -43,6 +43,15 @@ BuildRequires: python-rpm-macros BuildRequires: swig >= 2.0.5 +%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 +%define python_sitearch %python3_sitearch +%define python_files() -n python3-%{**} +%endif + %description This package provides a library that can be used to encode events into the format required by the operating systems performance monitoring subsystem. @@ -78,6 +87,16 @@ %description devel-static This package contains the static variant of libpfm. +%if 0%{?python_subpackage_only} +%package -n python-%{name} +Summary: Python bindings for libpfm and perf_event_open system call +Group: Development/Libraries/Python +Requires: %{vname} = %{version} + +%description -n python-%{name} +This package provides python bindings for the libpfm4 package and the perf_event_open system call. + +%else %package -n python2-%{name} Summary: Python bindings for libpfm and perf_event_open system call Group: Development/Libraries/Python @@ -95,6 +114,7 @@ %description -n python3-%{name} This package provides python3 bindings for the libpfm4 package and the perf_event_open system call. +%endif %prep %setup -q @@ -150,12 +170,14 @@ %files devel-static %{_libdir}/lib*.a -%if %{with python2} +%files %{python_files %{name}} +%{python_sitearch}/perfmon +%{python_sitearch}/perfmon-*-info + +%if %{with python2} && ! 0%{?python_subpackage_only} %files -n python2-%{name} %{python2_sitearch}/* %endif -%files -n python3-%{name} -%{python3_sitearch}/* %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