File gstreamer010-pulse.spec of Package gstreamer010-pulse

# Copyright (c) 2007 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de

# norootforbuild

%define _name		gst-pulse
%define gst_branch	0.10
%if %suse_version >= 1030
%define _prefix		/usr
%else
%define _prefix		/opt/gnome
%endif

Name:			gstreamer010-pulse
Version:		0.9.5
Release:		0.pm.1
Summary:		GStreamer 0.10 plugin for the PulseAudio sound server
Group:			Applications/Multimedia
License:		LGPL
URL:			http://0pointer.de/lennart/projects/gst-pulse/
Source:			http://0pointer.de/lennart/projects/gst-pulse/%{_name}-%{version}.tar.gz
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
BuildRequires:	gcc-c++
BuildRequires:	gstreamer010-devel
BuildRequires:	gstreamer010-plugins-base-devel
BuildRequires:	libpulse-devel
#BuildRequires:	liboil-devel
%if %suse_version >= 1010
BuildRequires:	mDNSResponder-lib
%endif
BuildRequires:	pkgconfig
#BuildRequires:	valgrind
Requires:		gstreamer010 >= %(rpm -q --queryformat '%{VERSION}' gstreamer010)
Requires:		gstreamer010-plugins-base

%description
A GStreamer 0.10 plugin for the PulseAudio sound server.

Author: Lennart Poettering <mztfgchyfr@0pointer.de>

%debug_package

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

%build
%configure \
	--disable-lynx
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

# Remove unneeded .la and .a files
%__rm -rf %{buildroot}%{_libdir}/gstreamer-%{gst_branch}/*.a
%__rm -rf %{buildroot}%{_libdir}/gstreamer-%{gst_branch}/*.la

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README ChangeLog LICENSE doc/*.html
%{_libdir}/gstreamer-%{gst_branch}/*.so

%changelog
* Wed Oct 31 2007 Toni Graffy <toni@links2linux.de> - 0.9.5-0.pm.1
- initial version 0.9.5
openSUSE Build Service is sponsored by