diff --git a/python-simplegeneric.changes b/python-simplegeneric.changes index b8baae6..7a75e77 100644 --- a/python-simplegeneric.changes +++ b/python-simplegeneric.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Apr 25 21:49:49 UTC 2017 - toddrme2178@gmail.com + +- Fix URL. + +------------------------------------------------------------------- +Mon Apr 24 20:39:20 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version. +- Update source URL. + ------------------------------------------------------------------- Thu Jan 17 10:07:38 UTC 2013 - cfarrell@suse.com diff --git a/python-simplegeneric.spec b/python-simplegeneric.spec index 981639b..8876173 100644 --- a/python-simplegeneric.spec +++ b/python-simplegeneric.spec @@ -1,7 +1,7 @@ # # spec file for package python-simplegeneric # -# 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,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-simplegeneric Version: 0.8.1 Release: 0 @@ -22,15 +23,14 @@ License: ZPL-2.1 Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc) Url: http://cheeseshop.python.org/pypi/simplegeneric Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip -BuildRequires: python-devel +Source: https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip +BuildRequires: fdupes BuildRequires: unzip +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 The gsimplegeneric module lets you define simple single-dispatch @@ -57,12 +57,13 @@ less than 100 lines. %setup -q -n simplegeneric-%{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} -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.txt %{python_sitelib}/*