1 |
%define gitdate 20210126 |
2 |
|
3 |
%define rel 1 |
4 |
|
5 |
Name: kmplayer |
6 |
Version: 0.12.0b |
7 |
Release: %mkrel 9.git%{gitdate}.%{rel} |
8 |
Summary: A multimedia mplayer/phonon frontend for Plasma 5 |
9 |
License: GPLv2+ |
10 |
Group: Video/Players |
11 |
Url: https://kmplayer.kde.org/ |
12 |
#Source0: http://download.kde.org/stable/kmplayer/0.12/%%{name}-%%{version}.tar.bz2 |
13 |
# Upstream releases is inactive from while, so lets use latest git |
14 |
Source0: %{name}-%{version}-%{gitdate}.tar.xz |
15 |
|
16 |
BuildRequires: pkgconfig(cairo) |
17 |
BuildRequires: pkgconfig(dbus-glib-1) |
18 |
BuildRequires: pkgconfig(gtk+-x11-2.0) |
19 |
BuildRequires: pkgconfig(x11) |
20 |
BuildRequires: gettext |
21 |
# Kf5 BuildRequires |
22 |
BuildRequires: kf5-macros |
23 |
BuildRequires: cmake(KF5Config) |
24 |
BuildRequires: cmake(KF5CoreAddons) |
25 |
BuildRequires: cmake(KF5DocTools) |
26 |
BuildRequires: cmake(KF5IconThemes) |
27 |
BuildRequires: cmake(KF5Init) |
28 |
BuildRequires: cmake(KF5I18n) |
29 |
BuildRequires: cmake(KF5KIO) |
30 |
BuildRequires: cmake(KF5MediaPlayer) |
31 |
BuildRequires: cmake(KF5Parts) |
32 |
BuildRequires: cmake(KF5WidgetsAddons) |
33 |
# Qt5 BuildRequires |
34 |
BuildRequires: pkgconfig(Qt5Core) |
35 |
BuildRequires: pkgconfig(Qt5DBus) |
36 |
BuildRequires: pkgconfig(Qt5Gui) |
37 |
BuildRequires: pkgconfig(Qt5Svg) |
38 |
BuildRequires: pkgconfig(Qt5Widgets) |
39 |
BuildRequires: pkgconfig(Qt5X11Extras) |
40 |
BuildRequires: pkgconfig(phonon4qt5) |
41 |
|
42 |
Recommends: mplayer |
43 |
|
44 |
%description |
45 |
Kmplayer can play all the audio/video supported by mplayer/phonon from a |
46 |
local file or URL and be embedded in Konqueror and KHTML. |
47 |
It also plays DVDs. |
48 |
|
49 |
%files -f %{name}.lang |
50 |
%doc AUTHORS ChangeLog README |
51 |
%{_kf5_categoriesdir}/%{name}.*categories |
52 |
%{_kf5_bindir}/%{name} |
53 |
%{_kf5_bindir}/kphononplayer |
54 |
%{_kf5_datadir}/%{name}/ |
55 |
%{_kf5_services}/*.desktop |
56 |
%{_kf5_libdir}/*.so |
57 |
%{_kf5_plugindir}/parts/*.so |
58 |
%{_kf5_iconsdir}/hicolor/*/*/* |
59 |
%{_kf5_applicationsdir}/org.kde.%{name}.desktop |
60 |
%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml |
61 |
%config(noreplace) %{_kf5_sysconfdir}/xdg/%{name}rc |
62 |
|
63 |
#---------------------------------------------------- |
64 |
|
65 |
%package npplayer |
66 |
Group: Video/Utilities |
67 |
Summary: Kmplayer netscape plugin player |
68 |
Requires: %{name} |
69 |
|
70 |
%description npplayer |
71 |
Kmplayer netscape plugin player. |
72 |
|
73 |
%files npplayer |
74 |
%doc AUTHORS ChangeLog README |
75 |
%{_kf5_bindir}/knpplayer |
76 |
|
77 |
#---------------------------------------------------- |
78 |
|
79 |
%prep |
80 |
%setup -q -n %{name}-%{version}-%{gitdate} |
81 |
%autopatch -p1 |
82 |
|
83 |
%build |
84 |
%cmake_kf5 |
85 |
|
86 |
%cmake_build |
87 |
|
88 |
%install |
89 |
%cmake_install |
90 |
|
91 |
%find_lang %{name} --with-html |