]> git.pld-linux.org Git - packages/kaffeine.git/blob - kaffeine.spec
- converted to UTF-8
[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.UTF-8):   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 Patch3:         kde-ac260-lt.patch
21 URL:            http://kaffeine.sourceforge.net/
22 BuildRequires:  automake
23 BuildRequires:  cdparanoia-III-devel
24 BuildRequires:  kdelibs-devel >= 9:3.2.0
25 BuildRequires:  lame-libs-devel
26 BuildRequires:  rpmbuild(macros) >= 1.122
27 BuildRequires:  xine-lib-devel >= 2:1.1.0
28 %if %{with gstreamer}
29 BuildRequires:  gstreamer-plugins-devel < 0.9.0
30 BuildRequires:  gstreamer-plugins-devel >= 0.8.4
31 Requires:       gstreamer08x >= 0.8.4
32 %endif
33 Requires:       kdebase-core >= 9:3.2.0
34 Requires:       libdvdcss
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.UTF-8
42 W pełni zintegrowany z KDE frontend do xine.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47 %patch1 -p1
48 %patch2 -p1
49 %patch3 -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
70 rm $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/x-mplayer2.desktop
71
72 # pick docs
73 %find_lang %{name} --with-kde
74 # second try. pic locale files
75 # FIXME: remove version?
76 %find_lang %{name}-%{version} --with-kde
77 cat  %{name}-%{version}.lang >> %{name}.lang
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_bindir}/kaffeine
88 %attr(755,root,root) %{_libdir}/libkaffeineaudioencoder.so.0.0.1
89 %{_libdir}/libkaffeineaudioencoder.la
90 %{_libdir}/kde3/libkaffeinemp3lame.la
91 %attr(755,root,root) %{_libdir}/kde3/libkaffeinemp3lame.so
92 %{_libdir}/kde3/libkaffeineoggvorbis.la
93 %attr(755,root,root) %{_libdir}/kde3/libkaffeineoggvorbis.so
94 %{_datadir}/apps/kaffeine
95 %{_datadir}/apps/konqueror/servicemenus/*
96 %{_datadir}/apps/profiles/kaffeine.profile.xml
97 %{_datadir}/mimelnk/application/*.desktop
98 %{_datadir}/services/kaffeinemp3lame.desktop
99 %{_datadir}/services/kaffeineoggvorbis.desktop
100 %{_datadir}/servicetypes/kaffeineaudioencoder.desktop
101 %{_desktopdir}/kde/kaffeine.desktop
102 %{_iconsdir}/[!l]*/*/*/*.png
103 %{_libdir}/kde3/libxinepart.la
104 %attr(755,root,root) %{_libdir}/kde3/libxinepart.so
105 %{_libdir}/libkaffeinedvbplugin.la
106 %attr(755,root,root) %{_libdir}/libkaffeinedvbplugin.so.0.0.1
107 %{_libdir}/libkaffeinepart.la
108 %attr(755,root,root) %{_libdir}/libkaffeinepart.so
109 %{_datadir}/services/xine_part.desktop
110 %{_datadir}/servicetypes/kaffeinedvbplugin.desktop
111
112 # gstreamer part
113 %if %{with gstreamer}
114 %attr(755,root,root) %{_libdir}/kde3/libgstreamerpart.so
115 %{_libdir}/kde3/libgstreamerpart.la
116 %dir %{_datadir}/apps/gstreamerpart
117 %{_datadir}/apps/gstreamerpart/gstreamer_part.rc
118 %{_datadir}/services/gstreamer_part.desktop
119 %endif
This page took 0.033632 seconds and 3 git commands to generate.