]>
Commit | Line | Data |
---|---|---|
18b90c81 SP |
1 | # |
2 | # TODO: | |
3a71016a | 3 | # - fix build flags - some files are compiled with -O3 and without rpm*flags |
c1b45330 | 4 | # - fix linking argument order |
3a71016a | 5 | # - fix install - add DESTDIR support |
6 | # - don't put binary in %{_datadir} and fix start scripts | |
18b90c81 | 7 | # |
18b90c81 SP |
8 | Summary: XBMC |
9 | Name: xbmc | |
10 | Version: 9.11 | |
2e649bc9 AF |
11 | Release: 0.1 |
12 | License: GPL v3 | |
18b90c81 | 13 | Group: Applications/Multimedia |
c1b45330 | 14 | Source0: http://downloads.sourceforge.net/project/xbmc/XBMC%20Source%20Code/Camelot%20-%209.11/%{name}-%{version}.tar.gz |
2e649bc9 | 15 | # Source0-md5: 9a68ac1e2f44a54cc3803fcdb1265767 |
18b90c81 | 16 | URL: http://xbmc.org |
01f2a87d | 17 | Patch0: %{name}-nobash.patch |
51b524ca | 18 | Patch1: %{name}-libpng14.patch |
18b90c81 SP |
19 | BuildRequires: SDL_image-devel |
20 | BuildRequires: SDL_mixer-devel | |
c462fd57 | 21 | BuildRequires: a52dec-libs-devel |
18b90c81 SP |
22 | BuildRequires: alsa-lib-devel |
23 | BuildRequires: autoconf | |
24 | BuildRequires: automake | |
25 | BuildRequires: avahi-devel | |
5a2f2b01 | 26 | BuildRequires: boost-devel |
18b90c81 SP |
27 | BuildRequires: bzip2-devel |
28 | BuildRequires: cmake | |
29 | BuildRequires: curl-devel | |
30 | BuildRequires: dbus-devel | |
31 | BuildRequires: enca-devel | |
5a2f2b01 | 32 | BuildRequires: esound-devel |
18b90c81 | 33 | BuildRequires: faac-devel |
5a2f2b01 | 34 | BuildRequires: faad2-devel |
c462fd57 | 35 | BuildRequires: ffmpeg-devel |
5a2f2b01 | 36 | BuildRequires: flac-devel |
18b90c81 SP |
37 | BuildRequires: fontconfig-devel |
38 | BuildRequires: freetype-devel | |
39 | BuildRequires: fribidi-devel | |
40 | BuildRequires: gawk | |
5a2f2b01 | 41 | BuildRequires: gettext-devel |
18b90c81 SP |
42 | BuildRequires: glew-devel |
43 | BuildRequires: gperf | |
5a2f2b01 | 44 | BuildRequires: gtk+-devel |
45 | BuildRequires: hal-devel | |
46 | BuildRequires: jasper-devel | |
47 | BuildRequires: libao-devel | |
18b90c81 | 48 | BuildRequires: libcdio-devel |
c462fd57 | 49 | BuildRequires: libdts-devel |
18b90c81 SP |
50 | BuildRequires: libjpeg-devel |
51 | BuildRequires: libmad-devel | |
52 | BuildRequires: libmms-devel | |
c462fd57 | 53 | BuildRequires: libmpeg2-devel |
18b90c81 | 54 | BuildRequires: libogg-devel |
5a2f2b01 | 55 | BuildRequires: libpng-devel |
18b90c81 SP |
56 | BuildRequires: libsamplerate-devel |
57 | BuildRequires: libsmbclient-devel | |
5a2f2b01 | 58 | BuildRequires: libtiff-devel |
59 | BuildRequires: libtool | |
60 | BuildRequires: libvdpau-devel | |
18b90c81 | 61 | BuildRequires: libvorbis-devel |
5a2f2b01 | 62 | BuildRequires: lzo-devel |
63 | BuildRequires: mysql-devel | |
c1b45330 | 64 | %ifarch %{ix86} |
26cae375 | 65 | BuildRequires: nasm |
c1b45330 | 66 | %endif |
18b90c81 | 67 | BuildRequires: openssl-devel |
5a2f2b01 | 68 | BuildRequires: pkgconfig |
18b90c81 | 69 | BuildRequires: pulseaudio-devel |
c462fd57 | 70 | BuildRequires: python-devel |
3a71016a | 71 | BuildRequires: rpm-pythonprov |
c462fd57 | 72 | # used internally |
73 | BuildRequires: sed >= 4.0 | |
18b90c81 | 74 | BuildRequires: sqlite3-devel |
5a2f2b01 | 75 | BuildRequires: unzip |
c462fd57 | 76 | BuildRequires: wavpack-devel |
5a2f2b01 | 77 | BuildRequires: xmms-devel |
78 | BuildRequires: xorg-lib-libXinerama-devel | |
18b90c81 | 79 | BuildRequires: xorg-lib-libXrandr-devel |
5a2f2b01 | 80 | BuildRequires: xorg-lib-libXtst-devel |
18b90c81 SP |
81 | BuildRequires: zip |
82 | BuildRequires: zlib-devel | |
a58652d4 SP |
83 | Requires: lsb-release |
84 | Requires: xorg-app-xdpyinfo | |
18b90c81 SP |
85 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
86 | ||
87 | %description | |
88 | ||
89 | %prep | |
c1b45330 | 90 | %setup -q |
01f2a87d | 91 | %patch0 -p1 |
51b524ca | 92 | %patch1 -p1 |
18b90c81 SP |
93 | |
94 | %build | |
95 | ./bootstrap | |
65712ad3 | 96 | %configure \ |
51b524ca KK |
97 | --disable-debug \ |
98 | --enable-external-libraries \ | |
99 | --enable-external-python | |
18b90c81 SP |
100 | %{__make} |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
3a71016a | 106 | prefix=$RPM_BUILD_ROOT%{_prefix} |
18b90c81 SP |
107 | |
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
47308569 | 113 | #doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO |
18b90c81 | 114 | |
47308569 | 115 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* |
18b90c81 SP |
116 | %attr(755,root,root) %{_bindir}/* |
117 | %{_datadir}/%{name} | |
a58652d4 SP |
118 | %attr(755,root,root) %{_datadir}/%{name}/xbmc.bin |
119 | %attr(755,root,root) %{_datadir}/%{name}/xbmc-xrandr | |
c1b45330 | 120 | %{_desktopdir}/%{name}.desktop |
121 | %{_pixmapsdir}/%{name}.png | |
3a71016a | 122 | %{_datadir}/xsessions/XBMC.desktop |