2012-03-23 14:48:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package qmmp
|
|
|
|
#
|
2013-01-11 15:24:13 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-03-23 14:48:37 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-07-01 01:44:15 +02:00
|
|
|
%bcond_with ffmpeg
|
|
|
|
%bcond_with mad
|
|
|
|
%bcond_with faad
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%define soname 0
|
|
|
|
|
|
|
|
Name: qmmp
|
2013-01-11 15:24:13 +01:00
|
|
|
Version: 0.6.6
|
2012-03-23 14:48:37 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: XMMS-like audio player
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Multimedia/Sound/Players
|
2012-05-26 13:01:10 +02:00
|
|
|
Url: http://qmmp.ylsoftware.com/
|
|
|
|
Source0: http://qmmp.googlecode.com/files/qmmp-%{version}.tar.bz2
|
2012-07-24 01:10:12 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE qmmp-0.6.1-default_pulse.patch reddwarf@opensuse.org -- Use PulseAudio instead of ALSA by default
|
2012-08-22 17:54:28 +02:00
|
|
|
Patch0: qmmp-0.6.1-default_pulse.patch
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: cmake
|
2012-05-26 13:01:10 +02:00
|
|
|
BuildRequires: desktop-file-utils
|
2012-03-23 14:48:37 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: libmpcdec-devel
|
|
|
|
BuildRequires: pkgconfig(QtCore)
|
|
|
|
BuildRequires: pkgconfig(QtDBus)
|
|
|
|
BuildRequires: pkgconfig(QtGui)
|
|
|
|
BuildRequires: pkgconfig(QtNetwork)
|
|
|
|
BuildRequires: pkgconfig(QtOpenGL)
|
|
|
|
BuildRequires: pkgconfig(QtXml)
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(enca) >= 1.9
|
|
|
|
BuildRequires: pkgconfig(flac)
|
|
|
|
# Standard Jack version is not new enough until openSUSE 12.1
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: pkgconfig(jack)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(libbs2b)
|
|
|
|
BuildRequires: pkgconfig(libcddb)
|
|
|
|
BuildRequires: pkgconfig(libcdio)
|
|
|
|
BuildRequires: pkgconfig(libcdio_cdda)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libgme)
|
|
|
|
BuildRequires: pkgconfig(libmms)
|
|
|
|
BuildRequires: pkgconfig(libmodplug)
|
|
|
|
BuildRequires: pkgconfig(libprojectM)
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libpulse-simple)
|
|
|
|
BuildRequires: pkgconfig(samplerate)
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: pkgconfig(taglib)
|
|
|
|
BuildRequires: pkgconfig(vorbisfile)
|
|
|
|
BuildRequires: pkgconfig(wavpack)
|
|
|
|
%if %{with ffmpeg}
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
%endif
|
|
|
|
%if %{with mad}
|
|
|
|
BuildRequires: pkgconfig(mad)
|
|
|
|
%endif
|
|
|
|
%if %{with faad}
|
|
|
|
BuildRequires: libfaad-devel
|
|
|
|
%endif
|
2012-08-04 16:42:49 +02:00
|
|
|
Requires: qmmp(%{soname})(Input)
|
|
|
|
Requires: qmmp(%{soname})(Output)
|
|
|
|
Requires: qmmp(%{soname})(Ui)
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This program is an audio-player, written with help of Qt library. The program
|
|
|
|
has user interface, similar winamp or xmms.
|
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%package -n libqmmp%{soname}
|
2012-03-23 14:48:37 +01:00
|
|
|
Summary: Qmmp library
|
|
|
|
Group: System/Libraries
|
2012-05-26 13:01:10 +02:00
|
|
|
Recommends: libqmmp%{soname}-plugin-mplayer
|
|
|
|
Recommends: libqmmp%{soname}-plugins
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%description -n libqmmp%{soname}
|
2012-03-23 14:48:37 +01:00
|
|
|
Qmmp library.
|
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%package -n libqmmp%{soname}-plugins
|
|
|
|
Summary: Plugins for libqmmp
|
2012-03-23 14:48:37 +01:00
|
|
|
Group: System/Libraries
|
2012-08-04 16:42:49 +02:00
|
|
|
Provides: qmmp(%{soname})(Input)
|
|
|
|
Provides: qmmp(%{soname})(Output)
|
|
|
|
Provides: qmmp(%{soname})(Ui)
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%description -n libqmmp%{soname}-plugins
|
|
|
|
Plugins for libqmmp.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%package -n libqmmp%{soname}-plugin-mplayer
|
|
|
|
Summary: MPlayer plugin for libqmmp
|
2012-03-23 14:48:37 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{_bindir}/mplayer
|
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%description -n libqmmp%{soname}-plugin-mplayer
|
|
|
|
MPlayer plugin for libqmmp.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%package -n libqmmp-devel
|
|
|
|
Summary: Development files for libqmmp
|
2012-03-23 14:48:37 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-05-26 13:01:10 +02:00
|
|
|
Requires: libqmmp%{soname} = %{version}
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%description -n libqmmp-devel
|
|
|
|
Development files for libqmmp.
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-05-26 18:24:26 +02:00
|
|
|
%patch0
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
export CFLAGS='%{optflags}'
|
|
|
|
export CXXFLAGS='%{optflags}'
|
2013-01-11 15:24:13 +01:00
|
|
|
cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DLIB_DIR=%{_lib} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
|
|
|
-DUSE_HAL=FALSE \
|
|
|
|
-DUSE_OSS=FALSE \
|
|
|
|
-DUSE_OSS4=FALSE \
|
|
|
|
..
|
2012-05-26 13:01:10 +02:00
|
|
|
make %{?_smp_mflags}
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
cd build
|
|
|
|
%make_install
|
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%desktop_database_post
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
|
|
|
|
%post -n libqmmp%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libqmmp%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libqmmp%{soname}-plugins
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun -n libqmmp%{soname}-plugins
|
|
|
|
%desktop_database_postun
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc AUTHORS ChangeLog COPYING README
|
2012-05-26 13:01:10 +02:00
|
|
|
%attr(0755,root,root) %{_bindir}/qmmp
|
|
|
|
%{_datadir}/qmmp
|
|
|
|
%{_datadir}/applications/qmmp.desktop
|
|
|
|
%{_datadir}/applications/qmmp_enqueue.desktop
|
2012-07-01 01:43:03 +02:00
|
|
|
%{_datadir}/applications/qmmp_dir.desktop
|
2012-05-26 13:01:10 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/qmmp*
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%files -n libqmmp%{soname}
|
2012-03-23 14:48:37 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2012-05-26 13:01:10 +02:00
|
|
|
%{_libdir}/libqmmp.so.%{soname}*
|
|
|
|
%{_libdir}/libqmmpui.so.%{soname}*
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%files -n libqmmp%{soname}-plugins
|
2012-03-23 14:48:37 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2012-05-26 13:01:10 +02:00
|
|
|
%{_libdir}/qmmp
|
|
|
|
%exclude %{_libdir}/qmmp/Engines/libmplayer.so
|
|
|
|
%{_datadir}/applications/qmmp_cue.desktop
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%files -n libqmmp%{soname}-plugin-mplayer
|
2012-03-23 14:48:37 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2012-05-26 13:01:10 +02:00
|
|
|
%{_libdir}/qmmp/Engines/libmplayer.so
|
2012-03-23 14:48:37 +01:00
|
|
|
|
2012-05-26 13:01:10 +02:00
|
|
|
%files -n libqmmp-devel
|
2012-03-23 14:48:37 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2012-05-26 13:01:10 +02:00
|
|
|
%{_includedir}/qmmp
|
|
|
|
%{_includedir}/qmmpui
|
|
|
|
%{_libdir}/libqmmp.so
|
|
|
|
%{_libdir}/libqmmpui.so
|
2012-07-01 01:43:03 +02:00
|
|
|
%{_libdir}/pkgconfig/qmmp.pc
|
|
|
|
%{_libdir}/pkgconfig/qmmpui.pc
|
2012-03-23 14:48:37 +01:00
|
|
|
|
|
|
|
%changelog
|