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