14
0

Accepting request 306618 from home:benoit_monin:branches:devel:languages:python

- update to version 1.1
- add test dependency git-core
- run the tests during build

OBS-URL: https://build.opensuse.org/request/show/306618
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-git?expand=0&rev=15
This commit is contained in:
Denisart Benjamin
2015-05-16 13:25:23 +00:00
committed by Git OBS Bridge
parent ee15b5808a
commit 0f081dacf4
4 changed files with 20 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-setuptools-git
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -20,13 +20,14 @@
%define build_for_python3 0
Name: python-setuptools-git
Version: 1.0b1
Version: 1.1
Release: 0
Summary: Setuptools revision control system plugin for Git
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/wichert/setuptools-git
Source: http://pypi.python.org/packages/source/s/setuptools-git/setuptools-git-%{version}.tar.gz
BuildRequires: git-core
%if %{build_for_python3}
BuildRequires: python
BuildRequires: python3-devel
@@ -71,6 +72,12 @@ uniform naming convention.
%install
%{local_python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
# configure git for the test
git config --global user.email "test@test.test"
git config --global user.name "test"
%{local_python} setup.py -q test
%files
%defattr(-,root,root,-)
%{local_sitelib}/*