diff options
author | Sandro Bonazzola <sbonazzo@redhat.com> | 2023-05-29 13:33:44 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2023-05-31 13:31:28 -0400 |
commit | c559bc8ad9227075471f5ce80715101e525147a9 (patch) | |
tree | 0b31614c4a06aa52ab180dc7b825663cfdc55567 /sos.spec | |
parent | 6a59f7b72512017bf080ed0d38f6d3ef344ee545 (diff) | |
download | sos-c559bc8ad9227075471f5ce80715101e525147a9.tar.gz |
[specfile] new fedora guidelines
adapt the specfile to new fedora packaging guidelines.
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Diffstat (limited to 'sos.spec')
-rw-r--r-- | sos.spec | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -28,11 +28,25 @@ support technicians and developers. %prep %setup -qn %{name}-%{version} +%if 0%{?fedora} >= 39 +%generate_buildrequires +%pyproject_buildrequires +%endif + %build +%if 0%{?fedora} >= 39 +%pyproject_wheel +%else %py3_build +%endif %install +%if 0%{?fedora} >= 39 +%pyproject_install +%pyproject_save_files sos +%else %py3_install '--install-scripts=%{_sbindir}' +%endif install -d -m 755 %{buildroot}%{_sysconfdir}/%{name} install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/cleaner @@ -50,9 +64,15 @@ rm -rf %{buildroot}/usr/config/ # internationalization is currently broken. Uncomment this line once fixed. # %%files -f %%{name}.lang %files +%if 0%{?fedora} >= 39 +%{_bindir}/sos +%{_bindir}/sosreport +%{_bindir}/sos-collector +%else %{_sbindir}/sos %{_sbindir}/sosreport %{_sbindir}/sos-collector +%endif %dir /etc/sos/cleaner %dir /etc/sos/presets.d %dir /etc/sos/extras.d |