forked from pool/python-TermRecord
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c58c8c301d | |||
| 872797fad5 | |||
| 04554ebb70 | |||
| 4591ab97aa |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 15:32:41 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
- fix usage of libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 12 15:01:49 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 7 15:56:09 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-TermRecord
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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,7 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without libalternatives
|
||||
Name: python-TermRecord
|
||||
Version: 1.2.5
|
||||
Release: 0
|
||||
@@ -24,12 +24,14 @@ Summary: A terminal session recorder with HTML output
|
||||
License: MIT
|
||||
URL: https://github.com/theonewolf/TermRecord
|
||||
Source: https://files.pythonhosted.org/packages/source/T/TermRecord/TermRecord-%{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-Jinja2 >= 2.6
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Jinja2 >= 2.6}
|
||||
@@ -47,22 +49,21 @@ it can be shipped to anyone that has a browser. Fonts are embedded, too.
|
||||
%setup -q -n TermRecord-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/TermRecord
|
||||
|
||||
%post
|
||||
%python_install_alternative TermRecord
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative TermRecord
|
||||
%pre
|
||||
# Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative TermRecord
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/TermRecord
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/[Tt]erm[Rr]ecord
|
||||
%{python_sitelib}/[Tt]erm[Rr]ecord-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user