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