File farsight.spec of Package farsight

#
# spec file for package farsight (Version 0.1.28)
#
# Copyright (c) 2009 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


Name:           farsight
BuildRequires:  gcc-c++ glib2-devel gstreamer-0_10-devel gstreamer-0_10-plugins-base-devel libjingle-devel
# For autoreconf:
BuildRequires:  gtk-doc
Version:        0.1.28
Release:        59
License:        LGPL v2.1 only
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       gstreamer-0_10 gstreamer-0_10-plugins-base libfarsight-0_1-3 = %{version}
Url:            http://farsight.freedesktop.org/
Group:          Productivity/Multimedia/Other
Summary:        Framework for Audio/Video Conferencing Protocols
Source:         farsight-%{version}.tar.bz2

%description
The Farsight project is an effort to create a framework to deal with
all known audio/video conferencing protocols. On one side it offers a
generic API that makes it possible to write plugins for different
streaming protocols, on the other side it offers an API for clients to
use those plugins.



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>
    Ole Andr. Vadla Ravn.s <oleavr@users.sourceforge.net>
    Rob Taylor <robtaylor@users.sourceforge.net>
    Stephen Welch <swelch53@users.sourceforge.net>

%package -n libfarsight-0_1-3
License:        GPL v2 only
Summary:        Framework To Deal With All Known Audio/Video Conferencing Protocols
Group:          System/Libraries
Requires:       %{name} >= %{version}

%description -n libfarsight-0_1-3
The Farsight project is an effort to create a framework to deal with
all known audio/video conferencing protocols. On one side it offers a
generic API that makes it possible to write plugins for different
streaming protocols, on the other side it offers an API for clients to
use those plugins.



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>
    Ole Andr. Vadla Ravn.s <oleavr@users.sourceforge.net>
    Rob Taylor <robtaylor@users.sourceforge.net>
    Stephen Welch <swelch53@users.sourceforge.net>

%package devel
License:        GPL v2 or later
Requires:       %{name} = %{version} pkgconfig glibc-devel glib2-devel gstreamer-0_10-devel
Summary:        Framework To Deal With All Known Audio/Video Conferencing Protocols
Group:          Development/Libraries/C and C++

%description devel
The Farsight project is an effort to create a framework to deal with
all known audio/video conferencing protocols. On one side it offers a
generic API that makes it possible to write plugins for different
streaming protocols, on the other side it offers an API for clients to
use those plugins.



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>
    Ole Andr. Vadla Ravn.s <oleavr@users.sourceforge.net>
    Rob Taylor <robtaylor@users.sourceforge.net>
    Stephen Welch <swelch53@users.sourceforge.net>

%package doc
License:        GPL v2 or later
Summary:        Framework To Deal With All Known Audio/Video Conferencing Protocols
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description doc
The Farsight project is an effort to create a framework to deal with
all known audio/video conferencing protocols. On one side it offers a
generic API that makes it possible to write plugins for different
streaming protocols, on the other side it offers an API for clients to
use those plugins.



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>
    Ole Andr. Vadla Ravn.s <oleavr@users.sourceforge.net>
    Rob Taylor <robtaylor@users.sourceforge.net>
    Stephen Welch <swelch53@users.sourceforge.net>

%prep
%setup -q -n %{name}-%{version}

%build
# FIXME: evaluate support for clinkc: http://sourceforge.net/projects/clinkc
# CyberLink for C is a UPnP library using C for small and embedded platforms
#
# FIXME:
# msnwebcam.h:26:40: error: farsight/farsight-protocol.h: No such file or directory
#	--enable-msnwebcam\
# msnavconf.h:26:40: error: farsight/farsight-protocol.h: No such file or directory
#	--enable-msnavconf\
# yahoowebcam.h:26:40: error: farsight/farsight-protocol.h: No such file or directory
#	--enable-yahoowebcam
%configure\
	--disable-static \
	--enable-gtk-doc
make %{?jobs:-j%jobs}

%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/farsight-0.1-3/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libfarsight-0_1-3 -p /sbin/ldconfig

%postun -n libfarsight-0_1-3 -p /sbin/ldconfig

%files
%defattr(-,root,root)
# NEWS is empty
%doc AUTHORS COPYING ChangeLog README TODO
%dir %{_sysconfdir}/farsight
%config %{_sysconfdir}/farsight/gstelements.conf
%config %{_sysconfdir}/farsight/gstcodecs.conf

%files -n libfarsight-0_1-3
%defattr(-,root,root)
%{_libdir}/libfarsight*.so.*
%dir %{_libdir}/farsight-0.1-3
%{_libdir}/farsight-0.1-3/*.so

%files devel
%defattr(-,root,root)
%{_includedir}/farsight-0.1
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/farsight

%changelog
* Mon Jul 07 2008 maw@suse.de
- Update to version 0.1.28:
  + Misc fixes and improvements.
* Mon Jul 07 2008 maw@suse.de
- Remove autoreconf call
- Make the farsight-devel require gstreamer-0_10-devel, not
  the deprecated gstreamer010-devel.
* Mon Mar 31 2008 vuntz@suse.de
- Update to version 0.1.26
- Remove farsight-gcc42.patch (fixed upstream)
- Rename libfarsight-0_1-2 to libfarsight-0_1-3.
* Thu Feb 28 2008 coolo@suse.de
- fix buildrequires
* Wed Jan 30 2008 ro@suse.de
- fixed: overlooked another "." in the requires
* Wed Jan 30 2008 ro@suse.de
- don't use "." in package name, rename to libfarsight-0_1-2
* Fri Jan 25 2008 sbrabec@suse.cz
- Updated to version 0.1.25:
  * Many bug fixes, see ChangeLog for more.
  * Added default gstcodecs.conf file.
- Split package according to shared library packaging policy.
* Thu Dec 27 2007 crrodriguez@suse.de
- fix library-without-ldconfig-postun
* Thu Jul 26 2007 mauro@suse.de
- Updated to version 0.1.21
- Fixed the doc subpackage
* Wed Jun 13 2007 ro@suse.de
- fix build with gcc-4.2
* Wed Apr 11 2007 btimothy@suse.de
- Building 0.1.15+20070411.112822 for updates recommended by
  Tester_ on #telepathy.
* Wed Apr 04 2007 maw@suse.de
- Don't build as root.  Duh.
* Tue Apr 03 2007 maw@suse.de
- New package.
openSUSE Build Service is sponsored by