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