Hello community, here is the log from the commit of package python-funcparserlib for openSUSE:Factory checked in at 2017-05-03 15:55:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-funcparserlib (Old) and /work/SRC/openSUSE:Factory/.python-funcparserlib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-funcparserlib" Wed May 3 15:55:19 2017 rev:3 rq:489491 version:0.3.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-funcparserlib/python-funcparserlib.changes 2016-03-17 16:47:50.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-funcparserlib.new/python-funcparserlib.changes 2017-05-03 15:55:22.911542822 +0200 @@ -1,0 +2,10 @@ +Wed Apr 19 22:20:34 UTC 2017 - toddrme2178@gmail.com + +- Source must be https. + +------------------------------------------------------------------- +Wed Apr 19 19:47:05 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-funcparserlib.spec ++++++ --- /var/tmp/diff_new_pack.t3rWRY/_old 2017-05-03 15:55:24.559310199 +0200 +++ /var/tmp/diff_new_pack.t3rWRY/_new 2017-05-03 15:55:24.567309069 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-funcparserlib # -# Copyright (c) 2016 SUSE LINUX 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,9 @@ # +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-funcparserlib Version: 0.3.6 Release: 0 @@ -23,16 +26,18 @@ Summary: Recursive descent parsing library based on functional combinators License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/f/funcparserlib/funcparserlib-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/f/funcparserlib/funcparserlib-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-setuptools -%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 +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python3-2to3 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with tests} +BuildRequires: %{python_module nose} %endif +BuildArch: noarch +%python_subpackages %description Parser combinators are just higher-order functions that take parsers as @@ -57,21 +62,25 @@ %setup -q -n funcparserlib-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with tests} %check -# Python 2.6.0 has broken exceptions for tests -%if %(python -c 'import sys; print int(sys.version.startswith("2.6 "))') == 0 -nosetests +pushd doc +%{python_expand export PYHONPATH=%{buildroot}%{$python_sitelib} +nosetests-%{$python_bin_suffix} -m funcparserlib +} +popd %endif -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE README -%{python_sitelib}/funcparserlib +%doc LICENSE README CHANGES +%{python_sitelib}/funcparserlib/ %{python_sitelib}/funcparserlib*egg-info %changelog