Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > b9d2134f00f1c5c0a644ada08288bba7 > files > 2

somaplayer-0.5.2-1mdk.src.rpm

%define name	somaplayer
%define version 0.5.2
%define rel	1
%define major	0
%define libname %mklibname %{name} %{major}

%define build_plf 0
%{?_with_plf: %global build_plf 1}

%if %build_plf
%define release %{rel}plf
%else
%define release %{rel}mdk
%endif

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Music player for MP3, Ogg, wav, audio CDs, MP3 streams, and Ogg streams
Group:		System/Servers
License:	GPL
URL:		http://soma.realityhacking.org
Source:		http://soma.realityhacking.org/src/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig
BuildRequires:	libopenssl-devel
BuildRequires:	libcdda-devel
BuildRequires:	libshout-devel
BuildRequires:	libao-devel
BuildRequires:	libmad-devel
BuildRequires:	libid3-devel
BuildRequires:	libid3tag-devel
BuildRequires:	libogg-devel
BuildRequires:	libvorbis-devel
BuildRequires:	libsndfile-devel
BuildRequires:	gtk+2-devel
BuildRequires:	zlib-devel
%if %build_plf
BuildRequires:	liblame-devel
%endif
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
somaplayer is music player for MP3, Ogg, wav, audio CDs, MP3 streams, and Ogg
streams. It is able to use the appropriate sound drivers or demons or to stream
directly to an Icecast server (Icecast2 or SHOUTcast) or to encode in MP3 and
Ogg Vorbis. It also acts as a sound daemon that is able to accept connections
from other somaplayers or any other sound player (xmms, mpg123, and others)
thanks to a special wrapper.

%if %build_plf
The PLF build provide additional support mp3, which is covered by software
patents
%endif

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{libname}-devel
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{libname}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep
%setup -q

%build
%configure2_5x
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
%find_lang %{name}

%clean 
rm -rf $RPM_BUILD_ROOT

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_bindir}/*
%{_mandir}/*/*
%{_datadir}/%{name}

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(-,root,root)
%{_libdir}/*.la
%{_libdir}/*.a
%{_libdir}/*.so
%{_includedir}/*.h

%changelog
* Mon Feb 07 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.5.2-1mdk
- 0.5.2

* Sat Jan 22 2005 Guillaume Rousse <guillomovitch@mandrake.org> 0.5.1-1mdk
- New release 0.5.1

* Sun Nov 28 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.4.4-1mdk
- New release 0.4.4
- really fix release tag

* Wed Oct 27 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.4.3-1mdk 
- New release 0.4.3

* Sun Sep 26 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.4.1-2mdk
- fix PLF build

* Tue Sep 21 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 0.4.1-1mdk
- New release 0.4.1

* Sun Sep  5 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 0.4.0-1mdk
- New release 0.4.0

* Sun Jul 18 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 0.2.2-1mdk
- New release 0.2.2
- patch merged upstream

* Sun Jul  4 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 0.2.1-1mdk
- New release 0.2.1

* Wed May 19 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.1.9-1mdk
- new version
- fix changelog

* Fri May 14 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.1.8-3mdk
- fix plf release

* Mon May 10 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.1.8-2mdk
- more buildrequires

* Sun May  9 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 0.1.8-1mdk
- New release 0.1.8

* Wed May 05 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.1.7-1mdk
- first mdk package