From 8cf285017c20c5eb56365446741e88fa13a633c5 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 6 Jul 2022 13:42:31 +0300 Subject: [PATCH] Add defination to disable doc --- SPECS/pbuilder.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/SPECS/pbuilder.spec b/SPECS/pbuilder.spec index fe685c7..58705d3 100644 --- a/SPECS/pbuilder.spec +++ b/SPECS/pbuilder.spec @@ -1,6 +1,8 @@ +%bcond_without doc + Name: pbuilder Version: 0.231 -Release: 4%{?dist} +Release: 4%{?dist}.alma Summary: Personal package builder for Debian packages License: GPLv2+ @@ -42,7 +44,9 @@ dependencies. %prep %autosetup -p1 - +%if %{without doc} +sed -i 's|$(MAKE) -C Documentation $@||g' Makefile +%endif # Adjust ccache path sed -i 's|/usr/lib/ccache|%{_libdir}/ccache|g' pbuilderrc @@ -54,11 +58,13 @@ sed -i 's|/usr/lib/ccache|%{_libdir}/ccache|g' pbuilderrc %install %make_install +%if %{without doc} # Man pages install -Dpm 0644 debuild-pbuilder.1 %{buildroot}%{_mandir}/man1/debuild-pbuilder.1 install -Dpm 0644 pdebuild.1 %{buildroot}%{_mandir}/man1/pdebuild.1 install -Dpm 0644 pbuilderrc.5 %{buildroot}%{_mandir}/man5/pbuilderrc.5 install -Dpm 0644 pbuilder.8 %{buildroot}%{_mandir}/man8/pbuilder.8 +%endif # Install directories install -d %{buildroot}%{_localstatedir}/cache/%{name} @@ -97,16 +103,22 @@ make check %{_prefix}/lib/pbuilder/ %{_datadir}/bash-completion/ %{_datadir}/pbuilder/ +%if %{without doc} %{_mandir}/man1/debuild-pbuilder.1* %{_mandir}/man1/pdebuild.1* %{_mandir}/man5/pbuilderrc.5* %{_mandir}/man8/pbuilder.8* %{_docdir}/pbuilder/ +%endif # The ccache folder needs to be owned by the pbuilder user %attr(0755,%{name},root) %{_localstatedir}/cache/%{name}/ccache %changelog +* Wed Jul 06 2022 Eduard Abdullin - 0.231-4.alma +- Use AlmaLinux patch +- Add defination to exclude docs + * Thu Jan 20 2022 Fedora Release Engineering - 0.231-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild