15
0
forked from pool/python-exrex

Accepting request 809387 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/809387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-exrex?expand=0&rev=4
This commit is contained in:
2020-05-28 07:17:27 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 26 06:34:10 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Jun 3 10:59:25 UTC 2019 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-exrex
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -47,15 +49,22 @@ sed -i '1s/^#!.*//' exrex.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/exrex
rm %{buildroot}%{_bindir}/exrex.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# no upstream tests
%post
%python_install_alternative exrex
%postun
%python_uninstall_alternative exrex
%files %{python_files}
%{python_sitelib}/*
%license COPYING
%python3_only %{_bindir}/exrex
%python_alternative %{_bindir}/exrex
%changelog