diff --git a/pycountry-1.20.tar.gz b/pycountry-1.20.tar.gz deleted file mode 100644 index ed424c1..0000000 --- a/pycountry-1.20.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0588efa3171e1d5e4cc96fce569ac865964285fdc8dbdc0860844f74598d1f98 -size 5024012 diff --git a/pycountry-17.5.14.tar.gz b/pycountry-17.5.14.tar.gz new file mode 100644 index 0000000..30e19b3 --- /dev/null +++ b/pycountry-17.5.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d31321e59a134aac326ac07d4b2595d63f7e7f755bcb503bdecca2bd1b54ff2f +size 9203433 diff --git a/python-pycountry.changes b/python-pycountry.changes index e26e8cd..e65b6c2 100644 --- a/python-pycountry.changes +++ b/python-pycountry.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Sep 16 01:29:15 UTC 2017 - smurf.anon@gmail.com + +- Update to version 17.5.14 +- Convert to singlespec + ------------------------------------------------------------------- Wed Oct 5 03:25:59 UTC 2016 - mailaender@opensuse.org diff --git a/python-pycountry.spec b/python-pycountry.spec index 3998ebb..85db39d 100644 --- a/python-pycountry.spec +++ b/python-pycountry.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycountry # -# 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 @@ -18,19 +18,21 @@ %define real_name pycountry +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pycountry -Version: 1.20 +Version: 17.5.14 Release: 0 Summary: Databases for ISO standards 639 3166 3166-2 4217 15924 License: LGPL-2.1 Group: Development/Libraries/Python Url: https://pypi.python.org/pypi/pycountry/ Source: https://pypi.io/packages/source/p/%{real_name}/%{real_name}-%{version}.tar.gz -BuildRequires: python-setuptools -Requires: python +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-lxml BuildRoot: %{_tmppath}/%{name}-%{version}-build -%py_requires +BuildArch: noarch +%python_subpackages %description pycountry provides the ISO databases for the standards 639 (Languages), @@ -43,13 +45,14 @@ Translation files for the various strings are included as well. %setup -q -n %{real_name}-%{version} %build -export CFLAGS="%{optflags}" -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES +%python_install -%files -f INSTALLED_FILES -%defattr(-,root,root) +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE.txt README +%{python_sitelib}/* %changelog