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