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