[packages/gstreamer-rtsp-server/DEVEL-1.18] - updated to 1.18.5; now uses meson+hotdoc

qboosh qboosh at pld-linux.org
Mon Oct 11 21:37:49 CEST 2021


commit 4e4955a01d64b076b3ac27f1da97f54e7744e134
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Oct 11 21:42:42 2021 +0200

    - updated to 1.18.5; now uses meson+hotdoc

 gstreamer-rtsp-server.spec | 70 +++++++++++++++++++++++++---------------------
 1 file changed, 38 insertions(+), 32 deletions(-)
---
diff --git a/gstreamer-rtsp-server.spec b/gstreamer-rtsp-server.spec
index 469a2bc..f143936 100644
--- a/gstreamer-rtsp-server.spec
+++ b/gstreamer-rtsp-server.spec
@@ -1,20 +1,22 @@
-%define		gst_ver		1.16.3
-%define		gstpb_ver	1.16.3
-%define		gstpg_ver	1.16.3
-%define		gstpd_ver	1.16.3
+#
+# Conditional build:
+%bcond_without	apidocs	# API documentation
+
+%define		gst_ver		1.18.5
+%define		gstpb_ver	1.18.5
+%define		gstpg_ver	1.18.5
+%define		gstpd_ver	1.18.5
 Summary:	GstRTCP - an RTSP server built on top of GStreamer
 Summary(pl.UTF-8):	GstRTSP - serwer RTSP zbudowany w oparciu o GStreamera
 Name:		gstreamer-rtsp-server
-Version:	1.16.3
+Version:	1.18.5
 Release:	1
 License:	LGPL v2+
 Group:		Libraries
 Source0:	https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-%{version}.tar.xz
-# Source0-md5:	f0d8263c9d61f6f05b59ae0f676a6406
+# Source0-md5:	7f9cc2f69d0cf401fb14fe73624a28fe
 URL:		https://gstreamer.freedesktop.org/
-BuildRequires:	autoconf >= 2.69
-BuildRequires:	automake >= 1:1.14
-BuildRequires:	glib2-devel >= 1:2.40.0
+BuildRequires:	glib2-devel >= 1:2.44.0
 BuildRequires:	gobject-introspection-devel >= 1.31.1
 BuildRequires:	gstreamer-devel >= %{gst_ver}
 # only for message
@@ -22,14 +24,16 @@ BuildRequires:	gstreamer-devel >= %{gst_ver}
 BuildRequires:	gstreamer-plugins-base-devel >= %{gstpb_ver}
 # only for message
 #BuildRequires:	gstreamer-plugins-good-devel >= %{gstpg_ver}
-BuildRequires:	gtk-doc >= 1.12
+%{?with_apidocs:BuildRequires:	hotdoc >= 0.11.0}
 BuildRequires:	libcgroup-devel >= 0.26
-BuildRequires:	libtool >= 2:2.2.6
+BuildRequires:	meson >= 0.48
+BuildRequires:	ninja >= 1.5
 BuildRequires:	pkgconfig >= 1:0.9.0
 BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpmbuild(macros) >= 1.736
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
-Requires:	glib2 >= 1:2.40.0
+Requires:	glib2 >= 1:2.44.0
 Requires:	gstreamer >= %{gst_ver}
 Requires:	gstreamer-plugins-base >= %{gstpb_ver}
 Requires:	libcgroup-libs >= 0.26
@@ -47,7 +51,7 @@ Summary:	Header files for GstRTSPserver library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki GstRTSPserver
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	glib2-devel >= 1:2.40.0
+Requires:	glib2-devel >= 1:2.44.0
 Requires:	gstreamer-devel >= %{gst_ver}
 Requires:	gstreamer-plugins-base-devel >= %{gstpb_ver}
 Obsoletes:	gstreamer-rtsp-devel < 1.1
@@ -74,29 +78,28 @@ Dokumentacja API biblioteki GstRTSPserver.
 %setup -q -n gst-rtsp-server-%{version}
 
 %build
-%{__libtoolize}
-%{__aclocal} -I m4 -I common/m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
-	--enable-gtk-doc \
-	--disable-silent-rules \
-	--disable-static \
-	--with-html-dir=%{_gtkdocdir}
-
-%{__make}
+%meson build \
+	--default-library=shared \
+	%{!?with_apidocs:-Ddoc=false}
+
+%ninja_build -C build
+
+%if %{with apidocs}
+cd build/docs
+for component in gst-rtsp-server rtspclientsink ; do
+	LC_ALL=C.UTF-8 hotdoc run --conf-file ${component}-doc.json
+done
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build
 
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
-# glib-loadable module
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstrtspclientsink.la
+%if %{with apidocs}
+install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver}
+cp -pr build/docs/{gst-rtsp-server,rtspclientsink}-doc $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -120,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/gstreamer-rtsp-server-1.0.pc
 %{_datadir}/gir-1.0/GstRtspServer-1.0.gir
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
-%{_gtkdocdir}/gst-rtsp-server-1.0
+%{_docdir}/gstreamer-%{gstmver}/gst-rtsp-server-doc
+%{_docdir}/gstreamer-%{gstmver}/rtspclientsink-doc
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gstreamer-rtsp-server.git/commitdiff/4e4955a01d64b076b3ac27f1da97f54e7744e134



More information about the pld-cvs-commit mailing list