[packages/libupnp] add apidocs bcond
atler
atler at pld-linux.org
Tue Apr 23 12:23:39 CEST 2024
commit 3a2cde750cf4bf9107bf20758710fbdcb5c87c17
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Apr 23 11:22:36 2024 +0200
add apidocs bcond
libupnp.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libupnp.spec b/libupnp.spec
index bd0dc60..e3a746e 100644
--- a/libupnp.spec
+++ b/libupnp.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_without apidocs # API documentation
%bcond_without static_libs # static libraries
Summary: The Universal Plug and Play (UPnP) SDK for Linux
@@ -16,7 +17,7 @@ Patch1: %{name}-openssl.patch
URL: http://pupnp.sourceforge.net/
BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1:1.8
-BuildRequires: doxygen
+%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: libtool >= 2:1.5
BuildRequires: openssl-devel >= 0.9.8b
BuildRequires: pkgconfig
@@ -98,7 +99,7 @@ Dokumentacja API bibliotek upnp.
--disable-silent-rules \
%{__enable_disable static_libs static}
%{__make}
-%{__make} -C docs docs
+%{?with_apidocs:%{__make} -C docs docs}
%install
rm -rf $RPM_BUILD_ROOT
@@ -136,6 +137,8 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libupnp.a
%endif
+%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%doc docs/doxygen/html/*.{html,js,css,png}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libupnp.git/commitdiff/3a2cde750cf4bf9107bf20758710fbdcb5c87c17
More information about the pld-cvs-commit
mailing list