Hello community, here is the log from the commit of package python-pivy for openSUSE:Factory checked in at 2017-12-19 10:58:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pivy (Old) and /work/SRC/openSUSE:Factory/.python-pivy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pivy" Tue Dec 19 10:58:14 2017 rev:3 rq:557950 version:0.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pivy/python-pivy.changes 2017-10-18 10:51:02.315306664 +0200 +++ /work/SRC/openSUSE:Factory/.python-pivy.new/python-pivy.changes 2017-12-19 10:58:16.761953163 +0100 @@ -1,0 +2,8 @@ +Sat Dec 16 13:26:13 UTC 2017 - badshah...@gmail.com + +- Convert specfile to python-singlespec: fixes build failures in + Factory. Doesn't build against python2 for unknown reasons, so + turn off python2 modules until this is fixed. +- Use fdupes (added to BuildRequires) to link duplicate files. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pivy.spec ++++++ --- /var/tmp/diff_new_pack.Y7k9u8/_old 2017-12-19 10:58:17.469918987 +0100 +++ /var/tmp/diff_new_pack.Y7k9u8/_new 2017-12-19 10:58:17.469918987 +0100 @@ -16,6 +16,10 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +#FIXME Does not build with python2 for unknown reasons +%define skip_python2 1 + Name: python-pivy Version: 0.6.2 Release: 0 @@ -24,22 +28,14 @@ Group: Development/Libraries/Python Url: https://github.com/FreeCAD/pivy Source0: Pivy-%{version}.tar.gz +BuildRequires: %{python_module devel} BuildRequires: Coin-devel BuildRequires: SoQt-devel +BuildRequires: fdupes BuildRequires: gcc -%if 0%{?suse_version} > 1210 BuildRequires: libXmu-devel -%else -BuildRequires: xorg-x11-devel -%endif -%if 0%{?suse_version} >= 1330 -# python3 -BuildRequires: python3-devel -%else -BuildRequires: python-devel -%endif +BuildRequires: python-rpm-macros BuildRequires: swig -%{py_requires} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -61,21 +57,17 @@ %build export CFLAGS="%{optflags}" -%if 0%{?suse_version} >= 1330 -python3 setup.py build -%else -python setup.py build -%endif +%python_build %install -%if 0%{?suse_version} >= 1330 -python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES -%else -python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES -%endif +%python_install + +%fdupes %{buildroot}%{python_sitelib}/pivy/ -%files -f INSTALLED_FILES +%files %defattr(-,root,root,-) %doc AUTHORS HACKING LICENSE NEWS README.md THANKS +%{python_sitelib}/pivy/ +%{python_sitelib}/Pivy-%{version}-py%{py_ver}.egg-info %changelog