[packages/gstreamer/dev-1.18] - updated docs and packaging
qboosh
qboosh at pld-linux.org
Sun Jul 11 17:51:35 CEST 2021
commit d7ee216341e8073c678d2fe6981f7318935b4c5d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 11 17:54:39 2021 +0200
- updated docs and packaging
gstreamer.spec | 52 ++++++++++++++++++++++++++++++----------------------
1 file changed, 30 insertions(+), 22 deletions(-)
---
diff --git a/gstreamer.spec b/gstreamer.spec
index 1c392a5..88003c6 100644
--- a/gstreamer.spec
+++ b/gstreamer.spec
@@ -37,6 +37,7 @@ BuildRequires: ninja >= 1.5
BuildRequires: perl-base
BuildRequires: pkgconfig >= 1:0.9.0
BuildRequires: python3 >= 1:3.2
+BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.736
BuildRequires: sed >= 4.0
BuildRequires: tar >= 1:1.22
@@ -140,29 +141,16 @@ gst-launch.
%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' docs/gst-plugins-doc-cache-generator.py
%build
-%if 0
-# po/Makefile.in.in is modified
-#{__gettextize}
-%{__libtoolize}
-%{__aclocal} -I common/m4 -I m4 -I .
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
- --disable-examples \
- --disable-silent-rules \
- --disable-tests \
- --enable-gtk-doc \
- --with-html-dir=%{_gtkdocdir} \
- --enable-static
-
-LC_ALL=C.UTF-8 \
-%{__make}
-%else
%meson build \
%{?with_apidocs:-Ddoc=enabled}
%ninja_build -C build
+
+%if %{with apidocs}
+cd build/docs
+for component in base check controller coreelements coretracers gstreamer net ; do
+ LC_ALL=C.UTF-8 hotdoc run --conf-file ${component}-doc.json
+done
%endif
%install
@@ -175,6 +163,11 @@ rm -rf $RPM_BUILD_ROOT
%py3_comp $RPM_BUILD_ROOT%{_datadir}/gstreamer-1.0/gdb
%py3_ocomp $RPM_BUILD_ROOT%{_datadir}/gstreamer-1.0/gdb
+%if %{with apidocs}
+install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver}
+cp -pr build/docs/{base,check,controller,coreelements,coretracers,gstreamer,net}-doc $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver}
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -187,6 +180,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/gst-inspect-1.0
%attr(755,root,root) %{_bindir}/gst-launch-1.0
%attr(755,root,root) %{_bindir}/gst-stats-1.0
+%attr(755,root,root) %{_bindir}/gst-tester-1.0
%attr(755,root,root) %{_bindir}/gst-typefind-1.0
%attr(755,root,root) %{_libdir}/libgstbase-%{gstmver}.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgstbase-%{gstmver}.so.0
@@ -218,11 +212,18 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
+%if %{with apidocs}
+%attr(755,root,root) %{gstlibexecdir}/gst-hotdoc-plugins-scanner
+%attr(755,root,root) %{gstlibexecdir}/gst-plugins-doc-cache-generator
+%endif
%attr(755,root,root) %{_libdir}/libgstbase-%{gstmver}.so
%attr(755,root,root) %{_libdir}/libgstcheck-%{gstmver}.so
%attr(755,root,root) %{_libdir}/libgstcontroller-%{gstmver}.so
%attr(755,root,root) %{_libdir}/libgstnet-%{gstmver}.so
%attr(755,root,root) %{_libdir}/libgstreamer-%{gstmver}.so
+%dir %{gstlibdir}/pkgconfig
+%{gstlibdir}/pkgconfig/gstcoreelements.pc
+%{gstlibdir}/pkgconfig/gstcoretracers.pc
%dir %{gstincludedir}
%{gstincludedir}/gst
%{_pkgconfigdir}/gstreamer-%{gstmver}.pc
@@ -244,13 +245,20 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libgstcontroller-%{gstmver}.a
%{_libdir}/libgstnet-%{gstmver}.a
%{_libdir}/libgstreamer-%{gstmver}.a
+%{gstlibdir}/libgstcoreelements.a
+%{gstlibdir}/libgstcoretracers.a
%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
-%{_gtkdocdir}/gstreamer-%{gstmver}
-%{_gtkdocdir}/gstreamer-libs-%{gstmver}
-%{_gtkdocdir}/gstreamer-plugins-%{gstmver}
+%dir %{_docdir}/gstreamer-%{gstmver}
+%{_docdir}/gstreamer-%{gstmver}/base-doc
+%{_docdir}/gstreamer-%{gstmver}/check-doc
+%{_docdir}/gstreamer-%{gstmver}/controller-doc
+%{_docdir}/gstreamer-%{gstmver}/coreelements-doc
+%{_docdir}/gstreamer-%{gstmver}/coretracers-doc
+%{_docdir}/gstreamer-%{gstmver}/gstreamer-doc
+%{_docdir}/gstreamer-%{gstmver}/net-doc
%endif
%files gdb
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gstreamer.git/commitdiff/d7ee216341e8073c678d2fe6981f7318935b4c5d
More information about the pld-cvs-commit
mailing list