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:
commit
9ddd320680
@ -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
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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
|
||||
Version: 0.9.0
|
||||
Release: 0
|
||||
Url: https://github.com/gitpython-developers/smmap
|
||||
Summary: A pure git implementation of a sliding window memory map manager
|
||||
License: BSD-2-Clause
|
||||
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
|
||||
Patch0: delete_platform_specific_test.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-nosexcover
|
||||
BuildRequires: python-setuptools
|
||||
%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
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module nosexcover}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
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
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%if %{with test}
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user