- Spec cleanup and modernization fixes rhbz#2378513
This commit is contained in:
parent
0c44fbedd1
commit
07dfcb07ef
1 changed files with 12 additions and 7 deletions
19
2ping.spec
19
2ping.spec
|
|
@ -1,6 +1,6 @@
|
|||
Name: 2ping
|
||||
Version: 4.5.1
|
||||
Release: 20%{?dist}
|
||||
Release: 21%{?dist}
|
||||
Summary: Bi-directional ping utility
|
||||
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||
License: GPL-2.0-or-later
|
||||
|
|
@ -9,7 +9,6 @@ Source0: https://www.finnie.org/software/%{name}/%{name}-%{version}.tar.g
|
|||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: systemd
|
||||
|
||||
%description
|
||||
|
|
@ -20,16 +19,21 @@ a 2ping client to determine which direction packet loss occurs.
|
|||
%prep
|
||||
%autosetup
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files -l '*'
|
||||
install -Dp -m 0644 2ping.service %{buildroot}/%{_unitdir}/2ping.service
|
||||
install -Dp -m 0644 doc/2ping.1 %{buildroot}/%{_mandir}/man1/2ping.1
|
||||
install -Dp -m 0644 doc/2ping.1 %{buildroot}/%{_mandir}/man1/2ping6.1
|
||||
|
||||
%check
|
||||
%pyproject_check_import
|
||||
%{__python3} -mpytest
|
||||
|
||||
%post
|
||||
|
|
@ -41,10 +45,8 @@ install -Dp -m 0644 doc/2ping.1 %{buildroot}/%{_mandir}/man1/2ping6.1
|
|||
%postun
|
||||
%systemd_postun 2ping.service
|
||||
|
||||
%files
|
||||
%files -f %{pyproject_files}
|
||||
%doc ChangeLog.md README.md
|
||||
%license COPYING.md
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}6
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
|
|
@ -52,6 +54,9 @@ install -Dp -m 0644 doc/2ping.1 %{buildroot}/%{_mandir}/man1/2ping6.1
|
|||
%{_unitdir}/2ping.service
|
||||
|
||||
%changelog
|
||||
* Mon Nov 03 2025 Filipe Rosset <rosset.filipe@gmail.com> - 4.5.1-21
|
||||
- Spec cleanup and modernization fixes rhbz#2378513
|
||||
|
||||
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 4.5.1-20
|
||||
- Rebuilt for Python 3.14.0rc3 bytecode
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue