[packages/ipcalc] - added man bcond
qboosh
qboosh at pld-linux.org
Fri Oct 16 21:09:18 CEST 2026
commit fcb4592da99bb95898daa053f9daad1deef2fad7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 16 21:09:57 2026 +0200
- added man bcond
ipcalc.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ipcalc.spec b/ipcalc.spec
index fb76708..fc42305 100644
--- a/ipcalc.spec
+++ b/ipcalc.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without man # man page (requires ronn)
+
Summary: Address format change and calculation utility
Summary(pl.UTF-8): Narzędzie do zmiany formatu i przeliczania adresów
Name: ipcalc
@@ -13,7 +17,7 @@ BuildRequires: libmaxminddb-devel
BuildRequires: meson >= 0.49
BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
-#BuildRequires: ronn
+%{?with_man:BuildRequires: ronn}
BuildRequires: rpmbuild(macros) >= 2.042
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -54,4 +58,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README.md NEWS
%attr(755,root,root) /bin/ipcalc
-#%{_mandir}/man1/ipcalc.1*
+%if %{with man}
+%{_mandir}/man1/ipcalc.1*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ipcalc.git/commitdiff/fcb4592da99bb95898daa053f9daad1deef2fad7
More information about the pld-cvs-commit
mailing list