forked from pool/python-dogpile.cache
Accepting request 484806 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/484806 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dogpile.cache?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 1 14:02:39 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 31 10:47:40 UTC 2016 - tbechtold@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-dogpile.cache
|
||||
#
|
||||
# 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,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-dogpile.cache
|
||||
Version: 0.6.2
|
||||
Release: 0
|
||||
@@ -24,19 +25,21 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://bitbucket.org/zzzeek/dogpile.cache
|
||||
Source: https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Mako}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-rpm-macros
|
||||
# NOTE(toabctl): upstream merged dogpile.core into dogpile.cache
|
||||
# see https://gerrit.sqlalchemy.org/#/c/89/
|
||||
Provides: python-dogpile.core = 0.4.1
|
||||
Obsoletes: python-dogpile.core <= 0.4.1
|
||||
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
|
||||
A caching API built around the concept of a "dogpile lock", which allows
|
||||
@@ -47,15 +50,19 @@ new value.
|
||||
%setup -q -n dogpile.cache-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}/%{_prefix}
|
||||
|
||||
%files
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/dogpile
|
||||
%{python_sitelib}/dogpile.cache-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user