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