forked from pool/python-exrex
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 6015a523d4 | |||
| e3246c03fd | |||
| a88e1a2703 | |||
| 7947bd15be |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 13:26:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 27 10:23:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 12 08:36:45 UTC 2023 - Sebastian Wagner <sebix@sebix.at>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-exrex
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-exrex
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
@@ -26,12 +27,14 @@ URL: https://github.com/asciimoo/exrex
|
||||
#Source: https://files.pythonhosted.org/packages/source/e/exrex/exrex-%%{version}.tar.gz
|
||||
# pypi has no tests
|
||||
Source: https://github.com/asciimoo/exrex/archive/v%{version}.tar.gz#/exrex-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -43,10 +46,10 @@ A command line tool and python module that generates all or random matching stri
|
||||
sed -i '1s/^#!.*//' exrex.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/exrex
|
||||
rm %{buildroot}%{_bindir}/exrex.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
@@ -55,11 +58,8 @@ rm %{buildroot}%{_bindir}/exrex.py
|
||||
%{python_expand # comment
|
||||
LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{$python_sitelib} $python ./tests.py}
|
||||
|
||||
%post
|
||||
%python_install_alternative exrex
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative exrex
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative exrex
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/exrex*
|
||||
|
||||
Reference in New Issue
Block a user