14
0

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:
Tomáš Chvátal
2019-03-12 09:26:16 +00:00
committed by Git OBS Bridge
parent 90e98c8bd1
commit 9ff22f6827
4 changed files with 23 additions and 15 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc54e28a9f1b5b2ec0c030da29c7ad8a15c2755bd98aaa4142eaf419d5fabb33
size 62262

3
pylibmc-1.6.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5ef97be4ca5527d5b87dbe77cfdd94b427028caf4136feff7da23c40e1ded6d8
size 65925

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Mar 12 05:07:50 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Remove bcond test
- Activate test suite
- Use %license
- Update URL to GitHub repository
- Update to v1.6.0
-------------------------------------------------------------------
Sat Sep 2 22:06:36 UTC 2017 - jengelh@inai.de

View File

@@ -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