]> git.pld-linux.org Git - packages/libupnp.git/commitdiff
add apidocs bcond master auto/th/libupnp-1.14.19-1
authorJan Palus <atler@pld-linux.org>
Tue, 23 Apr 2024 09:22:36 +0000 (11:22 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 23 Apr 2024 09:22:36 +0000 (11:22 +0200)
libupnp.spec

index bd0dc605fc1fe03891070a426b023e19f7d6a970..e3a746e0af10818be58f97fe1544c1546a440c4e 100644 (file)
@@ -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
This page took 0.144365 seconds and 4 git commands to generate.