]>
Commit | Line | Data |
---|---|---|
cc85c6c7 JB |
1 | # |
2 | # Conditional build: | |
250baa25 | 3 | %bcond_without gstreamer # Do not build kgstplayer |
4 | %bcond_with koffice # Build koffice plugin | |
5 | %bcond_without xine # Do not build kxineplayer | |
cc85c6c7 | 6 | # |
91e9a9d4 | 7 | Summary: A KDE MPlayer/Xine/ffmpeg/ffserver/VDR frontend |
a7a27d13 | 8 | Summary(pl.UTF-8): Frontend dla programów MPlayer/Xine/ffmpeg/ffserver/VDR pod KDE |
3757476f | 9 | Name: kmplayer |
c7323b19 | 10 | Version: 0.9.3a |
15980aaa | 11 | Release: 2 |
1fc93a3e | 12 | Epoch: 2 |
3757476f | 13 | License: GPL |
14 | Group: X11/Applications/Multimedia | |
eda0e419 | 15 | # http://kmplayer.kde.org/pkgs/kmplayer-0.9.3-pre1.tar.bz2 |
208ff581 | 16 | Source0: http://kmplayer.kde.org/pkgs/%{name}-%{version}.tar.bz2 |
c7323b19 | 17 | # Source0-md5: d18749a254af3d54dd10ce651975527c |
458a223c | 18 | Patch0: kde-common-PLD.patch |
15980aaa | 19 | Patch1: kde-ac260-lt.patch |
178e7197 | 20 | URL: http://kmplayer.kde.org/ |
683d4503 JB |
21 | BuildRequires: arts-qt-devel |
22 | BuildRequires: artsc-devel | |
cc85c6c7 | 23 | BuildRequires: autoconf |
178e7197 KK |
24 | BuildRequires: automake |
25 | BuildRequires: gettext-devel | |
b704b04f | 26 | %{?with_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10.0} |
eda0e419 | 27 | BuildRequires: kdelibs-devel >= 9:3.5.3 |
f8081154 | 28 | %{?with_koffice:BuildRequires: koffice-devel} |
178e7197 | 29 | BuildRequires: pkgconfig |
6d74c450 | 30 | BuildRequires: rpmbuild(macros) >= 1.129 |
bd4f971a | 31 | BuildRequires: sed >= 4.0 |
6d74c450 | 32 | %{?with_xine:BuildRequires: xine-lib-devel >= 1:1.0} |
eda0e419 MK |
33 | Requires: kdebase-core >= 9:3.5.3 |
34 | Requires: kdelibs >= 9:3.5.3 | |
3757476f | 35 | Requires: mplayer |
3757476f | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
3757476f | 38 | %description |
9145ac5b JB |
39 | A powerful, fully integrated with KDE MPlayer/Xine/ffmpeg/ffserver/VDR |
40 | GUI. | |
3757476f | 41 | |
a2a331e1 JR |
42 | %description -l pl.UTF-8 |
43 | W pełni zintegrowany z KDE frontend dla programów | |
9145ac5b | 44 | MPlayer/Xine/ffmpeg/ffserver/VDR. |
3757476f | 45 | |
bef4088e | 46 | %package gstreamer |
47 | Summary: Gstreamer wrapper | |
a7a27d13 | 48 | Summary(pl.UTF-8): Wrapper gstreamera |
bef4088e | 49 | Group: X11/Applications/Multimedia |
50 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
51 | ||
52 | %description gstreamer | |
53 | Gstreamer wrapper. | |
54 | ||
a2a331e1 | 55 | %description gstreamer -l pl.UTF-8 |
bef4088e | 56 | Wrapper gstreamera. |
57 | ||
bd060f40 | 58 | %package koffice |
59 | Summary: Kmplayer integration with Koffice | |
a7a27d13 | 60 | Summary(pl.UTF-8): Integracja kmplayera z koffice |
bd060f40 | 61 | Group: X11/Applications/Multimedia |
bef4088e | 62 | Requires: %{name} = %{epoch}:%{version}-%{release} |
bd060f40 | 63 | Requires: koffice-common |
bd060f40 | 64 | |
65 | %description koffice | |
66 | Kmplayer integration with Koffice. | |
67 | ||
a2a331e1 | 68 | %description koffice -l pl.UTF-8 |
bd060f40 | 69 | Integracja kmplayera z koffice. |
70 | ||
bef4088e | 71 | %package xine |
72 | Summary: Xine wrapper | |
a7a27d13 | 73 | Summary(pl.UTF-8): Wrapper xine |
bef4088e | 74 | Group: X11/Applications/Multimedia |
75 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
76 | ||
77 | %description xine | |
78 | Xine wrapper. | |
79 | ||
a2a331e1 | 80 | %description xine -l pl.UTF-8 |
bef4088e | 81 | Wrapper xine. |
82 | ||
3757476f | 83 | %prep |
208ff581 | 84 | %setup -q |
458a223c | 85 | %patch0 -p1 |
15980aaa | 86 | %patch1 -p1 |
bd4f971a SP |
87 | |
88 | %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \ | |
cc85c6c7 | 89 | src/kmplayer.desktop |
3757476f | 90 | |
91 | %build | |
bd060f40 | 92 | cp /usr/share/automake/config.sub admin |
557a0aa9 | 93 | |
e97c390d | 94 | %{__make} -f admin/Makefile.common cvs |
ecfcb345 | 95 | |
7c536142 | 96 | %configure \ |
f8081154 | 97 | --disable-rpath \ |
98 | --enable-final \ | |
99 | %{?with_koffice:--enable-koffice-plugin} \ | |
c434a53c | 100 | %{!?with_gstreamer:--without-gstreamer} \ |
101 | %{!?with_xine:--without-xine} \ | |
f8081154 | 102 | --with-qt-libraries=%{_libdir} |
138e0614 | 103 | |
3757476f | 104 | %{__make} |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
3757476f | 108 | |
138e0614 | 109 | %{__make} install \ |
110 | DESTDIR=$RPM_BUILD_ROOT \ | |
f8081154 | 111 | kde_htmldir=%{_kdedocdir} |
112 | ||
24bc4978 | 113 | # remove bogus translation |
8d8cab91 | 114 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx |
24bc4978 | 115 | |
94da5432 | 116 | # already in kdelibs |
117 | rm $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/x-mplayer2.desktop | |
118 | ||
178e7197 | 119 | %find_lang %{name} --with-kde |
ecfcb345 | 120 | |
3757476f | 121 | %clean |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
be2ff6ab | 124 | %files -f %{name}.lang |
3757476f | 125 | %defattr(644,root,root,755) |
1fc93a3e | 126 | %doc AUTHORS ChangeLog README |
3757476f | 127 | %attr(755,root,root) %{_bindir}/kmplayer |
958790fa | 128 | %attr(755,root,root) %{_bindir}/kxvplayer |
138e0614 | 129 | %{_libdir}/libkdeinit_kmplayer.la |
130 | %attr(755,root,root) %{_libdir}/libkdeinit_kmplayer.so | |
131 | %{_libdir}/libkmplayercommon.la | |
132 | %attr(755,root,root) %{_libdir}/libkmplayercommon.so | |
133 | %{_libdir}/kde3/kmplayer.la | |
134 | %attr(755,root,root) %{_libdir}/kde3/kmplayer.so | |
135 | %{_libdir}/kde3/libkmplayerpart.la | |
136 | %attr(755,root,root) %{_libdir}/kde3/libkmplayerpart.so | |
3757476f | 137 | %{_datadir}/apps/kmplayer |
138e0614 | 138 | %{_datadir}/config/kmplayerrc |
63209d42 | 139 | %{_datadir}/mimelnk/application/x-kmplayer.desktop |
1fc93a3e | 140 | %{_datadir}/mimelnk/video/x-ms-wmp.desktop |
141 | %{_datadir}/services/kmplayer_part.desktop | |
138e0614 | 142 | %{_desktopdir}/kde/kmplayer.desktop |
958790fa | 143 | %{_iconsdir}/[!l]*/*/apps/kmplayer.* |
bd060f40 | 144 | |
bef4088e | 145 | %if %{with gstreamer} |
146 | %files gstreamer | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_bindir}/kgstplayer | |
149 | %endif | |
150 | ||
f8081154 | 151 | %if %{with koffice} |
bd060f40 | 152 | %files koffice |
153 | %defattr(644,root,root,755) | |
154 | %{_libdir}/kde3/libkmplayerkofficepart.la | |
155 | %attr(755,root,root) %{_libdir}/kde3/libkmplayerkofficepart.so | |
156 | %{_datadir}/services/kmplayer_koffice.desktop | |
f8081154 | 157 | %endif |
bef4088e | 158 | |
159 | %if %{with xine} | |
160 | %files xine | |
161 | %defattr(644,root,root,755) | |
162 | %attr(755,root,root) %{_bindir}/kxineplayer | |
163 | %endif |