%define snapshot_id 4699cda2ad6a1cb36c49bc8d07aace2d1b795edf %define snapshot_date 20050916 Name: xmms2 Version: 0.1 Release: 1.n0i.1.git%{snapshot_date} Summary: XMMS2 is a redesign of the XMMS music player Group: Applications/Multimedia License: GPL URL: http://xmms2.xmms.se/ Source0: http://git.xmms.se/snapshot.cgi/xmms2-devel.git-snapshot-HEAD.tar.bz2 #Source0: http://prdownloads.sourceforge.net/xmms2/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: scons python-devel glib2-devel libmad-devel sqlite-devel # these are "optional" but what's the use without'em ;-) BuildRequires: curl-devel libvorbis-devel alsa-lib-devel ruby-devel %description XMMS2 is a redesign of the XMMS music player. It features a client-server model, allowing multiple (even simultaneous!) user interfaces, both textual and graphical. All common audio formats are supported using plugins. On top of this, there is a flexible media library to organize your music. %package devel Summary: Header and object files for development using XMMS2 Group: Development/Libraries Requires: %{name} = %{version} %description devel XMMS2 is a redesign of the XMMS music player. It features a client-server model, allowing multiple (even simultaneous!) user interfaces, both textual and graphical. All common audio formats are supported using plugins. On top of this, there is a flexible media library to organize your music. This package contains the header and object files necessary for developing XMMS2 plugins. %package ruby Summary: Ruby bindings for XMMS2 Group: Development/Libraries Requires: %{name} = %{version} %description ruby XMMS2 is a redesign of the XMMS music player. It features a client-server model, allowing multiple (even simultaneous!) user interfaces, both textual and graphical. All common audio formats are supported using plugins. On top of this, there is a flexible media library to organize your music. This package contains files providing Ruby bindings for accessing XMM2. %prep %setup -n xmms2-devel.git-snapshot-%{snapshot_id} %build scons PREFIX=%{_prefix} MANDIR=%{_mandir} \ LINKFLAGS='-lm' CCFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %install %{__rm} -rf $RPM_BUILD_ROOT for i in doc/xmms* ; do iconv -f 'iso-8859-1' -t utf-8 < "$i" > "${i}_" %{__mv} -f "${i}_" "$i" done scons INSTALLDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -name "*.so" |xargs -r %{__strip} %{__strip} $RPM_BUILD_ROOT%{_bindir}/* %clean %{__rm} -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO %{_bindir}/* %{_libdir}/*.so.* %{_libdir}/xmms2 %{_datadir}/xmms2 %{_mandir}/man*/* %files devel %defattr(-,root,root,-) %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/pkgconfig/* %{_includedir}/* %files ruby %defattr(-,root,root,-) %{_libdir}/site_ruby/*/*/* %changelog * Wed Sep 21 2005 Marius FERARU 0.1-1.n0i.1.git20050916 - initial packaging