From: Jakub Bogusz Date: Mon, 16 Aug 2021 19:48:53 +0000 (+0200) Subject: - build apidocs X-Git-Tag: auto/th/wpebackend-fdo-1.10.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=0041e46699909f43e57ed23decace422155e9412;p=packages%2Fwpebackend-fdo.git - build apidocs --- diff --git a/wpebackend-fdo.spec b/wpebackend-fdo.spec index 01cf77d..7172d49 100644 --- a/wpebackend-fdo.spec +++ b/wpebackend-fdo.spec @@ -1,4 +1,7 @@ -# TODO: apidocs (BR: hotdoc, like libwpe.spec) +# +# Conditional build: +%bcond_without apidocs # API documentation + Summary: A WPE backend designed for Linux desktop systems Summary(pl.UTF-8): Backend WPE zaprojektowany dla biurkowych systemów linuksowych Name: wpebackend-fdo @@ -11,12 +14,14 @@ Source0: https://wpewebkit.org/releases/%{name}-%{version}.tar.xz URL: https://wpewebkit.org/ BuildRequires: EGL-devel BuildRequires: glib2-devel >= 2.0 +%{?with_apidocs:BuildRequires: hotdoc} BuildRequires: libepoxy-devel BuildRequires: libstdc++-devel >= 6:4.7 BuildRequires: libwpe-devel >= 1.10.0 BuildRequires: meson >= 0.49 BuildRequires: ninja >= 1.5 BuildRequires: pkgconfig +BuildRequires: rpm-build >= 4.6 BuildRequires: rpmbuild(macros) >= 1.736 BuildRequires: wayland-devel >= 1.10 BuildRequires: wayland-egl-devel >= 1.10 @@ -42,11 +47,24 @@ Header files for WPEBackend-fdo library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki WPEBackend-fdo. +%package apidocs +Summary: API documentation for WPEBackend-fdo library +Summary(pl.UTF-8): Dokumentacja API biblioteki WPEBackend-fdo +Group: Documentation +BuildArch: noarch + +%description apidocs +API documentation for WPEBackend-fdo library. + +%description apidocs -l pl.UTF-8 +Dokumentacja API biblioteki WPEBackend-fdo. + %prep %setup -q %build -%meson build +%meson build \ + %{?with_apidocs:-Dbuild_docs=true} %ninja_build -C build @@ -72,3 +90,9 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/libWPEBackend-fdo-1.0.so %{_includedir}/wpe-fdo-1.0 %{_pkgconfigdir}/wpebackend-fdo-1.0.pc + +%if %{with apidocs} +%files apidocs +%defattr(644,root,root,755) +%{_docdir}/WPEBackend-fdo +%endif