[packages/farsight] - updated URLs, package names, dependencies - added am patch (fixes aclocal endless loop with memory

qboosh qboosh at pld-linux.org
Sun Mar 7 21:44:30 CET 2021


commit 4dd6940f498ef0f8fb7039b2e897556ea275bd98
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 7 21:45:26 2021 +0100

    - updated URLs, package names, dependencies
    - added am patch (fixes aclocal endless loop with memory consumption)

 farsight-am.patch | 14 +++++++++++++
 farsight.spec     | 61 +++++++++++++++++++++++++++++++++++++++++--------------
 2 files changed, 60 insertions(+), 15 deletions(-)
---
diff --git a/farsight.spec b/farsight.spec
index 885324d..e56827f 100644
--- a/farsight.spec
+++ b/farsight.spec
@@ -1,33 +1,54 @@
 #
-Summary:	Farsight library
+# Conditional build:
+%bcond_without	apidocs		# API documentation
+%bcond_without	static_libs	# static library
+
+Summary:	FarSight - universal audio/video conference tool for Instant Messengers
+Summary(pl.UTF-8):	FarSight - uniwersalne narzędzie do konferencji audio/video dla komunikatorów
 Name:		farsight
 Version:	0.1.28
 Release:	1
-License:	LGPL
-Group:		Development/Libraries
-Source0:	http://farsight.freedesktop.org/releases/farsight/%{name}-%{version}.tar.gz
+License:	LGPL v2+
+Group:		Libraries
+Source0:	https://www.freedesktop.org/software/farstream/releases/obsolete/farsight/%{name}-%{version}.tar.gz
 # Source0-md5:	6439b749ecf83bb956a6c88a7843343e
-URL:		http://farsight.freedesktop.org/
-BuildRequires:	autoconf
-BuildRequires:	automake
-BuildRequires:	check >= 0.9.4
+Patch0:		%{name}-am.patch
+URL:		https://www.freedesktop.org/wiki/Software/Farstream/
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake >= 1:1.8
+BuildRequires:	check-devel >= 0.9.4
+BuildRequires:	clinkc-devel
 BuildRequires:	glib2-devel >= 1:2.6.0
 BuildRequires:	gnet-devel
-BuildRequires:	gstreamer-devel >= 0.10.13
-BuildRequires:	gstreamer-plugins-base-devel
+BuildRequires:	gstreamer0.10-devel >= 0.10.13
+BuildRequires:	gstreamer0.10-plugins-base-devel >= 0.10.13
 BuildRequires:	gtk-doc >= 1.6
 BuildRequires:	libtool
 BuildRequires:	libjingle-devel >= 0.3.11
 BuildRequires:	pkgconfig
+%if %{with apidocs}
+BuildRequires:	ImageMagick
+BuildRequires:	ghostscript
+# pic2plot
+BuildRequires:	plotutils
+%endif
+Requires:	glib2 >= 1:2.6.0
+Requires:	gstreamer0.10 >= 0.10.13
+Requires:	gstreamer0.10-plugins-base >= 0.10.13
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+Farsight is a library to allow you to easily setup network media
+streaming, with various forms of NAT traversal. It has support for
+protocol plugins.
 
 %package devel
 Summary:	Header files for farsight library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki farsight
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	glib2-devel >= 1:2.6.0
+Requires:	gstreamer0.10-devel >= 0.10.13
 
 %description devel
 Header files for farsight library.
@@ -49,14 +70,16 @@ Statyczna biblioteka farsight.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
-	--enable-static
+	%{?with_static_libs:--enable-static}
 %{__make}
 
 %install
@@ -65,8 +88,13 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/farsight-0.1-3/lib*.a
-rm -f $RPM_BUILD_ROOT%{_libdir}/farsight-0.1-3/lib*.la
+# plugins
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/farsight-0.1-3/lib*.la
+%if %{with static_libs}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/farsight-0.1-3/lib*.a
+%endif
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfarsight-0.1.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -76,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-#%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+%doc AUTHORS ChangeLog README TODO
 %attr(755,root,root) %{_libdir}/libfarsight-0.1.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libfarsight-0.1.so.3
 %dir %{_sysconfdir}/farsight
@@ -85,10 +113,13 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/farsight-0.1-3/lib*.so
 
 %files devel
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libfarsight-0.1.so
-%{_libdir}/libfarsight-0.1.la
 %{_includedir}/farsight-0.1
 %{_pkgconfigdir}/farsight-0.1.pc
 
+%if %{with static_libs}
 %files static
+%defattr(644,root,root,755)
 %{_libdir}/libfarsight-0.1.a
+%endif
diff --git a/farsight-am.patch b/farsight-am.patch
new file mode 100644
index 0000000..3768d0d
--- /dev/null
+++ b/farsight-am.patch
@@ -0,0 +1,14 @@
+--- farsight-0.1.28/m4/gst-feature.m4.orig	2008-02-18 20:29:49.000000000 +0100
++++ farsight-0.1.28/m4/gst-feature.m4	2021-03-04 19:49:05.015932148 +0100
+@@ -46,10 +46,10 @@
+ dnl GST_PLUGINS_NO will contain those that won't be built
+ 
+ AC_DEFUN([GST_CHECK_FEATURE],
++[dnl
+ AC_MSG_NOTICE(***)
+ AC_MSG_NOTICE(*** checking plugin: [$3] ***)
+ AC_MSG_NOTICE(***)
+-[dnl
+ builtin(define, [gst_endisable], ifelse($5, [disabled], [enable], [disable]))dnl
+ dnl if it is set to NO, then don't even consider it for building
+ NOUSE=
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/farsight.git/commitdiff/4dd6940f498ef0f8fb7039b2e897556ea275bd98



More information about the pld-cvs-commit mailing list