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