]>
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 |
92b96980 | 5 | # - add and/or fix users/groups permissions |
63ff963e | 6 | # - split to subpackages? |
18b90c81 | 7 | # |
92b96980 | 8 | # Conditional build: |
37fbe511 | 9 | %bcond_without cec # build without cec support |
68612b1e | 10 | %bcond_without goom # build without goom visualisation |
37fbe511 | 11 | %bcond_with hal # build with HAL |
92b96980 | 12 | |
e3d1b54c AF |
13 | %define codename Frodo |
14 | ||
68612b1e | 15 | Summary: XBMC is a free and open source media-player and entertainment hub |
18b90c81 | 16 | Name: xbmc |
e3d1b54c AF |
17 | Version: 12.3 |
18 | Release: 0 | |
68612b1e | 19 | License: GPL v2+ and GPL v3+ |
18b90c81 | 20 | Group: Applications/Multimedia |
68612b1e | 21 | Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz |
e3d1b54c | 22 | # Source0-md5: 7ae385ebf8e5cfcb917393235e6efbdb |
bfa116d7 | 23 | Patch0: ffmpeg2.patch |
68612b1e | 24 | URL: http://xbmc.org/ |
b85db44b AF |
25 | BuildRequires: Mesa-libGLU-devel |
26 | BuildRequires: OpenGL-devel | |
18b90c81 SP |
27 | BuildRequires: SDL_image-devel |
28 | BuildRequires: SDL_mixer-devel | |
29 | BuildRequires: alsa-lib-devel | |
30 | BuildRequires: autoconf | |
31 | BuildRequires: automake | |
32 | BuildRequires: avahi-devel | |
b85db44b | 33 | BuildRequires: bluez-libs-devel >= 4.99 |
5a2f2b01 | 34 | BuildRequires: boost-devel |
18b90c81 SP |
35 | BuildRequires: bzip2-devel |
36 | BuildRequires: cmake | |
37 | BuildRequires: curl-devel | |
38 | BuildRequires: dbus-devel | |
c462fd57 | 39 | BuildRequires: ffmpeg-devel |
5a2f2b01 | 40 | BuildRequires: flac-devel |
18b90c81 SP |
41 | BuildRequires: fontconfig-devel |
42 | BuildRequires: freetype-devel | |
43 | BuildRequires: fribidi-devel | |
44 | BuildRequires: gawk | |
63ff963e | 45 | BuildRequires: gettext-autopoint |
5a2f2b01 | 46 | BuildRequires: gettext-devel |
18b90c81 SP |
47 | BuildRequires: glew-devel |
48 | BuildRequires: gperf | |
37fbe511 | 49 | %{?with_hal:BuildRequires: hal-devel} |
5a2f2b01 | 50 | BuildRequires: jasper-devel |
37fbe511 | 51 | BuildRequires: jre |
b85db44b | 52 | BuildRequires: libass-devel |
37fbe511 KK |
53 | BuildRequires: libbluray-devel >= 0.2.1 |
54 | BuildRequires: libcap-devel | |
18b90c81 | 55 | BuildRequires: libcdio-devel |
37fbe511 | 56 | %{?with_cec:BuildRequires: libcec-devel} |
1aef2bca | 57 | %ifarch i686 pentium4 athlon %{x8664} |
5f83fc0f | 58 | BuildRequires: libcrystalhd-devel |
1aef2bca | 59 | %endif |
b85db44b | 60 | BuildRequires: libgcrypt-devel |
18b90c81 SP |
61 | BuildRequires: libjpeg-devel |
62 | BuildRequires: libmad-devel | |
63ff963e | 63 | BuildRequires: libmicrohttpd-devel |
63ff963e | 64 | BuildRequires: libmodplug-devel |
c462fd57 | 65 | BuildRequires: libmpeg2-devel |
18b90c81 | 66 | BuildRequires: libogg-devel |
b85db44b | 67 | BuildRequires: libplist-devel |
5a2f2b01 | 68 | BuildRequires: libpng-devel |
b85db44b | 69 | BuildRequires: librtmp-devel |
18b90c81 SP |
70 | BuildRequires: libsamplerate-devel |
71 | BuildRequires: libsmbclient-devel | |
b85db44b | 72 | BuildRequires: libssh-devel |
5a2f2b01 | 73 | BuildRequires: libtiff-devel |
74 | BuildRequires: libtool | |
b85db44b | 75 | BuildRequires: libva-devel |
5f83fc0f | 76 | BuildRequires: libva-glx-devel |
5a2f2b01 | 77 | BuildRequires: libvdpau-devel |
18b90c81 | 78 | BuildRequires: libvorbis-devel |
5a2f2b01 | 79 | BuildRequires: lzo-devel |
80 | BuildRequires: mysql-devel | |
c1b45330 | 81 | %ifarch %{ix86} |
26cae375 | 82 | BuildRequires: nasm |
c1b45330 | 83 | %endif |
18b90c81 | 84 | BuildRequires: openssl-devel |
63ff963e | 85 | BuildRequires: pcre-cxx-devel |
5a2f2b01 | 86 | BuildRequires: pkgconfig |
18b90c81 | 87 | BuildRequires: pulseaudio-devel |
b85db44b | 88 | BuildRequires: python-devel >= 2.4 |
3a71016a | 89 | BuildRequires: rpm-pythonprov |
6f41c837 | 90 | BuildRequires: rpmbuild(macros) >= 1.566 |
c462fd57 | 91 | # used internally |
92 | BuildRequires: sed >= 4.0 | |
18b90c81 | 93 | BuildRequires: sqlite3-devel |
37fbe511 KK |
94 | BuildRequires: swig |
95 | BuildRequires: taglib-devel >= 1.8 | |
7613a43d | 96 | BuildRequires: tinyxml-devel |
b85db44b | 97 | BuildRequires: udev-devel |
5a2f2b01 | 98 | BuildRequires: unzip |
b85db44b AF |
99 | BuildRequires: xorg-lib-libX11-devel |
100 | BuildRequires: xorg-lib-libXext-devel | |
5a2f2b01 | 101 | BuildRequires: xorg-lib-libXinerama-devel |
b85db44b | 102 | BuildRequires: xorg-lib-libXmu-devel |
18b90c81 | 103 | BuildRequires: xorg-lib-libXrandr-devel |
b85db44b | 104 | BuildRequires: xorg-lib-libXt-devel |
5a2f2b01 | 105 | BuildRequires: xorg-lib-libXtst-devel |
b85db44b | 106 | BuildRequires: yajl-devel |
18b90c81 SP |
107 | BuildRequires: zip |
108 | BuildRequires: zlib-devel | |
b85db44b AF |
109 | #https://github.com/sahlberg/libnfs |
110 | #BuildRequires: libnfs-devel | |
111 | #http://sites.google.com/site/alexthepuffin/home | |
112 | #BuildRequires: afpfs-ng-devel | |
113 | #http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz | |
114 | #https://github.com/albertz/shairport | |
115 | #BuildRequires: libshairport | |
63ff963e | 116 | Requires: /usr/bin/glxinfo |
f4f8f308 | 117 | Requires: SDL >= 1.2.14-5 |
a58652d4 SP |
118 | Requires: lsb-release |
119 | Requires: xorg-app-xdpyinfo | |
18b90c81 SP |
120 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
121 | ||
122 | %description | |
68612b1e ER |
123 | XBMC media center is a free cross-platform media-player jukebox and |
124 | entertainment hub. XBMC can play a spectrum of of multimedia formats, | |
125 | and featuring playlist, audio visualizations, slideshow, and weather | |
126 | forecast functions, together third-party plugins. | |
18b90c81 SP |
127 | |
128 | %prep | |
e3d1b54c | 129 | %setup -q -n %{name}-%{version}-%{codename} |
bfa116d7 | 130 | %patch0 -p1 |
18b90c81 SP |
131 | |
132 | %build | |
133 | ./bootstrap | |
65712ad3 | 134 | %configure \ |
51b524ca KK |
135 | --disable-debug \ |
136 | --enable-external-libraries \ | |
5f83fc0f | 137 | --enable-pulse \ |
b85db44b | 138 | --enable-udev \ |
b85db44b AF |
139 | --disable-libusb \ |
140 | --disable-nfs \ | |
141 | --disable-afpclient \ | |
142 | --disable-airtunes \ | |
b85db44b | 143 | %{__enable_disable goom} \ |
37fbe511 KK |
144 | %{__enable_disable hal} \ |
145 | %{__enable_disable libcec} | |
68612b1e | 146 | |
a0dfde4b | 147 | LIBS="-lpthread" |
b85db44b | 148 | %{__make} V=1 |
18b90c81 SP |
149 | |
150 | %install | |
151 | rm -rf $RPM_BUILD_ROOT | |
18b90c81 | 152 | %{__make} install \ |
92b96980 | 153 | DESTDIR=$RPM_BUILD_ROOT |
18b90c81 SP |
154 | |
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %files | |
159 | %defattr(644,root,root,755) | |
18b90c81 SP |
160 | %attr(755,root,root) %{_bindir}/* |
161 | %{_datadir}/%{name} | |
92b96980 | 162 | %attr(755,root,root) %{_libdir}/%{name} |
163 | %{_docdir}/%{name} | |
c1b45330 | 164 | %{_desktopdir}/%{name}.desktop |
92b96980 | 165 | %{_iconsdir}/hicolor/256x256/apps/%{name}.png |
166 | %{_iconsdir}/hicolor/48x48/apps/%{name}.png | |
3a71016a | 167 | %{_datadir}/xsessions/XBMC.desktop |