15
0
forked from pool/python-exrex

Accepting request 707151 from home:pgajdos

- note there are no upstream tests, run spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/707151
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exrex?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-06-03 11:36:40 +00:00
committed by Git OBS Bridge
parent 845117d978
commit b70b206339
2 changed files with 11 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-exrex
#
# Copyright (c) 2018 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
@@ -23,15 +23,15 @@ Release: 0
Summary: Irregular methods for regular expressions
License: AGPL-3.0-or-later
Group: Development/Languages/Python
Url: https://github.com/asciimoo/exrex
URL: https://github.com/asciimoo/exrex
Source: https://files.pythonhosted.org/packages/source/e/exrex/exrex-%{version}.tar.gz
# PATCH-FIX-UPSTREAM add-license.patch
Patch0: https://github.com/asciimoo/exrex/pull/32.patch#/add-license.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires python-setuptools
BuildArch: noarch
%python_subpackages
%description
@@ -50,6 +50,9 @@ sed -i '1s/^#!.*//' exrex.py
rm %{buildroot}%{_bindir}/exrex.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# no upstream tests
%files %{python_files}
%{python_sitelib}/*
%license COPYING