forked from pool/python-pylibmc
Accepting request 684141 from home:jayvdb:django
- Remove bcond test - Activate test suite - Use %license - Update URL to GitHub repository - Update to v1.6.0 OBS-URL: https://build.opensuse.org/request/show/684141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylibmc?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
90e98c8bd1
commit
9ff22f6827
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pylibmc
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -12,29 +12,27 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-pylibmc
|
||||
Version: 1.5.2
|
||||
Version: 1.6.0
|
||||
Release: 0
|
||||
Summary: memcached client for Python
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: http://sendapatch.se/projects/pylibmc/
|
||||
URL: https://github.com/lericson/pylibmc
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pylibmc/pylibmc-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libmemcached-devel
|
||||
BuildRequires: memcached
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: zlib-devel
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -56,17 +54,18 @@ export CFLAGS="%{optflags}"
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{_sbindir}/memcached &
|
||||
pid=$!
|
||||
export NOSE_IGNORE_CONFIG_FILES=1
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
nosetests-%{$python_bin_suffix} tests
|
||||
}
|
||||
%endif
|
||||
kill $pid
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user