File live.spec of Package live555
#
# spec file for package Live555 (SVN Version 02/05/2008)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#
# norootforbuild
Name: live555
Version: latest
Release: SOAD.1
License: GPL
URL: http://www.live555.com/liveMedia/
Provides: live
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.gz
Source1: live555.rpmlintrc
Packager: sda00 <sda00@himki.net>
Group: Productivity/Multimedia/Streaming
Summary: RTSP/RTP streaming support for MPlayer
#%ifarch %ix86
BuildRequires: gcc-c++ gcc iputils wget
#%endif
#%if %suse_version > 1100
#BuildRequires: -post-build-checks -brp-check-suse
#%endif
%description
This code forms a set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These libraries - which can be compiled for Unix (including Linux and Mac OS X), Windows, and QNX (and other POSIX-compliant systems) - can be used to build streaming applications. The libraries are already being used to implement applications such as "the LIVE555 Media Server" (a RTSP server application), "liveCaster" and "playRTPMPEG" (for streaming MP3 audio using RTP/RTCP), and "vobStreamer" (for streaming DVD content using RTP/RTCP/RTSP). The libraries can also be used to stream, receive, and process MPEG, H.263+ or JPEG video, and several audio codecs. They can easily be extended to support additional (audio and/or video) codecs, and can also be used to build basic RTSP or SIP clients and servers, and have been used to add streaming support to existing media player applications, such as "VLC" and "MPlayer".
You can always update your live555 to the current state just by rebuilding the .spec file:
rpmbuild -bb live.spec
or by rebuilding the .src.rpm file itself:
rpmbuild --rebuild live-latest*.src.rpm
The new compiled .rpm will be available in /usr/src/packages/RPM/_your_PC_type/
Prepared by SOAD project.
%prep
rm -rf "$RPM_BUILD_ROOT"
#%setup
%{?suse_update_config:%{suse_update_config -f}}
%build
%install
## Function declaration
build_without_uninstall ()
{
mkdir -p %{buildroot}%{_libdir}
cd live
./genMakefiles linux
make || return 1
cd ../
cp -rf ./live %{buildroot}%{_libdir}/
}
## Getting the sources
# http://www.live555.com/liveMedia/public/live555-latest.tar.gz
if [ "`ping www.live555.com -c 10 2>&1 | grep icmp_seq`" != "" ] ; then
wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
tar xf live555-latest.tar.gz
else
tar xfm $RPM_SOURCE_DIR/%{name}-%{version}.tar.gz
fi
## Build all components
build_without_uninstall
if [ -e %{buildroot}%{_libdir}/live/config.armlinux.orig ] ; then
rm %{buildroot}%{_libdir}/live/config.armlinux.orig
fi
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%dir %{_libdir}/live
%{_libdir}/live/*
%changelog
* Thu Dec 11 2008 adoptation for oS-11.1 by <sda00@himki.net>
- latest sources are compiled (package is updated)
* Thu May 2 2008 first build for SOAD project <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files