[packages/libical] package doxygen based libical apidocs
atler
atler at pld-linux.org
Sun Apr 28 14:39:45 CEST 2024
commit f94c0f03c529236db46f8d7f5c0cf6e28971b20c
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Apr 28 13:49:15 2024 +0200
package doxygen based libical apidocs
libical.spec | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
---
diff --git a/libical.spec b/libical.spec
index e760e77..e4529a4 100644
--- a/libical.spec
+++ b/libical.spec
@@ -22,6 +22,7 @@ URL: https://libical.github.io/libical/
BuildRequires: cmake >= 3.5.0
BuildRequires: db-devel
BuildRequires: db-cxx-devel
+%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: glib2-devel >= 1:2.38
BuildRequires: gobject-introspection-devel >= 0.6.7
%{?with_apidocs:BuildRequires: gtk-doc}
@@ -77,6 +78,18 @@ Static version of libical library.
%description static -l pl.UTF-8
Statyczna wersja biblioteki libical.
+%package apidocs
+Summary: libical API documentation
+Summary(pl.UTF-8): Dokumentacja API biblioteki libical
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for libical library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libical.
+
%package c++
Summary: C++ bindings for libical libraries
Summary(pl.UTF-8): Wiązania C++ dla bibliotek libical
@@ -218,6 +231,8 @@ cd build
%{__make} -j1
+%{?with_apidocs:%{__make} -j1 docs}
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -326,6 +341,12 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libicalvcal.a
%endif
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc build/apidocs/html/*
+%endif
+
%files c++
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libical_cxx.so.*.*.*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libical.git/commitdiff/f94c0f03c529236db46f8d7f5c0cf6e28971b20c
More information about the pld-cvs-commit
mailing list