]> git.pld-linux.org Git - packages/kmplayer.git/blob - kmplayer.spec
- up to 0.9.1b
[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.1b
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:  dd9930c64757b553ff32705b5218ba05
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 #%{__make} -f admin/Makefile.common cvs 
67
68 %configure \
69         --disable-rpath \
70         --enable-final \
71         %{?with_koffice:--enable-koffice-plugin} \
72         %{!?with_gstreamer:--without-gstreamer} \
73         %{!?with_xine:--without-xine} \
74         --with-qt-libraries=%{_libdir}
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} install \
82         DESTDIR=$RPM_BUILD_ROOT \
83         kde_htmldir=%{_kdedocdir}
84
85 # remove bogus translation
86 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/xx
87
88 # already in kdelibs
89 rm $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/x-mplayer2.desktop
90
91 %find_lang %{name} --with-kde
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %files -f %{name}.lang
97 %defattr(644,root,root,755)
98 %doc AUTHORS ChangeLog README
99 %{?with_gstreamer:%attr(755,root,root) %{_bindir}/kgstplayer}
100 %attr(755,root,root) %{_bindir}/kmplayer
101 %{?with_xine:%attr(755,root,root) %{_bindir}/kxineplayer}
102 %attr(755,root,root) %{_bindir}/kxvplayer
103 %{_libdir}/libkdeinit_kmplayer.la
104 %attr(755,root,root) %{_libdir}/libkdeinit_kmplayer.so
105 %{_libdir}/libkmplayercommon.la
106 %attr(755,root,root) %{_libdir}/libkmplayercommon.so
107 %{_libdir}/kde3/kmplayer.la
108 %attr(755,root,root) %{_libdir}/kde3/kmplayer.so
109 %{_libdir}/kde3/libkmplayerpart.la
110 %attr(755,root,root) %{_libdir}/kde3/libkmplayerpart.so
111 %{_datadir}/apps/kmplayer
112 %{_datadir}/config/kmplayerrc
113 %{_datadir}/mimelnk/application/x-kmplayer.desktop
114 %{_datadir}/mimelnk/video/x-ms-wmp.desktop
115 %{_datadir}/services/kmplayer_part.desktop
116 %{_desktopdir}/kde/kmplayer.desktop
117 %{_iconsdir}/[!l]*/*/apps/kmplayer.*
118
119 %if %{with koffice}
120 %files koffice
121 %defattr(644,root,root,755)
122 %{_libdir}/kde3/libkmplayerkofficepart.la
123 %attr(755,root,root) %{_libdir}/kde3/libkmplayerkofficepart.so
124 %{_datadir}/services/kmplayer_koffice.desktop
125 %endif
This page took 0.041388 seconds and 4 git commands to generate.