[packages/corosync/corosync-3: 13/14] - separated -apidocs

qboosh qboosh at pld-linux.org
Mon Jul 22 20:30:17 CEST 2024


commit 5941441dcf486ca30e44a309a1f146dce9fa6f43
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 3 22:08:00 2023 +0100

    - separated -apidocs

 corosync.spec | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/corosync.spec b/corosync.spec
index b48a95c..30e24a3 100644
--- a/corosync.spec
+++ b/corosync.spec
@@ -39,6 +39,7 @@ BuildRequires:	libtool >= 2:2.2.6
 BuildRequires:	nss-devel
 BuildRequires:	pkgconfig
 %{?with_vqsim:BuildRequires:	readline-devel}
+BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.644
 BuildRequires:	systemd-devel >= 1:209
 # only for cpghum test program
@@ -102,6 +103,18 @@ This package contains the Corosync static libraries.
 %description static -l pl.UTF-8
 Ten pakiet zawiera statyczne biblioteki Corosync.
 
+%package apidocs
+Summary:	API documentation for Corosync library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki Corosync
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for Corosync library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki Corosync.
+
 %package -n mibs-corosync
 Summary:	Corosync SNMP MIB data
 Summary(pl.UTF-8):	Dane SNMP MIB dla Corosync
@@ -265,7 +278,6 @@ fi
 
 %files devel
 %defattr(644,root,root,755)
-%{?with_apidocs:%doc doc/api/html/*}
 %attr(755,root,root) %{_libdir}/libcfg.so
 %attr(755,root,root) %{_libdir}/libcmap.so
 %attr(755,root,root) %{_libdir}/libcorosync_common.so
@@ -300,6 +312,12 @@ fi
 %{_libdir}/libvotequorum.a
 %endif
 
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/api/html/*.{css,html,js,png}
+%endif
+
 %if %{with snmp}
 %files -n mibs-corosync
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/corosync.git/commitdiff/c3f08f494de4e2ee6b949f193a18ca9dfd464462



More information about the pld-cvs-commit mailing list