]> git.pld-linux.org Git - packages/amarok.git/blob - amarok.spec
- rel. 2 to rebuild
[packages/amarok.git] / amarok.spec
1 #
2 # Conditional builds:
3 %bcond_without  gstreamer       # disable gstreamer
4 %bcond_without  xmms            # disable xmms wrapping
5 #
6 Summary:        A KDE audio player
7 Summary(pl):    Odtwarzacz audio dla KDE
8 Name:           amarok
9 Version:        1.0.1
10 Release:        2
11 License:        GPL
12 Group:          X11/Applications/Multimedia
13 Source0:        http://dl.sourceforge.net/amarok/%{name}-%{version}.tar.bz2
14 # Source0-md5:  3572e1bbbc76d3985af9a982f22a5da8
15 URL:            http://amarok.sf.net/
16 Buildrequires:  alsa-lib-devel
17 Buildrequires:  arts-qt-devel
18 Buildrequires:  automake
19 %{?with_gstreamer:BuildRequires:        gstreamer-devel >= 0.8.1}
20 BuildRequires:  kdemultimedia-devel >= 9:3.1.93
21 BuildRequires:  rpmbuild(macros) >= 1.129
22 BuildRequires:  sed >= 4.0
23 BuildRequires:  taglib-devel >= 0.95
24 BuildRequires:  unsermake >= 040511
25 BuildRequires:  xine-lib-devel
26 %{?with_xmms:Buildrequires:     xmms-devel}
27 Requires:       kdebase-core >= 9:3.1.93
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 A KDE audio player.
32
33 %description -l pl
34 Odtwarzacz audio dla KDE.
35
36 %package gstreamer
37 Summary:        Plugin gstreamer
38 Summary(pl):    Wtyczka gstreamer
39 Group:          X11/Applications/Multimedia
40 Requires:       %{name} = %{version}-%{release}
41
42 %description gstreamer
43 Plugin gstreamer.
44
45 %description gstreamer -l pl
46 Wtyczka gstreamer.
47
48 %prep
49 %setup -q -n %{name}-%{version}
50
51 %build
52 cp -f %{_datadir}/automake/config.sub admin
53
54 export UNSERMAKE=%{_datadir}/unsermake/unsermake
55
56 %{__make} -f admin/Makefile.common cvs
57
58 %configure \
59         --disable-rpath \
60         --with-qt-libraries=%{_libdir}
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT \
69         kde_htmldir=%{_kdedocdir} \
70         kde_libs_htmldir=%{_kdedocdir}
71
72 %find_lang amarok --all-name --with-kde
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files -f %{name}.lang
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog README TODO
80 %attr(755,root,root) %{_bindir}/amarok
81 %{?with_xmms:%attr(755,root,root) %{_bindir}/amarok_xmmswrapper}
82 %attr(755,root,root) %{_bindir}/amarokapp
83 %{_libdir}/kde3/libamarok_artsengine_plugin.la
84 %attr(755,root,root) %{_libdir}/kde3/libamarok_artsengine_plugin.so
85 %{_libdir}/libamarokarts.la
86 %attr(755,root,root) %{_libdir}/libamarokarts.so
87 %{_libdir}/mcop/Amarok
88 %{_libdir}/mcop/amarokarts.mcopclass
89 %{_libdir}/mcop/amarokarts.mcoptype
90 %{_datadir}/apps/amarok
91 %{_datadir}/config.kcfg/amarok.kcfg
92 %{_datadir}/services/amarok_artsengine_plugin.desktop
93 %{_datadir}/servicetypes/amarok_plugin.desktop
94 %{_desktopdir}/kde/amarok.desktop
95 %{_iconsdir}/[!l]*/*/apps/amarok.png
96 %{_datadir}/config/*
97
98 %if %{with gstreamer}
99 %files gstreamer
100 %defattr(644,root,root,755)
101 %{_libdir}/kde3/libamarok_gstengine_plugin.la
102 %attr(755,root,root) %{_libdir}/kde3/libamarok_gstengine_plugin.so
103 %{_datadir}/services/amarok_gstengine_plugin.desktop
104 %endif
This page took 0.035509 seconds and 4 git commands to generate.