mirror of
https://abf.rosa.ru/djam/qmmp-plugin-youtube.git
synced 2025-02-23 17:12:53 +00:00
49 lines
1.2 KiB
RPMSpec
49 lines
1.2 KiB
RPMSpec
Summary: YouTube plugin for QMMP
|
|
Name: qmmp-plugin-youtube
|
|
Version: 0.1
|
|
Release: 3
|
|
License: GPLv3+
|
|
Group: Sound
|
|
Url: https://github.com/rigon/qmmp-plugin-youtube
|
|
Source0: https://github.com/rigon/%{name}/archive/v%{version}.tar.gz
|
|
Patch0: qmmp-plugin-youtube-0.1-qjson-qt5.patch
|
|
Patch1: qmmp-plugin-youtube-python3.4.patch
|
|
BuildRequires: qmmp >= 1.0.7
|
|
BuildRequires: pythonqt-qt5-devel
|
|
BuildRequires: pkgconfig(qmmp) >= 1.0.7
|
|
BuildRequires: pkgconfig(qmmpui) >= 1.0.7
|
|
BuildRequires: pkgconfig(python3)
|
|
BuildRequires: pkgconfig(QJson-qt5)
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
BuildRequires: youtube-dl
|
|
Requires: qmmp
|
|
|
|
%description
|
|
Plugin for Qt-based Multimedia Player (Qmmp) to search and play
|
|
musics directly from YouTube.
|
|
|
|
%files
|
|
%doc *.md
|
|
%{_libdir}/qmmp/General/libyoutube.so
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%if %{mdvver} < 201610
|
|
%patch1 -p1
|
|
perl -pi -e "s|python3.5m|python3.4m|" youtube.pro
|
|
%endif
|
|
|
|
%build
|
|
%qmake_qt5
|
|
%make
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{_libdir}/qmmp/General
|
|
cp -pr libyoutube.so.1.0.0 %{buildroot}/%{_libdir}/qmmp/General/libyoutube.so
|
|
|