This commit is contained in:
parent
6f7b34fd1e
commit
baf6b2ff27
@ -18,6 +18,7 @@ Fri Oct 2 19:26:50 UTC 2015 - sor.alexei@meowr.ru
|
|||||||
* Update Greek translation.
|
* Update Greek translation.
|
||||||
- Rename libqmmp1-plugins to libqmmp-plugins: can't be
|
- Rename libqmmp1-plugins to libqmmp-plugins: can't be
|
||||||
multiversioned.
|
multiversioned.
|
||||||
|
- Only install libqmmp-plugin-mplayer in PMBS.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 6 10:32:23 UTC 2015 - sor.alexei@meowr.ru
|
Sun Sep 6 10:32:23 UTC 2015 - sor.alexei@meowr.ru
|
||||||
|
140
qmmp.spec
140
qmmp.spec
@ -17,22 +17,20 @@
|
|||||||
|
|
||||||
|
|
||||||
%define sover 1
|
%define sover 1
|
||||||
%bcond_with ffmpeg
|
%bcond_with restricted
|
||||||
%bcond_with mad
|
|
||||||
%bcond_with faad
|
|
||||||
Name: qmmp
|
Name: qmmp
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: XMMS-like audio player
|
Summary: Qt-based Multimedia Player
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Multimedia/Sound/Players
|
Group: Productivity/Multimedia/Sound/Players
|
||||||
Url: http://qmmp.ylsoftware.com/
|
Url: http://qmmp.ylsoftware.com/
|
||||||
Source: http://qmmp.ylsoftware.com/files/qmmp-%{version}.tar.bz2
|
Source: http://qmmp.ylsoftware.com/files/%{name}-%{version}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM qmmp-fix_cdda_version.patch pascal.bleser@opensuse.org -- Fix header detection for cdparanoia cdda.h.
|
# PATCH-FIX-UPSTREAM qmmp-fix_cdda_version.patch pascal.bleser@opensuse.org -- Fix header detection for cdparanoia cdda.h.
|
||||||
Patch0: qmmp-fix_cdda_version.patch
|
Patch0: %{name}-fix_cdda_version.patch
|
||||||
# PATCH-FEATURE-OPENSUSE qmmp-default_pulse.patch reddwarf@opensuse.org -- Use PulseAudio instead of ALSA by default.
|
# PATCH-FEATURE-OPENSUSE qmmp-default_pulse.patch reddwarf@opensuse.org -- Use PulseAudio instead of ALSA by default.
|
||||||
Patch1: qmmp-default-pulse.patch
|
Patch1: %{name}-default-pulse.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -72,58 +70,65 @@ BuildRequires: pkgconfig(sndfile)
|
|||||||
BuildRequires: pkgconfig(taglib)
|
BuildRequires: pkgconfig(taglib)
|
||||||
BuildRequires: pkgconfig(vorbisfile)
|
BuildRequires: pkgconfig(vorbisfile)
|
||||||
BuildRequires: pkgconfig(wavpack)
|
BuildRequires: pkgconfig(wavpack)
|
||||||
Requires: qmmp(%{sover})(Input)
|
Requires: %{name}(%{sover})(Input)
|
||||||
Requires: qmmp(%{sover})(Output)
|
Requires: %{name}(%{sover})(Output)
|
||||||
Requires: qmmp(%{sover})(Ui)
|
Requires: %{name}(%{sover})(Ui)
|
||||||
%if %{with mad}
|
%if %{with rectricted}
|
||||||
BuildRequires: pkgconfig(mad)
|
|
||||||
%endif
|
|
||||||
%if %{with faad}
|
|
||||||
BuildRequires: libfaad-devel
|
BuildRequires: libfaad-devel
|
||||||
|
BuildRequires: pkgconfig(mad)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This program is an audio-player, written with help of Qt library. The program
|
This program is an audio-player, written with help of Qt library.
|
||||||
has user interface, similar winamp or xmms.
|
|
||||||
|
|
||||||
%package -n libqmmp%{sover}
|
%package -n lib%{name}%{sover}
|
||||||
Summary: Qmmp library
|
Summary: Qmmp library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Recommends: libqmmp-plugins
|
Recommends: lib%{name}-plugins
|
||||||
|
|
||||||
%description -n libqmmp%{sover}
|
%description -n lib%{name}%{sover}
|
||||||
Qmmp library.
|
This program is an audio-player, written with help of Qt library.
|
||||||
|
|
||||||
%package -n libqmmp-plugins
|
This package provides the Qmmp library.
|
||||||
|
|
||||||
|
%package -n lib%{name}-plugins
|
||||||
Summary: Plugins for libqmmp
|
Summary: Plugins for libqmmp
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
# Suggests instead of Recommends since MPlayer is a too big dependency.
|
# Suggests instead of Recommends since MPlayer is a too big dependency.
|
||||||
Suggests: libqmmp-plugin-mplayer
|
Suggests: lib%{name}-plugin-mplayer
|
||||||
# libqmmp0-plugins & qmmp-plugin-pack-simple-ui were last used in openSUSE 13.2 (in PMBS).
|
# libqmmp0-plugins & qmmp-plugin-pack-simple-ui were last used in openSUSE 13.2 (in PMBS).
|
||||||
Obsoletes: libqmmp0-plugins
|
Obsoletes: %{name}-plugin-pack-simple-ui < %{version}
|
||||||
Obsoletes: qmmp-plugin-pack-simple-ui < {version}
|
Obsoletes: lib%{name}0-plugins
|
||||||
Provides: qmmp-plugin-pack-simple-ui = %{version}
|
Provides: %{name}-plugin-pack-simple-ui = %{version}
|
||||||
Provides: qmmp(%{sover})(Input)
|
Provides: %{name}(%{sover})(Input)
|
||||||
Provides: qmmp(%{sover})(Output)
|
Provides: %{name}(%{sover})(Output)
|
||||||
Provides: qmmp(%{sover})(Ui)
|
Provides: %{name}(%{sover})(Ui)
|
||||||
|
|
||||||
%description -n libqmmp-plugins
|
%description -n lib%{name}-plugins
|
||||||
Plugins for libqmmp.
|
This program is an audio-player, written with help of Qt library.
|
||||||
|
|
||||||
%package -n libqmmp-plugin-mplayer
|
This package provides plugins for libqmmp.
|
||||||
|
|
||||||
|
%if %{with restricted}
|
||||||
|
%package -n lib%{name}-plugin-mplayer
|
||||||
Summary: MPlayer plugin for libqmmp
|
Summary: MPlayer plugin for libqmmp
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: %{_bindir}/mplayer
|
Requires: MPlayer
|
||||||
|
|
||||||
%description -n libqmmp-plugin-mplayer
|
%description -n lib%{name}-plugin-mplayer
|
||||||
MPlayer plugin for libqmmp.
|
This program is an audio-player, written with help of Qt library.
|
||||||
|
|
||||||
%package -n libqmmp-devel
|
This package provides MPlayer plugin for libqmmp.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%package -n lib%{name}-devel
|
||||||
Summary: Development files for libqmmp
|
Summary: Development files for libqmmp
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libqmmp%{sover} = %{version}
|
Requires: lib%{name}%{sover} = %{version}
|
||||||
|
|
||||||
|
%description -n lib%{name}-devel
|
||||||
|
This program is an audio-player, written with help of Qt library.
|
||||||
|
|
||||||
%description -n libqmmp-devel
|
|
||||||
Development files for libqmmp.
|
Development files for libqmmp.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -142,9 +147,12 @@ cmake \
|
|||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
|
||||||
-DLIB_DIR=%{_lib} \
|
-DLIB_DIR=%{_lib} \
|
||||||
-DUSE_HAL=FALSE \
|
-DUSE_HAL=OFF \
|
||||||
-DUSE_OSS=FALSE \
|
-DUSE_OSS=OFF \
|
||||||
-DUSE_OSS4=FALSE \
|
-DUSE_OSS4=OFF \
|
||||||
|
%if %{without restricted}
|
||||||
|
-DUSE_MPLAYER=OFF \
|
||||||
|
%endif
|
||||||
..
|
..
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
@ -160,49 +168,47 @@ popd
|
|||||||
%desktop_database_postun
|
%desktop_database_postun
|
||||||
%icon_theme_cache_postun
|
%icon_theme_cache_postun
|
||||||
|
|
||||||
%post -n libqmmp%{sover} -p /sbin/ldconfig
|
%post -n lib%{name}%{sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libqmmp%{sover} -p /sbin/ldconfig
|
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libqmmp-plugins
|
%post -n lib%{name}-plugins
|
||||||
%desktop_database_post
|
%desktop_database_post
|
||||||
|
|
||||||
%postun -n libqmmp-plugins
|
%postun -n lib%{name}-plugins
|
||||||
%desktop_database_postun
|
%desktop_database_postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS ChangeLog COPYING README
|
%doc AUTHORS ChangeLog COPYING README
|
||||||
%{_bindir}/qmmp
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/qmmp/
|
%{_datadir}/%{name}/
|
||||||
%{_datadir}/applications/qmmp.desktop
|
%{_datadir}/applications/%{name}*.desktop
|
||||||
%{_datadir}/applications/qmmp_enqueue.desktop
|
%{_datadir}/icons/hicolor/*/apps/%{name}*
|
||||||
%{_datadir}/applications/qmmp_dir.desktop
|
|
||||||
%{_datadir}/icons/hicolor/*/apps/qmmp*
|
|
||||||
|
|
||||||
%files -n libqmmp%{sover}
|
%files -n lib%{name}%{sover}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libqmmp.so.%{sover}*
|
%{_libdir}/lib%{name}*.so.%{sover}*
|
||||||
%{_libdir}/libqmmpui.so.%{sover}*
|
|
||||||
|
|
||||||
%files -n libqmmp-plugins
|
%files -n lib%{name}-plugins
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/qmmp/
|
%{_libdir}/%{name}/
|
||||||
%exclude %{_libdir}/qmmp/Engines/libmplayer.so
|
%exclude %{_libdir}/%{name}/Engines/libmplayer.so
|
||||||
|
|
||||||
%files -n libqmmp-plugin-mplayer
|
%if %{with restricted}
|
||||||
|
%files -n lib%{name}-plugin-mplayer
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_libdir}/qmmp/
|
%dir %{_libdir}/%{name}/
|
||||||
%dir %{_libdir}/qmmp/Engines/
|
%dir %{_libdir}/%{name}/Engines/
|
||||||
%{_libdir}/qmmp/Engines/libmplayer.so
|
%{_libdir}/%{name}/Engines/libmplayer.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n libqmmp-devel
|
%files -n lib%{name}-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/qmmp/
|
%{_includedir}/%{name}/
|
||||||
%{_includedir}/qmmpui/
|
%{_includedir}/%{name}ui/
|
||||||
%{_libdir}/libqmmp.so
|
%{_libdir}/lib%{name}*.so
|
||||||
%{_libdir}/libqmmpui.so
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%{_libdir}/pkgconfig/qmmp.pc
|
%{_libdir}/pkgconfig/%{name}ui.pc
|
||||||
%{_libdir}/pkgconfig/qmmpui.pc
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user