]> git.pld-linux.org Git - packages/kaffeine.git/blob - kaffeine.spec
- BR cdparanoia-III-devel, lame-libs-devel; kdelibs epoch
[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 %bcond_without  gstreamer       # build without gstreamer part
6
7 Summary:        Full featured Multimedia-Player for KDE
8 Summary(pl):    Frontend do xine pod KDE
9 Name:           kaffeine
10 Version:        0.8.1
11 Release:        1
12 License:        GPL
13 Group:          X11/Applications/Multimedia
14 Source0:        http://dl.sourceforge.net/kaffeine/%{name}-%{version}.tar.bz2
15 # Source0-md5:  3abba4ff76ffdd109e1f1cfe286e5b5b
16 Patch0:         %{name}-win32-path.patch
17 Patch1:         %{name}-desktop.patch
18 URL:            http://kaffeine.sourceforge.net/
19 BuildRequires:  automake
20 BuildRequires:  cdparanoia-III-devel
21 BuildRequires:  kdelibs-devel >= 9:3.1
22 BuildRequires:  lame-libs-devel
23 BuildRequires:  rpmbuild(macros) >= 1.122
24 BuildRequires:  xine-lib-devel >= 1:1.0.2
25 %if %{with gstreamer}
26 BuildRequires:  gstreamer-plugins-devel < 0.9.0
27 BuildRequires:  gstreamer-plugins-devel >= 0.8.4
28 Requires:       gstreamer < 0.9.0
29 Requires:       gstreamer >= 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 /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}/libkmediapart.so.0.0.1
88 %{_libdir}/libkmediapart.la
89 %attr(755,root,root) %{_libdir}/libkaffeineaudioencoder.so.0.0.1
90 %{_libdir}/libkaffeineaudioencoder.la
91 %attr(755,root,root) %{_libdir}/kde3/libkaffeinepart.so
92 %{_libdir}/kde3/libkaffeinepart.la
93 %{_libdir}/kde3/libkaffeinemp3lame.la
94 %attr(755,root,root) %{_libdir}/kde3/libkaffeinemp3lame.so
95 %{_libdir}/kde3/libkaffeineoggvorbis.la
96 %attr(755,root,root) %{_libdir}/kde3/libkaffeineoggvorbis.so
97 %{_datadir}/apps/kaffeine
98 %{_datadir}/apps/konqueror/servicemenus/*
99 %{_datadir}/apps/profiles/kaffeine.profile.xml
100 %{_datadir}/mimelnk/application/*.desktop
101 %{_datadir}/services/kaffeine_part.desktop
102 %{_datadir}/services/kaffeinemp3lame.desktop
103 %{_datadir}/services/kaffeineoggvorbis.desktop
104 %{_datadir}/servicetypes/kaffeineaudioencoder.desktop
105 %{_desktopdir}/kde/kaffeine.desktop
106 %{_iconsdir}/[!l]*/*/*/*.png
107 #%{_mandir}/man1/kaffeine.1*
108 #%lang(de) %{_mandir}/de/man1/kaffeine.1*
109
110 # gstreamer part
111 %if %{with gstreamer}
112 %attr(755,root,root) %{_libdir}/kde3/libgstreamerpart.so
113 %{_libdir}/kde3/libgstreamerpart.la
114 %dir %{_datadir}/apps/gstreamerpart
115 %{_datadir}/apps/gstreamerpart/gstreamer_part.rc
116 %{_datadir}/services/gstreamer_part.desktop
117 %endif
This page took 0.029743 seconds and 3 git commands to generate.