Hello community,

here is the log from the commit of package python-PasteScript for 
openSUSE:Factory checked in at 2017-05-17 10:50:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PasteScript (Old)
 and      /work/SRC/openSUSE:Factory/.python-PasteScript.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PasteScript"

Wed May 17 10:50:55 2017 rev:11 rq:493093 version:2.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PasteScript/python-PasteScript.changes    
2013-10-25 11:25:49.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-PasteScript.new/python-PasteScript.changes   
    2017-05-17 10:50:56.859580609 +0200
@@ -1,0 +2,17 @@
+Fri May  5 21:59:47 UTC 2017 - [email protected]
+
+- Fix Provides/Obsoletes.
+
+-------------------------------------------------------------------
+Wed Apr 19 22:13:57 UTC 2017 - [email protected]
+
+- Source url must be https.
+
+-------------------------------------------------------------------
+Fri Apr 14 23:00:11 UTC 2017 - [email protected]
+
+- Update to version 2.0.2
+- Remove upstream-included ianb-pastescript-a19e462769b4.diff
+- Implement single-spec version
+
+-------------------------------------------------------------------

Old:
----
  PasteScript-1.7.5.tar.gz
  ianb-pastescript-a19e462769b4.diff

New:
----
  PasteScript-2.0.2.tar.gz

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

Other differences:
------------------
++++++ python-PasteScript.spec ++++++
--- /var/tmp/diff_new_pack.aZWTeQ/_old  2017-05-17 10:50:58.887295358 +0200
+++ /var/tmp/diff_new_pack.aZWTeQ/_new  2017-05-17 10:50:58.887295358 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-PasteScript
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,35 +15,50 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+# Namespace package issues break tests on Factory
+%if 0%{?suse_version} > 1320
+%bcond_with tests
+%else
+%bcond_without tests
+%endif
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:           python-PasteScript
-Version:        1.7.5
+Version:        2.0.2
 Release:        0
 Url:            http://pythonpaste.org/script/
 Summary:        A pluggable command-line frontend to setup package file layouts
 License:        MIT
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/P/PasteScript/PasteScript-%{version}.tar.gz
-Patch0:         ianb-pastescript-a19e462769b4.diff
+Source:         
https://files.pythonhosted.org/packages/source/P/PasteScript/PasteScript-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-PasteDeploy
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-%if 0%{?suse_version} && 0%{?suse_version} <= 1210
-Requires:       python-cheetah
-%else
-Requires:       python-Cheetah
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module Paste >= 1.3}
+BuildRequires:  %{python_module PasteDeploy}
+%if %{with tests}
+# Test requirements
+BuildRequires:  %{python_module nose >= 0.11}
+BuildRequires:  python-Cheetah
+BuildRequires:  python-unittest2
 %endif
 Requires:       python-Paste >= 1.3
 Requires:       python-PasteDeploy
 Requires:       python-setuptools
-Provides:       python-pastescript = %{version}
-Obsoletes:      python-pastescript < %{version}
-%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
+Requires:       python-six
+%ifpython2
+Recommends:     python-Cheetah
+Provides:       %{oldpython}-pastescript = %{version}
+Obsoletes:      %{oldpython}-pastescript < %{version}
 %endif
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
+BuildArch:      noarch
+%python_subpackages
 
 %description
 This is a pluggable command-line tool. It includes some built-in features:
@@ -53,21 +68,38 @@
 
 %prep
 %setup -q -n PasteScript-%{version}
-%patch0
 mv docs/_build docs/html # Proper name for HTML docs
 sed -i "1d" tests/test_logging_config.py # Fix non-executable script
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-rm -rf %{buildroot}%{python_sitelib}/tests # Remove wrongly installed tests
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests # Remove wrongly 
installed tests
+
+# Prepare for update-alternatives usage
+%python_clone -a %{buildroot}%{_bindir}/paster
+
+%if %{with tests}
+%check
+%python_expand nosetests-%{$python_bin_suffix} -v tests/
+%endif
+
+%post
+%python_install_alternative paster
+
+%preun
+%python_uninstall_alternative paster
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc docs/*
-%{_bindir}/paster
-%{python_sitelib}/*
+%doc README.rst docs/license.txt docs/news.txt
+%doc docs/html/
+%python_alternative %{_bindir}/paster
+%{python_sitelib}/PasteScript-%{version}-py*.egg-info
+%{python_sitelib}/PasteScript-%{version}-py*-nspkg.pth
+%{python_sitelib}/paste/script/
 
 %changelog

++++++ PasteScript-1.7.5.tar.gz -> PasteScript-2.0.2.tar.gz ++++++
++++ 8226 lines of diff (skipped)


Reply via email to