14
0
forked from pool/python-patatt

4 Commits

2 changed files with 22 additions and 11 deletions

View File

@@ -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> Thu Jul 27 07:34:09 UTC 2023 - Jiri Slaby <jslaby@suse.cz>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-patatt # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
# #
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-patatt Name: python-patatt
Version: 0.6.3 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 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 Source1: https://git.kernel.org/pub/scm/utils/patatt/patatt.git/snapshot/patatt-%{version}.tar.asc
Source2: python-patatt.keyring Source2: python-patatt.keyring
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module PyNaCl} BuildRequires: %{python_module PyNaCl}
BuildRequires: git-core BuildRequires: git-core
# /SECTION # /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages %python_subpackages
%description %description
@@ -49,10 +52,10 @@ need this and should simply start signing your tags and commits.
%autosetup -n patatt-%{version} %autosetup -n patatt-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/patatt %python_clone -a %{buildroot}%{_bindir}/patatt
%python_clone -a %{buildroot}%{_mandir}/man5/patatt.5 %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 # try at least a simple runtime test
%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" %{buildroot}%{_bindir}/patatt-%{$python_bin_suffix} --version | grep -q %{version} %python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" %{buildroot}%{_bindir}/patatt-%{$python_bin_suffix} --version | grep -q %{version}
%post %pre
%{python_install_alternative patatt patatt.5} %python_libalternatives_reset_alternative patatt
%postun
%python_uninstall_alternative patatt
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license COPYING %license COPYING
%python_alternative %{_bindir}/patatt %python_alternative %{_bindir}/patatt
%python_alternative %{_mandir}/man5/patatt.5%{?ext_man} %python_alternative %{_mandir}/man5/patatt.5%{?ext_man}
%{python_sitelib}/* %{python_sitelib}/patatt
%{python_sitelib}/patatt-%{version}*-info
%changelog %changelog