]> git.pld-linux.org Git - packages/kaffeine.git/blob - kaffeine.spec
- gstreamer part bconded and provided necessary BRs and Rs (i hope)
[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:        A KDE xine frontend
8 Summary(pl):    Frontend do xine pod KDE
9 Name:           kaffeine
10 Version:        0.7.1
11 Release:        3
12 License:        GPL
13 Group:          X11/Applications/Multimedia
14 Source0:        http://dl.sourceforge.net/kaffeine/%{name}-%{version}.tar.bz2
15 # Source0-md5:  afde61516eb8f6cf2c3bf085a22ef427
16 Patch0:         %{name}-win32-path.patch
17 Patch1:         %{name}-locale_names.patch
18 Patch2:         %{name}-desktop.patch
19 URL:            http://kaffeine.sourceforge.net/
20 BuildRequires:  automake
21 BuildRequires:  kdelibs-devel >= 3.1
22 BuildRequires:  rpmbuild(macros) >= 1.122
23 BuildRequires:  xine-lib-devel >= 1:1.0
24 %if %{with gstreamer}
25 BuildRequires:  gstreamer-plugins-devel >= 0.8.4
26 BuildRequires:  gstreamer-plugins-devel < 0.9.0
27 Requires:       gstreamer >= 0.8.4
28 Requires:       gstreamer < 0.9.0
29 %endif
30 Requires:       kdebase-core >= 9:3.1.90
31 Requires:       kdelibs >= 9:3.4.0-4
32 Requires:       xine-lib >= 1:1.0
33 Requires:       libdvdcss
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 A powerful, fully integrated with KDE xine GUI.
38
39 %description -l pl
40 W peĀ³ni zintegrowany z KDE frontend do xine.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %patch1 -p1
46 %patch2 -p1
47 mv -f po/{pt_PT,pt}.po
48
49 %build
50 cp /usr/share/automake/config.sub admin
51 %{__make} -f admin/Makefile.common
52
53 %configure \
54         --disable-rpath \
55         --with-qt-libraries=%{_libdir} \
56         --with%{?!with_gstreamer:out}-gstreamer
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT \
64         kde_htmldir=%{_kdedocdir}
65
66 # no devel libraries, why did these get installed?
67 rm -r $RPM_BUILD_ROOT%{_includedir}/%{name}
68 rm $RPM_BUILD_ROOT%{_includedir}/%{name}_export.h
69
70 rm $RPM_BUILD_ROOT/%{_datadir}/mimelnk/application/x-mplayer2.desktop
71
72 %find_lang %{name} --with-kde
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files -f %{name}.lang
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_bindir}/kaffeine
83 %attr(755,root,root) %{_libdir}/libkmediapart.so.0.0.1
84 %{_libdir}/libkmediapart.la
85 %attr(755,root,root) %{_libdir}/kde3/libkaffeinepart.so
86 %{_libdir}/kde3/libkaffeinepart.la
87 %{_datadir}/apps/kaffeine
88 %{_datadir}/apps/konqueror/servicemenus/*
89 %{_datadir}/apps/profiles/kaffeine.profile.xml
90 %{_datadir}/mimelnk/application/*.desktop
91 %{_datadir}/services/kaffeine_part.desktop
92 %{_desktopdir}/kde/kaffeine.desktop
93 %{_iconsdir}/[!l]*/*/*/*.png
94 %{_mandir}/man1/kaffeine.1*
95 %lang(de) %{_mandir}/de/man1/kaffeine.1*
96
97 # gstreamer part
98 %if %{with gstreamer}
99 %attr(755,root,root) %{_libdir}/kde3/libgstreamerpart.so
100 %{_libdir}/kde3/libgstreamerpart.la
101 %dir %{_datadir}/apps/gstreamerpart
102 %{_datadir}/apps/gstreamerpart/gstreamer_part.rc
103 %{_datadir}/services/gstreamer_part.desktop
104 %endif
This page took 0.042659 seconds and 4 git commands to generate.