From 1f8d955478f75d891a86922d98c67c3a01b8e5501c929af4e66d0f6f6880a39d Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 24 Apr 2017 20:39:49 +0000 Subject: [PATCH 1/2] Accepting request 490859 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version. - Update source URL. OBS-URL: https://build.opensuse.org/request/show/490859 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplegeneric?expand=0&rev=4 --- python-simplegeneric.changes | 6 ++++++ python-simplegeneric.spec | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/python-simplegeneric.changes b/python-simplegeneric.changes index b8baae6..be7f434 100644 --- a/python-simplegeneric.changes +++ b/python-simplegeneric.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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..6cdf90f 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: http://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}/* From f74d57c5c5246a32a89b4d987be1ce925cd9e21fd14ad4c56c0844e346deaad8 Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 25 Apr 2017 21:50:27 +0000 Subject: [PATCH 2/2] Accepting request 491152 from home:TheBlackCat:branches:devel:languages:python Fix URL. OBS-URL: https://build.opensuse.org/request/show/491152 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplegeneric?expand=0&rev=5 --- python-simplegeneric.changes | 5 +++++ python-simplegeneric.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-simplegeneric.changes b/python-simplegeneric.changes index be7f434..7a75e77 100644 --- a/python-simplegeneric.changes +++ b/python-simplegeneric.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 25 21:49:49 UTC 2017 - toddrme2178@gmail.com + +- Fix URL. + ------------------------------------------------------------------- Mon Apr 24 20:39:20 UTC 2017 - toddrme2178@gmail.com diff --git a/python-simplegeneric.spec b/python-simplegeneric.spec index 6cdf90f..8876173 100644 --- a/python-simplegeneric.spec +++ b/python-simplegeneric.spec @@ -23,7 +23,7 @@ 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://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip +Source: https://files.pythonhosted.org/packages/source/s/simplegeneric/simplegeneric-%{version}.zip BuildRequires: fdupes BuildRequires: unzip BuildRequires: python-rpm-macros