Hello community,

here is the log from the commit of package python-pathtools for 
openSUSE:Factory checked in at 2017-04-28 10:52:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pathtools (Old)
 and      /work/SRC/openSUSE:Factory/.python-pathtools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pathtools"

Fri Apr 28 10:52:19 2017 rev:7 rq:490415 version:0.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pathtools/python-pathtools.changes        
2013-10-25 11:26:21.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-pathtools.new/python-pathtools.changes   
2017-04-28 10:52:19.563241398 +0200
@@ -1,0 +2,6 @@
+Sun Apr 23 07:24:48 UTC 2017 - [email protected]
+
+- Converted to single-spec
+- Added docs
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pathtools.spec ++++++
--- /var/tmp/diff_new_pack.o5Ejx7/_old  2017-04-28 10:52:20.431118738 +0200
+++ /var/tmp/diff_new_pack.o5Ejx7/_new  2017-04-28 10:52:20.431118738 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pathtools
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pathtools
 Version:        0.1.2
 Release:        0
@@ -23,34 +24,35 @@
 Summary:        File system general utilities
 License:        MIT
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/p/pathtools/pathtools-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/p/pathtools/pathtools-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  python3-Sphinx
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-#BuildRequires:  python-Sphinx
-%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
 Pattern matching and various utilities for file systems paths.
 
 %prep
 %setup -q -n pathtools-%{version}
+sed -i "1d" pathtools/path.py pathtools/patterns.py
 
 %build
-python setup.py build
-#cd docs && make html && rm -r build/html/.buildinfo # Build HTML docs
+%python_build
+cd docs && make html && rm -r build/html/.buildinfo # Build HTML docs
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc AUTHORS LICENSE README
-#%%doc docs/build/html
-%{python_sitelib}/*
+%doc AUTHORS LICENSE README docs/build/html
+%{python_sitelib}/pathtools
+%{python_sitelib}/pathtools-%{version}-py%{python_version}.egg-info
 
 %changelog


Reply via email to