]> git.pld-linux.org Git - packages/kodi.git/blame - kodi.spec
ensure consistent build: add all 'default is auto' options
[packages/kodi.git] / kodi.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
92b96980 5# - add and/or fix users/groups permissions
63ff963e 6# - split to subpackages?
18b90c81 7#
92b96980 8# Conditional build:
c0d69361
ER
9%bcond_with afpclient # AFP support via libafpclient
10%bcond_without airplay # AirPlay support
11%bcond_with airtunes # AirTunes support
98f23c16
ER
12%bcond_without dvdcss # DVDCSS support
13%bcond_without fishbmc # FishBMC visualisation
14%bcond_without gl # OpenGL rendering
15%bcond_without goom # GOOM visualisation
16%bcond_with gtest # configure Google Test Framework
37fbe511 17%bcond_with hal # build with HAL
98f23c16 18%bcond_without joystick # SDL joystick support
c0d69361
ER
19%bcond_without libcap # libcap support
20%bcond_with libcec # libcec support
21%bcond_with libusb # libusb support
22%bcond_with mdnsembedded # mDNSEmbedded support
23%bcond_with nfs # NFS support via libnfs
24%bcond_with openmax # OpenMax decoding, requires OpenGLES
98f23c16 25%bcond_without projectm # ProjectM visualisation
c0d69361 26%bcond_without pulse # PulseAudio support
98f23c16 27%bcond_without rsxs # really slick X screensavers
c0d69361
ER
28%bcond_without rtmp # RTMP support via librtmp
29%bcond_without sdl # SDL
98f23c16
ER
30%bcond_without spectrum # Spectrum visualisation
31%bcond_without texturepacker # texturepacker support
c0d69361
ER
32%bcond_without udev # udev support
33%bcond_without vaapi # VAAPI decoding
34%bcond_without vdpau # VDPAU decoding
35%bcond_with vtbdecoder # VTBDecoder decoding (VTB Decoder not supported on this platform)
98f23c16
ER
36%bcond_without waveform # Waveform visualisation
37%bcond_without x11 # x11 'Linux Only'
38%bcond_without xrandr # XRandR support
92b96980 39
92b53b2c 40%define codename Helix
d61811e9 41Summary: Kodi is a free and open source media-player and entertainment hub
92b53b2c
ER
42Name: kodi
43Version: 14.0
44Release: 0.1
68612b1e 45License: GPL v2+ and GPL v3+
18b90c81 46Group: Applications/Multimedia
92b53b2c
ER
47Source0: http://mirrors.kodi.tv/releases/source/%{version}-%{codename}.tar.gz
48# Source0-md5: 9717c539789789b8aeaf1dcfdb9f2c69
d2f0f4c7 49Patch0: jpeglib-boolean.patch
92b53b2c 50URL: http://kodi.tv/
b85db44b
AF
51BuildRequires: Mesa-libGLU-devel
52BuildRequires: OpenGL-devel
658b3aff 53BuildRequires: SDL2-devel
18b90c81
SP
54BuildRequires: SDL_image-devel
55BuildRequires: SDL_mixer-devel
56BuildRequires: alsa-lib-devel
57BuildRequires: autoconf
58BuildRequires: automake
59BuildRequires: avahi-devel
b85db44b 60BuildRequires: bluez-libs-devel >= 4.99
5a2f2b01 61BuildRequires: boost-devel
18b90c81
SP
62BuildRequires: bzip2-devel
63BuildRequires: cmake
64BuildRequires: curl-devel
65BuildRequires: dbus-devel
501e1d3e 66BuildRequires: doxygen
c462fd57 67BuildRequires: ffmpeg-devel
5a2f2b01 68BuildRequires: flac-devel
18b90c81
SP
69BuildRequires: fontconfig-devel
70BuildRequires: freetype-devel
71BuildRequires: fribidi-devel
72BuildRequires: gawk
63ff963e 73BuildRequires: gettext-autopoint
0747666f 74BuildRequires: gettext-tools
18b90c81
SP
75BuildRequires: glew-devel
76BuildRequires: gperf
37fbe511 77%{?with_hal:BuildRequires: hal-devel}
5a2f2b01 78BuildRequires: jasper-devel
37fbe511 79BuildRequires: jre
b85db44b 80BuildRequires: libass-devel
37fbe511
KK
81BuildRequires: libbluray-devel >= 0.2.1
82BuildRequires: libcap-devel
18b90c81 83BuildRequires: libcdio-devel
c0d69361 84%{?with_libcec:BuildRequires: libcec-devel}
1aef2bca 85%ifarch i686 pentium4 athlon %{x8664}
5f83fc0f 86BuildRequires: libcrystalhd-devel
1aef2bca 87%endif
b85db44b 88BuildRequires: libgcrypt-devel
18b90c81 89BuildRequires: libjpeg-devel
45a200ab 90BuildRequires: libltdl-devel
18b90c81 91BuildRequires: libmad-devel
63ff963e 92BuildRequires: libmicrohttpd-devel
63ff963e 93BuildRequires: libmodplug-devel
c462fd57 94BuildRequires: libmpeg2-devel
18b90c81 95BuildRequires: libogg-devel
b85db44b 96BuildRequires: libplist-devel
5a2f2b01 97BuildRequires: libpng-devel
b85db44b 98BuildRequires: librtmp-devel
18b90c81
SP
99BuildRequires: libsamplerate-devel
100BuildRequires: libsmbclient-devel
b85db44b 101BuildRequires: libssh-devel
5a2f2b01 102BuildRequires: libtiff-devel
103BuildRequires: libtool
b85db44b 104BuildRequires: libva-devel
5f83fc0f 105BuildRequires: libva-glx-devel
5a2f2b01 106BuildRequires: libvdpau-devel
18b90c81 107BuildRequires: libvorbis-devel
501e1d3e 108BuildRequires: libxslt-devel
5a2f2b01 109BuildRequires: lzo-devel
110BuildRequires: mysql-devel
c1b45330 111%ifarch %{ix86}
26cae375 112BuildRequires: nasm
c1b45330 113%endif
18b90c81 114BuildRequires: openssl-devel
63ff963e 115BuildRequires: pcre-cxx-devel
5a2f2b01 116BuildRequires: pkgconfig
18b90c81 117BuildRequires: pulseaudio-devel
b85db44b 118BuildRequires: python-devel >= 2.4
3a71016a 119BuildRequires: rpm-pythonprov
6f41c837 120BuildRequires: rpmbuild(macros) >= 1.566
c462fd57 121# used internally
122BuildRequires: sed >= 4.0
18b90c81 123BuildRequires: sqlite3-devel
37fbe511
KK
124BuildRequires: swig
125BuildRequires: taglib-devel >= 1.8
7613a43d 126BuildRequires: tinyxml-devel
b85db44b 127BuildRequires: udev-devel
5a2f2b01 128BuildRequires: unzip
b85db44b
AF
129BuildRequires: xorg-lib-libX11-devel
130BuildRequires: xorg-lib-libXext-devel
5a2f2b01 131BuildRequires: xorg-lib-libXinerama-devel
b85db44b 132BuildRequires: xorg-lib-libXmu-devel
18b90c81 133BuildRequires: xorg-lib-libXrandr-devel
b85db44b 134BuildRequires: xorg-lib-libXt-devel
5a2f2b01 135BuildRequires: xorg-lib-libXtst-devel
b85db44b 136BuildRequires: yajl-devel
501e1d3e 137BuildRequires: yasm
18b90c81
SP
138BuildRequires: zip
139BuildRequires: zlib-devel
b85db44b
AF
140#https://github.com/sahlberg/libnfs
141#BuildRequires: libnfs-devel
142#http://sites.google.com/site/alexthepuffin/home
143#BuildRequires: afpfs-ng-devel
144#http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz
145#https://github.com/albertz/shairport
146#BuildRequires: libshairport
63ff963e 147Requires: /usr/bin/glxinfo
f4f8f308 148Requires: SDL >= 1.2.14-5
a58652d4
SP
149Requires: lsb-release
150Requires: xorg-app-xdpyinfo
06c1bb12 151# dlopened libraries:
d61811e9 152# grep 'DLL_PATH_.*lib.*\.so' xbmc/DllPaths_generated.h | grep -v special://
06c1bb12
ER
153Requires: curl-libs
154Requires: libass
155Requires: libbluray
156Requires: libmodplug
157Requires: libmpeg2-libs
158Requires: libogg
159Requires: libplist
160Requires: libvorbis
92b53b2c 161Obsoletes: xbmc < 14.0
18b90c81
SP
162BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
163
164%description
d61811e9
ER
165Kodi Entertainment Center (formerly XBMC) is a free and open-source
166media player software developed by the XBMC Foundation, a non-profit
167technology consortium. Kodi is available for multiple operating
168systems and hardware platforms, with a software 10-foot user interface
169for use with televisions and remote controls. It allows users to play
170and view most videos, music, such as podcasts from the internet, and
171all common digital media files from local and network storage media.
18b90c81
SP
172
173%prep
92b53b2c 174%setup -q -n xbmc-%{version}-%{codename}
bfa116d7 175%patch0 -p1
18b90c81
SP
176
177%build
178./bootstrap
65712ad3 179%configure \
ace9791d 180 --disable-silent-rules \
51b524ca 181 --disable-debug \
ace9791d 182 --disable-ccache \
c0d69361
ER
183 %{__enable_disable afpclient} \
184 %{__enable_disable airplay} \
185 %{__enable_disable airtunes} \
98f23c16
ER
186 %{__enable_disable dvdcss} \
187 %{__enable_disable fishbmc} \
188 %{__enable_disable gl} \
b85db44b 189 %{__enable_disable goom} \
98f23c16
ER
190 %{__enable_disable gtest} \
191 %{__enable_disable gtexturepacker} \
37fbe511 192 %{__enable_disable hal} \
98f23c16 193 %{__enable_disable joystick} \
c0d69361 194 %{__enable_disable libcap} \
98f23c16 195 %{__enable_disable libcec} \
c0d69361
ER
196 %{__enable_disable libusb} \
197 %{__enable_disable mdnsembedded} \
198 %{__enable_disable nfs} \
199 %{__enable_disable openmax} \
98f23c16 200 %{__enable_disable projectm} \
c0d69361 201 %{__enable_disable pulse} \
98f23c16 202 %{__enable_disable rsxs} \
c0d69361
ER
203 %{__enable_disable rtmp} \
204 %{__enable_disable sdl} \
98f23c16 205 %{__enable_disable spectrum} \
c0d69361
ER
206 %{__enable_disable udev} \
207 %{__enable_disable vaapi} \
208 %{__enable_disable vdpau} \
209 %{__enable_disable vtbdecoder} \
98f23c16
ER
210 %{__enable_disable waveform} \
211 %{__enable_disable x11} \
212 %{__enable_disable xrandr} \
213 %{nil}
68612b1e 214
ace9791d 215%{__make}
18b90c81
SP
216
217%install
218rm -rf $RPM_BUILD_ROOT
18b90c81 219%{__make} install \
92b96980 220 DESTDIR=$RPM_BUILD_ROOT
18b90c81 221
25890c53
ER
222%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
223
224# no -devel package yet
225%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/kodi
226%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/xbmc
227
18b90c81
SP
228%clean
229rm -rf $RPM_BUILD_ROOT
230
231%files
232%defattr(644,root,root,755)
25890c53
ER
233%doc README.md docs/README.linux
234%attr(755,root,root) %{_bindir}/kodi
235%attr(755,root,root) %{_bindir}/kodi-standalone
18b90c81 236%{_datadir}/%{name}
92b96980 237%attr(755,root,root) %{_libdir}/%{name}
25890c53
ER
238%{_desktopdir}/kodi.desktop
239%{_iconsdir}/hicolor/*/apps/%{name}.png
240%{_datadir}/xsessions/kodi.desktop
241
242# legacy xbmc compatibility links
243%attr(755,root,root) %{_bindir}/xbmc
244%attr(755,root,root) %{_bindir}/xbmc-standalone
245%{_libdir}/xbmc
246%{_datadir}/xbmc
247%{_datadir}/xsessions/xbmc.desktop
This page took 0.127528 seconds and 4 git commands to generate.