]> git.pld-linux.org Git - packages/kaffeine.git/blob - kaffeine.spec
- more hacking
[packages/kaffeine.git] / kaffeine.spec
1 # TODO
2 # - kaffeine-mozilla-0.2.tar.bz2 (Starter-Plugin for Mozilla)
3 # - check: http://kaffeine.sourceforge.net/index.php?page=faq#question4
4 #
5 # Conditional build:
6 %bcond_without  gstreamer       # build without gstreamer part
7 #
8 Summary:        Full featured Multimedia-Player for KDE
9 Summary(pl):    Frontend do xine pod KDE
10 Name:           kaffeine
11 Version:        0.8.2
12 Release:        1
13 License:        GPL
14 Group:          X11/Applications/Multimedia
15 Source0:        http://dl.sourceforge.net/kaffeine/%{name}-%{version}.tar.bz2
16 # Source0-md5:  bfb57b62fa72267cc5b01ce9b037cb41
17 Patch0:         %{name}-win32-path.patch
18 Patch1:         %{name}-desktop.patch
19 URL:            http://kaffeine.sourceforge.net/
20 BuildRequires:  automake
21 BuildRequires:  cdparanoia-III-devel
22 BuildRequires:  kdelibs-devel >= 9:3.1
23 BuildRequires:  lame-libs-devel
24 BuildRequires:  rpmbuild(macros) >= 1.122
25 BuildRequires:  xine-lib-devel >= 1:1.0.2
26 %if %{with gstreamer}
27 BuildRequires:  gstreamer-plugins-devel < 0.9.0
28 BuildRequires:  gstreamer-plugins-devel >= 0.8.4
29 Requires:       gstreamer08x >= 0.8.4
30 %endif
31 Requires:       kdebase-core >= 9:3.1.90
32 Requires:       kdelibs >= 9:3.4.0-4
33 Requires:       libdvdcss
34 Requires:       xine-lib >= 1:1.0.2
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Kaffeine is a full featured Multimedia-Player for KDE. By default it
39 uses xine as backend.
40
41 %description -l pl
42 W peĀ³ni zintegrowany z KDE frontend do xine.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47 %patch1 -p1
48
49 %build
50 cp -f /usr/share/automake/config.sub admin
51 %{__make} -f admin/Makefile.common
52 %configure \
53         --disable-rpath \
54         --with-qt-libraries=%{_libdir} \
55         --with%{!?with_gstreamer:out}-gstreamer
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT \
63         kde_htmldir=%{_kdedocdir}
64
65 # no devel libraries, why did these get installed?
66 rm -r $RPM_BUILD_ROOT%{_includedir}/%{name}
67 rm $RPM_BUILD_ROOT%{_includedir}/%{name}_export.h
68
69 rm $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/x-mplayer2.desktop
70
71 # pick docs
72 %find_lang %{name} --with-kde
73 # second try. pic locale files
74 # FIXME: remove version?
75 %find_lang %{name}-%{version} --with-kde
76 cat  %{name}-%{version}.lang >> %{name}.lang
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files -f %{name}.lang
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_bindir}/kaffeine
87 %attr(755,root,root) %{_libdir}/libkaffeineaudioencoder.so.0.0.1
88 %{_libdir}/libkaffeineaudioencoder.la
89 %{_libdir}/kde3/libkaffeinemp3lame.la
90 %attr(755,root,root) %{_libdir}/kde3/libkaffeinemp3lame.so
91 %{_libdir}/kde3/libkaffeineoggvorbis.la
92 %attr(755,root,root) %{_libdir}/kde3/libkaffeineoggvorbis.so
93 %{_datadir}/apps/kaffeine
94 %{_datadir}/apps/konqueror/servicemenus/*
95 %{_datadir}/apps/profiles/kaffeine.profile.xml
96 %{_datadir}/mimelnk/application/*.desktop
97 %{_datadir}/services/kaffeinemp3lame.desktop
98 %{_datadir}/services/kaffeineoggvorbis.desktop
99 %{_datadir}/servicetypes/kaffeineaudioencoder.desktop
100 %{_desktopdir}/kde/kaffeine.desktop
101 %{_iconsdir}/[!l]*/*/*/*.png
102 %{_libdir}/kde3/libxinepart.la
103 %attr(755,root,root) %{_libdir}/kde3/libxinepart.so
104 %{_libdir}/libkaffeinedvbplugin.la
105 %attr(755,root,root) %{_libdir}/libkaffeinedvbplugin.so.0.0.1
106 %{_libdir}/libkaffeinepart.la
107 %attr(755,root,root) %{_libdir}/libkaffeinepart.so.0.0.1
108 %{_datadir}/services/xine_part.desktop
109 %{_datadir}/servicetypes/kaffeinedvbplugin.desktop
110
111 # gstreamer part
112 %if %{with gstreamer}
113 %attr(755,root,root) %{_libdir}/kde3/libgstreamerpart.so
114 %{_libdir}/kde3/libgstreamerpart.la
115 %dir %{_datadir}/apps/gstreamerpart
116 %{_datadir}/apps/gstreamerpart/gstreamer_part.rc
117 %{_datadir}/services/gstreamer_part.desktop
118 %endif
This page took 0.056375 seconds and 3 git commands to generate.