forked from pool/python-simplegeneric
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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}/*
|
||||
|
Reference in New Issue
Block a user