Hello community,

here is the log from the commit of package python-odorik for openSUSE:Leap:15.2 
checked in at 2020-03-27 16:43:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-odorik (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-odorik.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-odorik"

Fri Mar 27 16:43:34 2020 rev:11 rq:776864 version:0.5

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-odorik/python-odorik.changes    
2020-01-15 15:50:54.963510987 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-odorik.new.3160/python-odorik.changes  
2020-03-27 16:43:52.323783436 +0100
@@ -1,0 +2,18 @@
+Wed Aug 29 10:54:27 UTC 2018 - [email protected]
+
+- Fix build on 42.3 by calling pytest properly and adding dependency
+  on ssl module from python2 main package
+
+-------------------------------------------------------------------
+Tue May 22 15:36:31 UTC 2018 - [email protected]
+
+- clean SPEC file
+- binaries and manpages are only in python3- package
+- tests are run for both versions of Python
+
+-------------------------------------------------------------------
+Thu Aug 24 13:47:07 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -41,0 +60 @@
+

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

Other differences:
------------------
++++++ python-odorik.spec ++++++
--- /var/tmp/diff_new_pack.CWc3Jy/_old  2020-03-27 16:43:52.683783648 +0100
+++ /var/tmp/diff_new_pack.CWc3Jy/_new  2020-03-27 16:43:52.683783648 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-odorik
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,27 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-odorik
 Version:        0.5
 Release:        0
 Summary:        Python module for Odorik API
-License:        GPL-3.0+
+License:        GPL-3.0-or-later
 Group:          Development/Languages/Python
-Url:            http://cihar.com/software/odorik/
-Source:         
https://pypi.python.org/packages/source/o/odorik/odorik-%{version}.tar.bz2
-BuildRequires:  python-devel
-BuildRequires:  python-httpretty
-BuildRequires:  python-pytest
-BuildRequires:  python-python-dateutil
-BuildRequires:  python-sphinx
-BuildRequires:  python-xdg
+URL:            http://cihar.com/software/odorik/
+Source:         
https://files.pythonhosted.org/packages/source/o/odorik/odorik-%{version}.tar.bz2
+BuildRequires:  %{python_module Sphinx}
+BuildRequires:  %{python_module httpretty}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module python-dateutil}
+BuildRequires:  %{python_module pyxdg}
+BuildRequires:  fdupes
+BuildRequires:  python
+BuildRequires:  python-rpm-macros
 Requires:       python-python-dateutil
 Requires:       python-xdg
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Python module to work with Odorik API.
@@ -46,22 +45,23 @@
 %setup -q -n odorik-%{version}
 
 %build
-python setup.py build
-make -C docs man
+%python_build
+make %{?_smp_mflags} -C docs man
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 install -d %{buildroot}%{_mandir}/man1
 install -m 644 docs/_build/man/odorik.1 %{buildroot}%{_mandir}/man1
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-py.test odorik
+%python_expand py.test-%{$python_version} odorik
 
-%files
-%defattr(-,root,root,-)
-%doc NEWS.rst LICENSE README.rst
+%files %{python_files}
+%license LICENSE
+%doc NEWS.rst README.rst
 %{python_sitelib}/*
-%{_mandir}/man1/*
-%{_bindir}/*
+%python3_only %{_mandir}/man1/*
+%python3_only %{_bindir}/*
 
 %changelog


Reply via email to