9b7151d
Name:		qmmp
894c8b3
Version:	0.2.0
9b7151d
Release:	1%{?dist}
9b7151d
Summary:	Qt-based multimedia player
9b7151d
9b7151d
Group:		Applications/Multimedia
9b7151d
License:	GPLv2+
9b7151d
URL:		http://qmmp.ylsoftware.com/index_en.html
9b7151d
Source:		http://qmmp.ylsoftware.com/files/%{name}-%{version}.tar.bz2
9b7151d
Source2:	qmmp-filter-provides.sh
9b7151d
%define		_use_internal_dependency_generator 0
9b7151d
%define		__find_provides %{SOURCE2}
9b7151d
9b7151d
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
9b7151d
9b7151d
BuildRequires:	cmake flac-devel >= 1.1.3
9b7151d
BuildRequires:	jack-audio-connection-kit-devel >= 0.102.5
9b7151d
BuildRequires:	libmpcdec-devel >= 1.2.2 libvorbis-devel libogg-devel
9b7151d
BuildRequires:	libsamplerate-devel alsa-lib-devel taglib-devel
9b7151d
BuildRequires:	qt4-devel >= 4.2 desktop-file-utils
894c8b3
BuildRequires:	libsndfile-devel wavpack-devel pulseaudio-libs-devel
6355193
BuildRequires:	libmodplug-devel curl-devel
9b7151d
9b7151d
Requires(post):	/sbin/ldconfig
9b7151d
Requires(pre):	/sbin/ldconfig
9b7151d
894c8b3
%package devel
894c8b3
Summary:	Header files for qmmp
894c8b3
Group:		Development/Libraries
894c8b3
9b7151d
%description
9b7151d
This program is an audio-player, written with help of Qt library.
9b7151d
The user interface is similar to winamp or xmms.
9b7151d
Main opportunities:
9b7151d
894c8b3
	* Winamp and xmms skins support
894c8b3
	* plugins support
894c8b3
	* Ogg Vorbis support
894c8b3
	* native FLAC support
894c8b3
	* Musepack support
894c8b3
	* WavePack support
894c8b3
	* ModPlug support
894c8b3
	* PCM WAVE support
894c8b3
	* AlSA sound output
894c8b3
	* JACK sound output
894c8b3
	* OSS sound output
894c8b3
	* PulseAudio output
894c8b3
	* Last.fm scrobbler
894c8b3
	* D-Bus support
894c8b3
	* Spectrum Analyzer
894c8b3
	* sample rate conversion 
894c8b3
	* streaming support
894c8b3
894c8b3
%description devel
894c8b3
QMMP is Qt-based audio player. This package contains its header files.
9b7151d
9b7151d
%prep
9b7151d
%setup -q
9b7151d
9b7151d
%build
9b7151d
%cmake \
9b7151d
	-D USE_FFMPEG:BOOL=FALSE \
9b7151d
	-D USE_MAD:BOOL=FALSE \
9b7151d
	-D CMAKE_INSTALL_PREFIX=%{_prefix} \
9b7151d
	-D LIB_DIR=%{_lib} \
9b7151d
	./
9b7151d
make VERBOSE=1
9b7151d
9b7151d
%install
9b7151d
rm -rf %{buildroot}
9b7151d
make DESTDIR=%{buildroot} install
894c8b3
# Install desktop file
9b7151d
desktop-file-install --delete-original --vendor fedora --dir \
9b7151d
	%{buildroot}%{_datadir}/applications \
9b7151d
	%{buildroot}/%{_datadir}/applications/qmmp.desktop
9b7151d
9b7151d
%clean
9b7151d
rm -rf %{buildroot}
9b7151d
9b7151d
%files
9b7151d
%defattr(-,root,root,-)
9b7151d
%doc AUTHORS ChangeLog ChangeLog.rus COPYING README README.RUS
9b7151d
%{_bindir}/qmmp
9b7151d
%{_libdir}/qmmp
894c8b3
%{_libdir}/libqmmp*
9b7151d
%{_datadir}/applications/fedora-%{name}.desktop
894c8b3
%{_datadir}/icons/hicolor/
894c8b3
894c8b3
%files devel
894c8b3
%{_includedir}
9b7151d
9b7151d
%post
9b7151d
/sbin/ldconfig
9b7151d
touch --no-create %{_datadir}/icons/hicolor || :
9b7151d
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
9b7151d
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
9b7151d
fi
9b7151d
 
9b7151d
%postun
9b7151d
/sbin/ldconfig
9b7151d
touch --no-create %{_datadir}/icons/hicolor || :
9b7151d
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
9b7151d
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
9b7151d
fi
9b7151d
9b7151d
9b7151d
%changelog
894c8b3
* Tue Jul 29 2008 Karel Volny <kvolny@redhat.com> 0.2.0-1
894c8b3
- new version
894c8b3
- updated %%description to match upstream
894c8b3
- added BuildRequires: libsndfile-devel wavpack-devel pulseaudio-libs-devel
6355193
- added BuildRequires: libmodplug-devel curl-devel
894c8b3
- xpm icon is not used anymore (several pngs available)
894c8b3
- created devel subpackage
894c8b3
894c8b3
* Mon May 19 2008 Karel Volny <kvolny@redhat.com> 0.1.6-2
894c8b3
- fixed %%description not to include patent-encumbered formats (bug #447141)
894c8b3
6d48b2c
* Tue May 13 2008 Karel Volny <kvolny@redhat.com> 0.1.6-1
6d48b2c
- new version
6d48b2c
9b7151d
* Mon Dec 10 2007 Karel Volny <kvolny@redhat.com> 0.1.5-1
9b7151d
- new version
9b7151d
- simplified setting of library destination
9b7151d
- removed install-permissions patch, fixed upstream
9b7151d
9b7151d
* Wed Nov 21 2007 Karel Volny <kvolny@redhat.com> 0.1.4-5
9b7151d
- included Hans de Goede's patch for file permissions
9b7151d
9b7151d
* Mon Nov 19 2007 Karel Volny <kvolny@redhat.com> 0.1.4-4
9b7151d
- additional spec improvements as suggested in comment #10 to bug #280751
9b7151d
9b7151d
* Wed Sep 12 2007 Karel Volny <kvolny@redhat.com> 0.1.4-3
9b7151d
- additional spec improvements as suggested in comment #4 to bug #280751
9b7151d
9b7151d
* Tue Sep 11 2007 Karel Volny <kvolny@redhat.com> 0.1.4-2
9b7151d
- spec cleanup as suggested in comment #2 to bug #280751
9b7151d
9b7151d
* Mon Sep 10 2007 Karel Volny <kvolny@redhat.com> 0.1.4-1
9b7151d
- version bump
9b7151d
- install vendor-supplied .desktop file
9b7151d
9b7151d
* Thu Sep 6 2007 Karel Volny <kvolny@redhat.com> 0.1.3.1-2
9b7151d
- patched for multilib Fedora setup
9b7151d
- added .desktop entry and icon
9b7151d
- fixed spec to meet Fedora policies and rpm requirements
9b7151d
- removed ffmpeg and mad plugins to meet Fedora no-mp3 policy
9b7151d
9b7151d
* Wed Aug 1 2007 Eugene Pivnev <ti DOT eugene AT gmail DOT com> 1.1.9-1
9b7151d
- Initial release for Fedora 7