forked from pool/python-bibtexparser
Accepting request 810593 from home:pgajdos:python
- unittest2 is not neccessary for python3 - added patches use unittest2 only if present, fall back to unittest + python-bibtexparser-remove-unittest2.patch OBS-URL: https://build.opensuse.org/request/show/810593 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bibtexparser?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
35ade27be2
commit
e1b84222ca
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-bibtexparser
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
@@ -25,6 +26,8 @@ License: LGPL-3.0-only OR BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/sciunto-org/python-bibtexparser
|
||||
Source: https://github.com/sciunto-org/python-bibtexparser/archive/v%{version}.tar.gz#/python-bibtexparser-%{version}.tar.gz
|
||||
# https://github.com/sciunto-org/python-bibtexparser/pull/259
|
||||
Patch0: python-bibtexparser-remove-unittest2.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -36,7 +39,9 @@ BuildArch: noarch
|
||||
BuildRequires: %{python_module future >= 0.16.0}
|
||||
BuildRequires: %{python_module pyparsing >= 2.0.3}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module unittest2}
|
||||
%if %{with python2}
|
||||
BuildRequires: python-unittest2
|
||||
%endif
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -45,6 +50,7 @@ Python library to parse bibtex files..
|
||||
|
||||
%prep
|
||||
%setup -q -n python-bibtexparser-%{version}
|
||||
%patch0 -p1
|
||||
sed -i -e '/^#!\//, 1d' bibtexparser/*.py
|
||||
|
||||
%build
|
||||
|
||||
Reference in New Issue
Block a user