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