File mediastreamer2.spec of Package mediastreamer2
#
# spec file for package mediastreamer2
#
# Copyright (c) 2012 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/
#
Summary: Audio/Video real-time streaming
Name: mediastreamer2
%define lname libmediastreamer1
Version: 2.8.2
Release: 0
License: GPL-2.0+
Group: Productivity/Telephony/Utilities
URL: http://www.mediastreamer2.com
Source0: mediastreamer-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: libtool
BuildRequires: intltool
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xv)
BuildRequires: pkgconfig(theora)
BuildRequires: spandsp-devel
BuildRequires: libgsm-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libpulse)
BuildRequires: libortp-devel
BuildRequires: libv4l-devel
%description
Mediastreamer2 is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the oRTP library.
%package -n %lname
Summary: Audio/video real-time streaming library
Group: System/Libraries
%description -n %lname
Mediastreamer2 is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the oRTP library.
%package devel
Summary: Headers, libraries and docs for the mediastreamer2 library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
Mediastreamer2 is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the ortp library.
This package contains header files and development libraries needed to
develop programs using the mediastreamer2 library.
%prep
%setup -q -n mediastreamer-%{version}
%build
%configure --enable-shared --disable-video
CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS
CXXFLAGS="${CXXFLAGS:-%optflags}"; export CXXFLAGS
make %{?_smp_mflags}
%install
%makeinstall
%find_lang mediastreamer
rm -f "%buildroot/%_libdir"/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f mediastreamer.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/mediastream
%dir %{_datadir}/images
%{_datadir}/images/nowebcamCIF.jpg
%files -n %lname
%defattr(-,root,root)
%_libdir/libmediastreamer.so.1*
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mediastreamer2
%changelog