Hello community, here is the log from the commit of package python2-pycairo for openSUSE:Factory checked in at 2020-03-25 23:45:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python2-pycairo (Old) and /work/SRC/openSUSE:Factory/.python2-pycairo.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python2-pycairo" Wed Mar 25 23:45:53 2020 rev:4 rq:788082 version:1.18.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python2-pycairo/python2-pycairo.changes 2020-03-23 12:53:17.996059630 +0100 +++ /work/SRC/openSUSE:Factory/.python2-pycairo.new.3160/python2-pycairo.changes 2020-03-25 23:46:50.960063332 +0100 @@ -1,0 +2,5 @@ +Wed Mar 25 08:25:31 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Install the fake egg-info folder to work with pip and friends + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python2-pycairo.spec ++++++ --- /var/tmp/diff_new_pack.SAu9h8/_old 2020-03-25 23:46:52.048063688 +0100 +++ /var/tmp/diff_new_pack.SAu9h8/_new 2020-03-25 23:46:52.052063689 +0100 @@ -24,6 +24,7 @@ URL: https://github.com/pygobject/pycairo Source: https://github.com/pygobject/pycairo/releases/download/v%{version}/pycairo-%{version}.tar.gz BuildRequires: cairo-devel >= 1.13.1 +BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-rpm-macros Provides: python2-cairo = %{version} @@ -73,11 +74,17 @@ %install %python2_install +%fdupes %{buildroot}%{python2_sitearch} # move headers to not conflict with newer ones from py3 mv %{buildroot}%{_includedir}/pycairo/ %{buildroot}%{_includedir}/pycairo-py2/ sed -i -e 's:include/pycairo:include/pycairo-py2:g' %{buildroot}%{_libdir}/pkgconfig/pycairo.pc +# add the setuptools egg-info directory +rm %{buildroot}%{python2_sitearch}/pycairo-%{version}-py%{python_version}.egg-info +mkdir -p %{buildroot}%{python2_sitearch}/pycairo-%{version}-py%{python_version}.egg-info/ +cp pycairo.egg-info/* %{buildroot}%{python2_sitearch}/pycairo-%{version}-py%{python_version}.egg-info/ + %files %doc NEWS docs %license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1