]> git.pld-linux.org Git - packages/wpebackend-fdo.git/commitdiff
- build apidocs auto/th/wpebackend-fdo-1.10.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 16 Aug 2021 19:48:53 +0000 (21:48 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 16 Aug 2021 19:48:53 +0000 (21:48 +0200)
wpebackend-fdo.spec

index 01cf77dad7597e3348bff7f2ea35568d32d50cc1..7172d49ea3c7a76d59b595a68b1b438b5957d50d 100644 (file)
@@ -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
This page took 0.115556 seconds and 4 git commands to generate.