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