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