File gstreamer-0_10-plugins-farsight.spec of Package gstreamer-0_10-plugins-farsight

#
# spec file for package gstreamer-0_10-plugins-farsight (Version 0.12.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define BUILD_ORIG 1

Name:           gstreamer-0_10-plugins-farsight
%define _name gst-plugins-farsight
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
# Use rpmbuild -D 'BUILD_ORIG 1' -D 'BUILD_ORIG_ADDON 1' to build original code named *-orig.
BuildRequires:  farsight-devel gcc-c++ gconf2-devel gstreamer-0_10-devel gstreamer-0_10-plugins-base-devel libgsm-devel libjasper-devel libjingle-devel
# FIXME: evaluate libmimic jthread and j2k optional dependencies
Version:        0.12.9
Release:        2
License:        LGPL v2.1 or later
Url:            http://farsight.freedesktop.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Productivity/Multimedia/Other
Summary:        Gstreamer plugins for farsight
%if 0%{?BUILD_ORIG}
Source:         http://farsight.freedesktop.org/releases/%{_name}/%{_name}-%{version}.tar.bz2
%if ! 0%{?BUILD_ORIG_ADDON}
Provides:       %{name}-orig = %{version}
Obsoletes:      %{name}-orig < %{version}
%endif
%else
# WARNING: This is not a comment, but the real command to repack souce:
#%(bash %{_sourcedir}/%{name}-patch-source.sh %{_name}-%{version}.tar.gz)
Source:         %{_name}-%{version}-patched.tar.bz2
Provides:       patched_subset
%endif
Source1:        gstreamer-0_10-plugins-farsight-patch-source.sh
Patch:          jingle-c.patch
Patch1:         gst-plugins-farsight-enable-jasper.patch
Patch2:         gst-feature_m4.patch
%if 0%{?BUILD_ORIG}
Requires:       gstreamer-0_10 >= 0.10.13
%endif
# Name up to 10.3 and upstream name:
Provides:       gst-plugins-farsight = %{version}
Obsoletes:      gst-plugins-farsight < %{version}

%description
Gstreamer plugins for farsight



Authors:
--------
    Anatoly Yakovenko <aeyakovenko@yahoo.com>
    Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
    Philippe Khalaf <burgerman@users.sourceforge.net>
    Zhanglei Wang <filamoon@users.sourceforge.net>

%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%package orig
License:        LGPL v2.1 or later
Summary:        Gstreamer plugins for farsight
Group:          Productivity/Multimedia/Other
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}

%description orig
Gstreamer plugins for farsight



Authors:
--------
    Anatoly Yakovenko <aeyakovenko@yahoo.com>
    Andre Moreira Magalhaes <andre.magalhaes@indt.org.br>
    Philippe Khalaf <burgerman@users.sourceforge.net>
    Zhanglei Wang <filamoon@users.sourceforge.net>

%endif
%endif

%prep
%setup -q -n %{_name}-%{version}
%patch -p1
%patch1
%patch2

%build
autoreconf -f -i
%configure\
	--with-plugins=rtpmux,rtpdemux,rtpssrcdemux,rtpjitterbuffer,network-simulator,dtmf,rtppayloads\
%if 0%{?BUILD_ORIG}
	--enable-g729
%else
	--disable-g729
%endif
make %{?jobs:-j%jobs}

%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/gstreamer-0.10/*.*a

%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%files orig
%else

%files
%endif
%else

%files
%endif
%defattr(-,root,root)
# NEWS is empty
%doc AUTHORS COPYING COPYING.LIB ChangeLog README
%{_libdir}/gstreamer-0.10/libgst*.so

%changelog
* Mon Nov 10 2008 maw@suse.de
- Re-add the unpatched tarball.
* Thu Oct 23 2008 maw@suse.de
- Update to version 0.12.9:
  + Various changes; see ChangeLog for a blow by blow account.
* Thu Sep 04 2008 ro@suse.de
- patch-source: do not abort if targetfile exists
* Mon Jul 07 2008 maw@suse.de
- Add gst-feature_m4.patch.
* Wed Apr 16 2008 sbrabec@suse.cz
- Fixed Obsoletes (bnc#357153).
* Fri Mar 14 2008 aj@suse.de
- BuildRequire c++ compiler.
* Tue Jan 29 2008 sbrabec@suse.cz
- Updated to version 0.12.5:
  * many fixes and API changes, see ChangeLog for details
- Package renamed to gstreamer-0_10-plugins-farsight.
- Enabled all optional plugins.
- Patched to enable JPEG2000 using jasper.
- Dropped devel package with obsolete files.
- Source code cleanup (#237351).
* Tue Nov 06 2007 mauro@suse.de
- Fixed memset error for beta.
- Fixed an error about Requires: tag.
* Wed Jul 25 2007 mauro@suse.de
- Updated to 0.12.2
- Fix ref leak in rtpdemux, pads, rtp bin.
- Don't die on an invalid buffer.
* Tue Jun 05 2007 ro@suse.de
- exclude debug directory from filelist
* Sun Jun 03 2007 mauro@novell.com
- Adding to factory
openSUSE Build Service is sponsored by