]> git.pld-linux.org Git - packages/kmplayer.git/blob - kmplayer.spec
- Grrrr!
[packages/kmplayer.git] / kmplayer.spec
1
2 %bcond_without  gstreamer       # Do not build kgstplayer
3 %bcond_with     koffice         # Build koffice plugin
4 %bcond_without  xine            # Do not build kxineplayer
5
6 Summary:        A KDE MPlayer/Xine/ffmpeg/ffserver/VDR frontend
7 Summary(pl):    Frontend dla programów MPlayer/Xine/ffmpeg/ffserver/VDR pod KDE
8 Name:           kmplayer
9 Version:        0.9.1a
10 Release:        1
11 Epoch:          2
12 License:        GPL
13 Group:          X11/Applications/Multimedia
14 Source0:        http://kmplayer.kde.org/pkgs/%{name}-%{version}.tar.bz2
15 # Source0-md5:  59f28acf1b4fba0ef5aa0a910d1d04b0
16 #Patch0:                %{name}-mimetypes.patch
17 URL:            http://kmplayer.kde.org/
18 BuildRequires:  arts-qt-devel
19 BuildRequires:  artsc-devel
20 BuildRequires:  automake
21 BuildRequires:  gettext-devel
22 %{?with_gstreamer:BuildRequires:        gstreamer-plugins-devel >= 0.8.6}
23 BuildRequires:  kdelibs-devel >= 9:3.1.92
24 %{?with_koffice:BuildRequires:  koffice-devel}
25 BuildRequires:  pkgconfig
26 BuildRequires:  rpmbuild(macros) >= 1.129       
27 BuildRequires:  sed >= 4.0
28 %{?with_xine:BuildRequires:     xine-lib-devel >= 1:1.0}
29 #BuildRequires: unsermake
30 Requires:       kdebase-core >= 9:3.1.90
31 Requires:       kdelibs >= 9:3.4.0-4
32 Requires:       mplayer
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 A powerful, fully integrated with KDE MPlayer/Xine/ffmpeg/ffserver/VDR
37 GUI.
38
39 %description -l pl
40 W pe³ni zintegrowany z KDE frontend dla programów
41 MPlayer/Xine/ffmpeg/ffserver/VDR.
42
43 %package koffice
44 Summary:        Kmplayer integration with Koffice
45 Summary(pl):    Integracja kmplayera z koffice
46 Group:          X11/Applications/Multimedia
47 Requires:       koffice-common
48
49 %description koffice
50 Kmplayer integration with Koffice.
51
52 %description koffice -l pl
53 Integracja kmplayera z koffice.
54
55 %prep
56 %setup -q
57
58 %{__sed} -i -e 's/Categories=.*/Categories=Qt;KDE;AudioVideo;Player;/' \
59         src/kmplayer.desktop \
60
61 #%patch0 -p1
62
63 %build
64 cp /usr/share/automake/config.sub admin
65
66 #export UNSERMAKE=/usr/share/unsermake/unsermake
67
68 #%{__make} -f admin/Makefile.common cvs 
69
70 %configure \
71         --disable-rpath \
72         --enable-final \
73         %{?with_koffice:--enable-koffice-plugin} \
74         %{!?with_gstreamer:--without-gstreamer} \
75         %{!?with_xine:--without-xine} \
76         --with-qt-libraries=%{_libdir}
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT \
85         kde_htmldir=%{_kdedocdir}
86
87 # remove bogus translation
88 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
89
90 %find_lang %{name} --with-kde
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog README
98 %{?with_gstreamer:%attr(755,root,root) %{_bindir}/kgstplayer}
99 %attr(755,root,root) %{_bindir}/kmplayer
100 %{?with_xine:%attr(755,root,root) %{_bindir}/kxineplayer}
101 %attr(755,root,root) %{_bindir}/kxvplayer
102 %{_libdir}/libkdeinit_kmplayer.la
103 %attr(755,root,root) %{_libdir}/libkdeinit_kmplayer.so
104 %{_libdir}/libkmplayercommon.la
105 %attr(755,root,root) %{_libdir}/libkmplayercommon.so
106 %{_libdir}/kde3/kmplayer.la
107 %attr(755,root,root) %{_libdir}/kde3/kmplayer.so
108 %{_libdir}/kde3/libkmplayerpart.la
109 %attr(755,root,root) %{_libdir}/kde3/libkmplayerpart.so
110 %{_datadir}/apps/kmplayer
111 %{_datadir}/config/kmplayerrc
112 %{_datadir}/mimelnk/application/x-kmplayer.desktop
113 %{_datadir}/mimelnk/video/x-ms-wmp.desktop
114 %{_datadir}/services/kmplayer_part.desktop
115 # Already in kdelibs
116 #%{_datadir}/mimelnk/application/x-mplayer2.desktop
117 #%{_datadir}/mimelnk/audio/x-ms-wma.desktop
118 #%{_datadir}/mimelnk/video/x-ms-wmv.desktop
119 #%{_datadir}/services/mms.protocol
120 #%{_datadir}/services/pnm.protocol
121 #%{_datadir}/services/rtsp.protocol
122 %{_desktopdir}/kde/kmplayer.desktop
123 %{_iconsdir}/[!l]*/*/apps/kmplayer.*
124
125 %if %{with koffice}
126 %files koffice
127 %defattr(644,root,root,755)
128 %{_libdir}/kde3/libkmplayerkofficepart.la
129 %attr(755,root,root) %{_libdir}/kde3/libkmplayerkofficepart.so
130 %{_datadir}/services/kmplayer_koffice.desktop
131 %endif
This page took 0.053649 seconds and 4 git commands to generate.