SHA256
1
0
forked from pool/python-smmap

Accepting request 517926 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/517926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-smmap?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2017-08-23 09:54:15 +00:00 committed by Git OBS Bridge
commit 9ddd320680
2 changed files with 31 additions and 19 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 15 17:49:10 UTC 2017 - daniel.molkentin@suse.com
- Converted to python singlespec
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 5 17:54:52 UTC 2015 - benoit.monin@gmx.fr Tue May 5 17:54:52 UTC 2015 - benoit.monin@gmx.fr

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-smmap # spec file for package python-smmap
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,27 +16,33 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-smmap Name: python-smmap
Version: 0.9.0 Version: 0.9.0
Release: 0 Release: 0
Url: https://github.com/gitpython-developers/smmap
Summary: A pure git implementation of a sliding window memory map manager Summary: A pure git implementation of a sliding window memory map manager
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/s/smmap/smmap-%{version}.tar.gz Url: https://github.com/gitpython-developers/smmap
Source: https://files.pythonhosted.org/packages/source/s/smmap/smmap-%{version}.tar.gz
# PATCH-FIX-OPENSUSE delete_platform_specific_test.patch -- fix tests on powerpc # PATCH-FIX-OPENSUSE delete_platform_specific_test.patch -- fix tests on powerpc
Patch0: delete_platform_specific_test.patch Patch0: delete_platform_specific_test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel}
BuildRequires: fdupes BuildRequires: %{python_module setuptools}
BuildRequires: python-devel BuildRequires: python-rpm-macros
BuildRequires: python-nose # SECTION test requirements
BuildRequires: python-nosexcover %if %{with test}
BuildRequires: python-setuptools BuildRequires: %{python_module coverage}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: %{python_module nosexcover}
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: %{python_module nose}
%else
BuildArch: noarch
%endif %endif
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description %description
When reading from many possibly large files in a fashion similar to random When reading from many possibly large files in a fashion similar to random
@ -54,16 +60,17 @@ The documentation can be found here: http://packages.python.org/smmap
%patch0 -p1 %patch0 -p1
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%fdupes %{buildroot}/%{_prefix} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
python setup.py -q test %python_exec setup.py test
%endif
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitelib}/* %{python_sitelib}/*