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