e6ff7d5
Name:		qmmp
Karel Volný 6368b6b
Version:	0.4.2
fedc53a
Release:	1%{?dist}
e6ff7d5
Summary:	Qt-based multimedia player
e6ff7d5
e6ff7d5
Group:		Applications/Multimedia
e6ff7d5
License:	GPLv2+
e6ff7d5
URL:		http://qmmp.ylsoftware.com/index_en.html
e6ff7d5
Source:		http://qmmp.ylsoftware.com/files/%{name}-%{version}.tar.bz2
e6ff7d5
Source2:	qmmp-filter-provides.sh
e6ff7d5
%define		_use_internal_dependency_generator 0
e6ff7d5
%define		__find_provides %{SOURCE2}
e6ff7d5
e6ff7d5
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
e6ff7d5
e6ff7d5
BuildRequires:	cmake flac-devel >= 1.1.3
fedc53a
BuildRequires:	enca-devel
e6ff7d5
BuildRequires:	jack-audio-connection-kit-devel >= 0.102.5
63718af
BuildRequires:	libbs2b-devel
fedc53a
BuildRequires:	libcddb-devel
9f19a44
BuildRequires:	libcdio-devel
e6ff7d5
BuildRequires:	libmpcdec-devel >= 1.2.2 libvorbis-devel libogg-devel
9f19a44
BuildRequires:	libprojectM-devel
e6ff7d5
BuildRequires:	libsamplerate-devel alsa-lib-devel taglib-devel
241d7ae
BuildRequires:	qt-devel >= 4.2 desktop-file-utils
0accb3d
BuildRequires:	libsndfile-devel wavpack-devel pulseaudio-libs-devel
241d7ae
BuildRequires:	libmodplug-devel libcurl-devel openssl-devel
e6ff7d5
e6ff7d5
Requires(post):	/sbin/ldconfig
e6ff7d5
Requires(pre):	/sbin/ldconfig
e6ff7d5
0accb3d
%package devel
0accb3d
Summary:	Header files for qmmp
0accb3d
Group:		Development/Libraries
0accb3d
e6ff7d5
%description
e6ff7d5
This program is an audio-player, written with help of Qt library.
e6ff7d5
The user interface is similar to winamp or xmms.
e6ff7d5
Main opportunities:
e6ff7d5
0accb3d
	* Winamp and xmms skins support
0accb3d
	* plugins support
0accb3d
	* Ogg Vorbis support
0accb3d
	* native FLAC support
0accb3d
	* Musepack support
0accb3d
	* WavePack support
0accb3d
	* ModPlug support
0accb3d
	* PCM WAVE support
9f19a44
	* CD Audio support
9f19a44
	* CUE sheet support
9f19a44
	* ALSA sound output
0accb3d
	* JACK sound output
0accb3d
	* OSS sound output
0accb3d
	* PulseAudio output
9f19a44
	* Last.fm/Libre.fm scrobbler
0accb3d
	* D-Bus support
0accb3d
	* Spectrum Analyzer
9f19a44
	* projectM visualization
9f19a44
	* sample rate conversion
9f19a44
	* bs2b dsp effect
0accb3d
	* streaming support
9f19a44
	* removable device detection
9f19a44
	* MPRIS support
9f19a44
	* global hotkey support
9f19a44
	* lyrics support
0accb3d
0accb3d
%description devel
0accb3d
QMMP is Qt-based audio player. This package contains its header files.
e6ff7d5
e6ff7d5
%prep
e6ff7d5
%setup -q
e6ff7d5
fedc53a
e6ff7d5
%build
e6ff7d5
%cmake \
9f19a44
	-D USE_AAC:BOOL=FALSE \
e6ff7d5
	-D USE_FFMPEG:BOOL=FALSE \
e6ff7d5
	-D USE_MAD:BOOL=FALSE \
fedc53a
	-D USE_MMS:BOOL=FALSE \
9f19a44
	-D USE_MPLAYER:BOOL=FALSE \
e6ff7d5
	-D CMAKE_INSTALL_PREFIX=%{_prefix} \
e6ff7d5
	-D LIB_DIR=%{_lib} \
e6ff7d5
	./
1ea654e
make %{?_smp_mflags} VERBOSE=1
e6ff7d5
e6ff7d5
%install
e6ff7d5
rm -rf %{buildroot}
e6ff7d5
make DESTDIR=%{buildroot} install
0accb3d
# Install desktop file
e6ff7d5
desktop-file-install --delete-original --vendor fedora --dir \
e6ff7d5
	%{buildroot}%{_datadir}/applications \
e6ff7d5
	%{buildroot}/%{_datadir}/applications/qmmp.desktop
9f19a44
# new files since 0.3.0, using Vendor is deprecated, so just validate
9f19a44
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}_cue.desktop
9f19a44
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}_enqueue.desktop
e6ff7d5
e6ff7d5
%clean
e6ff7d5
rm -rf %{buildroot}
e6ff7d5
e6ff7d5
%files
e6ff7d5
%defattr(-,root,root,-)
e6ff7d5
%doc AUTHORS ChangeLog ChangeLog.rus COPYING README README.RUS
e6ff7d5
%{_bindir}/qmmp
e6ff7d5
%{_libdir}/qmmp
0accb3d
%{_libdir}/libqmmp*
e6ff7d5
%{_datadir}/applications/fedora-%{name}.desktop
9f19a44
%{_datadir}/applications/%{name}_cue.desktop
9f19a44
%{_datadir}/applications/%{name}_enqueue.desktop
0accb3d
%{_datadir}/icons/hicolor/
fedc53a
%{_datadir}/%{name}/
0accb3d
0accb3d
%files devel
bcd49e2
%{_includedir}/*
e6ff7d5
e6ff7d5
%post
e6ff7d5
/sbin/ldconfig
e6ff7d5
touch --no-create %{_datadir}/icons/hicolor || :
e6ff7d5
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
e6ff7d5
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
e6ff7d5
fi
e6ff7d5
 
e6ff7d5
%postun
e6ff7d5
/sbin/ldconfig
e6ff7d5
touch --no-create %{_datadir}/icons/hicolor || :
e6ff7d5
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
e6ff7d5
	%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
e6ff7d5
fi
e6ff7d5
e6ff7d5
e6ff7d5
%changelog
Karel Volný 6368b6b
* Mon Sep 13 2010 Karel Volný <kvolny@redhat.com> 0.4.2-1
Karel Volný 6368b6b
- new version
Karel Volný 6368b6b
- adds Japanese and Spanish translations
Karel Volný 6368b6b
- lot of fixes
Karel Volný 6368b6b
454f033
* Wed Jun 30 2010 Karel Volný <kvolny@redhat.com> 0.4.1-1
454f033
- new version
454f033
- adds Dutch translation
454f033
- lot of fixes
454f033
fedc53a
* Thu Jun 10 2010 Karel Volný <kvolny@redhat.com> 0.4.0-1
fedc53a
- new version
fedc53a
- core rewrites, lots of new plugins
fedc53a
- BuildRequires enca-devel, libcddb-devel
fedc53a
2b5d239
* Tue Jun  1 2010 Ville Skyttä <ville.skytta@iki.fi> - 0.3.4-2
2b5d239
- Rebuild.
2b5d239
8ecd62c
* Mon Apr 19 2010 Karel Volný <kvolny@redhat.com> 0.3.4-1
8ecd62c
- new version
8ecd62c
- fixes desktop file (yum warning issue), some other fixes
8ecd62c
d66c792
* Fri Apr 09 2010 Karel Volný <kvolny@redhat.com> 0.3.3-1
d66c792
- new version
d66c792
- adds Hungarian translation, some fixes
d66c792
afb8d3b
* Fri Jan 22 2010 Adrian Reber <adrian@lisas.de> 0.3.2-3
afb8d3b
- rebuild for new libcdio
afb8d3b
2651d6d
* Thu Jan 21 2010 Karel Volný <kvolny@redhat.com> 0.3.2-2
2651d6d
- rebuild for new libprojectM
2651d6d
07141aa
* Wed Jan 13 2010 Karel Volný <kvolny@redhat.com> 0.3.2-1
07141aa
- new version
07141aa
- projectM 2.0 compatible (WRT bug #551855)
07141aa
7e3e59b
* Wed Nov 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.3.1-2
7e3e59b
- rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI)
7e3e59b
c38a195
* Wed Nov 04 2009 Karel Volný <kvolny@redhat.com> 0.3.1-1
c38a195
- new version
c38a195
63718af
* Wed Sep 02 2009 Karel Volný <kvolny@redhat.com> 0.3.0-3
63718af
- add libbs2b support, as it got added to Fedora (see bug #519138)
63718af
a1978f0
* Thu Aug 27 2009 Tomas Mraz <tmraz@redhat.com> - 0.3.0-2
a1978f0
- rebuilt with new openssl
a1978f0
9f19a44
* Tue Aug 25 2009 Karel Volný <kvolny@redhat.com> - 0.3.0-1
9f19a44
- new version
9f19a44
- updated %%description to match upstream
9f19a44
- new plugins = new BuildRequires, new .desktop files
9f19a44
- AAC support disabled due to patent restrictions
9f19a44
- mplayer plugin disabled due to mplayer missing from Fedora
9f19a44
8da236e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-5
8da236e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8da236e
af366a0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
af366a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
af366a0
bcd49e2
* Thu Feb 05 2009 Karel Volny <kvolny@redhat.com> 0.2.3-3
bcd49e2
- do not own /usr/include in -devel subpackage (fixes bug #484098)
bcd49e2
22459e1
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> 0.2.3-2
22459e1
- rebuild with new openssl
22459e1
1ea654e
* Fri Dec 05 2008 Karel Volny <kvolny@redhat.com> 0.2.3-1
1ea654e
- new version
1ea654e
- added %%{?_smp_mflags} to make, as parallel build was fixed
1ea654e
aa45a30
* Tue Sep 02 2008 Karel Volny <kvolny@redhat.com> 0.2.2-1
aa45a30
- new version
aa45a30
241d7ae
* Wed Jul 30 2008 Karel Volny <kvolny@redhat.com> 0.2.0-1
0accb3d
- new version
0accb3d
- updated %%description to match upstream
0accb3d
- added BuildRequires: libsndfile-devel wavpack-devel pulseaudio-libs-devel
241d7ae
- added BuildRequires: libmodplug-devel libcurl-devel openssl-devel
0accb3d
- xpm icon is not used anymore (several pngs available)
0accb3d
- created devel subpackage
0accb3d
0accb3d
* Mon May 19 2008 Karel Volny <kvolny@redhat.com> 0.1.6-2
0accb3d
- fixed %%description not to include patent-encumbered formats (bug #447141)
0accb3d
7887031
* Tue May 13 2008 Karel Volny <kvolny@redhat.com> 0.1.6-1
7887031
- new version
7887031
0dff124
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.5-2
0dff124
- Autorebuild for GCC 4.3
0dff124
e6ff7d5
* Mon Dec 10 2007 Karel Volny <kvolny@redhat.com> 0.1.5-1
e6ff7d5
- new version
e6ff7d5
- simplified setting of library destination
e6ff7d5
- removed install-permissions patch, fixed upstream
e6ff7d5
e6ff7d5
* Wed Nov 21 2007 Karel Volny <kvolny@redhat.com> 0.1.4-5
e6ff7d5
- included Hans de Goede's patch for file permissions
e6ff7d5
e6ff7d5
* Mon Nov 19 2007 Karel Volny <kvolny@redhat.com> 0.1.4-4
e6ff7d5
- additional spec improvements as suggested in comment #10 to bug #280751
e6ff7d5
e6ff7d5
* Wed Sep 12 2007 Karel Volny <kvolny@redhat.com> 0.1.4-3
e6ff7d5
- additional spec improvements as suggested in comment #4 to bug #280751
e6ff7d5
e6ff7d5
* Tue Sep 11 2007 Karel Volny <kvolny@redhat.com> 0.1.4-2
e6ff7d5
- spec cleanup as suggested in comment #2 to bug #280751
e6ff7d5
e6ff7d5
* Mon Sep 10 2007 Karel Volny <kvolny@redhat.com> 0.1.4-1
e6ff7d5
- version bump
e6ff7d5
- install vendor-supplied .desktop file
e6ff7d5
e6ff7d5
* Thu Sep 6 2007 Karel Volny <kvolny@redhat.com> 0.1.3.1-2
e6ff7d5
- patched for multilib Fedora setup
e6ff7d5
- added .desktop entry and icon
e6ff7d5
- fixed spec to meet Fedora policies and rpm requirements
e6ff7d5
- removed ffmpeg and mad plugins to meet Fedora no-mp3 policy
e6ff7d5
e6ff7d5
* Wed Aug 1 2007 Eugene Pivnev <ti DOT eugene AT gmail DOT com> 1.1.9-1
e6ff7d5
- Initial release for Fedora 7