forked from pool/python-patatt
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
cea3a4fc66 | |||
1446d7347c | |||
f6fa35731c | |||
65d08c4f1d |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 14:26:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 09:03:08 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 27 07:34:09 UTC 2023 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-patatt
|
||||
#
|
||||
# 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
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-patatt
|
||||
Version: 0.6.3
|
||||
@@ -26,15 +27,17 @@ URL: https://git.kernel.org/pub/scm/utils/patatt/patatt.git/
|
||||
Source0: https://git.kernel.org/pub/scm/utils/patatt/patatt.git/snapshot/patatt-%{version}.tar.gz
|
||||
Source1: https://git.kernel.org/pub/scm/utils/patatt/patatt.git/snapshot/patatt-%{version}.tar.asc
|
||||
Source2: python-patatt.keyring
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyNaCl}
|
||||
BuildRequires: git-core
|
||||
# /SECTION
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -49,10 +52,10 @@ need this and should simply start signing your tags and commits.
|
||||
%autosetup -n patatt-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/patatt
|
||||
%python_clone -a %{buildroot}%{_mandir}/man5/patatt.5
|
||||
|
||||
@@ -60,17 +63,15 @@ need this and should simply start signing your tags and commits.
|
||||
# try at least a simple runtime test
|
||||
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" %{buildroot}%{_bindir}/patatt-%{$python_bin_suffix} --version | grep -q %{version}
|
||||
|
||||
%post
|
||||
%{python_install_alternative patatt patatt.5}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative patatt
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative patatt
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license COPYING
|
||||
%python_alternative %{_bindir}/patatt
|
||||
%python_alternative %{_mandir}/man5/patatt.5%{?ext_man}
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/patatt
|
||||
%{python_sitelib}/patatt-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user