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