Hello community,

here is the log from the commit of package python-autodoc for openSUSE:Factory 
checked in at 2018-05-19 15:42:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-autodoc (Old)
 and      /work/SRC/openSUSE:Factory/.python-autodoc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-autodoc"

Sat May 19 15:42:48 2018 rev:2 rq:610301 version:0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-autodoc/python-autodoc.changes    
2017-02-03 18:57:10.835366163 +0100
+++ /work/SRC/openSUSE:Factory/.python-autodoc.new/python-autodoc.changes       
2018-05-19 15:42:52.649724917 +0200
@@ -1,0 +2,15 @@
+Fri May 18 11:23:41 UTC 2018 - [email protected]
+
+- Comment out BuildRequires required only for tests
+
+-------------------------------------------------------------------
+Fri May 18 10:49:36 UTC 2018 - [email protected]
+
+- Fix SPEC file with spec-cleaner
+
+-------------------------------------------------------------------
+Thu Aug 24 13:32:57 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -9,0 +25 @@
+

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

Other differences:
------------------
++++++ python-autodoc.spec ++++++
--- /var/tmp/diff_new_pack.XhoJXr/_old  2018-05-19 15:42:53.437696087 +0200
+++ /var/tmp/diff_new_pack.XhoJXr/_new  2018-05-19 15:42:53.441695941 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-autodoc
 #
-# Copyright (c) 2017 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,42 +16,51 @@
 #
 
 
-Name:           python-autodoc
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define upname autodoc
+
+Name:           python-%{upname}
 Version:        0.3
 Release:        0
-Url:            https://github.com/heavenshell/py-autodoc
 Summary:        Autodoc Python implementation
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Source:         
https://pypi.python.org/packages/source/a/autodoc/autodoc-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-WebTest
-BuildRequires:  python-decorator
-BuildRequires:  python-devel
-BuildRequires:  python-mock
-BuildRequires:  python-requests
-BuildRequires:  python-setuptools
+URL:            https://github.com/heavenshell/py-%{upname}
+Source:         
https://files.pythonhosted.org/packages/source/a/%{upname}/%{upname}-%{version}.tar.gz
+BuildRequires:  %{python_module decorator}
+BuildRequires:  %{python_module setuptools}
+# # Required only for tests
+# BuildRequires:  %{python_module WebTest}
+# BuildRequires:  %{python_module requests}
+# BuildRequires:  %{python_module mock}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
+%python_subpackages
 
 %description
 Autodoc generates documentation from your unit test.
 This library is a Python implementation of Autodoc.
 
 %prep
-%setup -q -n autodoc-%{version}
+%setup -q -n %{upname}-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%{python_expand mv %{buildroot}%{$python_sitelib}/examples 
%{buildroot}%{$python_sitelib}/%{upname}
+%fdupes %{buildroot}%{$python_sitelib}
+}
 
 %check
-#python setup.py test
+# https://github.com/heavenshell/py-autodoc/issues/5
+# %%python_exec setup.py test
 
-%files
-%defattr(-,root,root,-)
-%doc LICENSE README.rst
-%{python_sitelib}/*
+%files %{python_files}
+%license LICENSE
+%doc README.rst
+%{python_sitelib}/%{upname}*
 
 %changelog


Reply via email to