]> git.pld-linux.org Git - packages/kodi.git/blame - kodi.spec
add dlopened libraries
[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
68612b1e 10%bcond_without goom # build without goom visualisation
37fbe511 11%bcond_with hal # build with HAL
92b96980 12
92b53b2c 13%define codename Helix
68612b1e 14Summary: XBMC is a free and open source media-player and entertainment hub
92b53b2c
ER
15Name: kodi
16Version: 14.0
17Release: 0.1
68612b1e 18License: GPL v2+ and GPL v3+
18b90c81 19Group: Applications/Multimedia
92b53b2c
ER
20Source0: http://mirrors.kodi.tv/releases/source/%{version}-%{codename}.tar.gz
21# Source0-md5: 9717c539789789b8aeaf1dcfdb9f2c69
d2f0f4c7 22Patch0: jpeglib-boolean.patch
92b53b2c 23URL: http://kodi.tv/
b85db44b
AF
24BuildRequires: Mesa-libGLU-devel
25BuildRequires: OpenGL-devel
18b90c81
SP
26BuildRequires: SDL_image-devel
27BuildRequires: SDL_mixer-devel
28BuildRequires: alsa-lib-devel
29BuildRequires: autoconf
30BuildRequires: automake
31BuildRequires: avahi-devel
b85db44b 32BuildRequires: bluez-libs-devel >= 4.99
5a2f2b01 33BuildRequires: boost-devel
18b90c81
SP
34BuildRequires: bzip2-devel
35BuildRequires: cmake
36BuildRequires: curl-devel
37BuildRequires: dbus-devel
501e1d3e 38BuildRequires: doxygen
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
0747666f 46BuildRequires: gettext-tools
18b90c81
SP
47BuildRequires: glew-devel
48BuildRequires: gperf
37fbe511 49%{?with_hal:BuildRequires: hal-devel}
5a2f2b01 50BuildRequires: jasper-devel
37fbe511 51BuildRequires: jre
b85db44b 52BuildRequires: libass-devel
37fbe511
KK
53BuildRequires: libbluray-devel >= 0.2.1
54BuildRequires: libcap-devel
18b90c81 55BuildRequires: libcdio-devel
37fbe511 56%{?with_cec:BuildRequires: libcec-devel}
1aef2bca 57%ifarch i686 pentium4 athlon %{x8664}
5f83fc0f 58BuildRequires: libcrystalhd-devel
1aef2bca 59%endif
b85db44b 60BuildRequires: libgcrypt-devel
18b90c81 61BuildRequires: libjpeg-devel
45a200ab 62BuildRequires: libltdl-devel
18b90c81 63BuildRequires: libmad-devel
63ff963e 64BuildRequires: libmicrohttpd-devel
63ff963e 65BuildRequires: libmodplug-devel
c462fd57 66BuildRequires: libmpeg2-devel
18b90c81 67BuildRequires: libogg-devel
b85db44b 68BuildRequires: libplist-devel
5a2f2b01 69BuildRequires: libpng-devel
b85db44b 70BuildRequires: librtmp-devel
18b90c81
SP
71BuildRequires: libsamplerate-devel
72BuildRequires: libsmbclient-devel
b85db44b 73BuildRequires: libssh-devel
5a2f2b01 74BuildRequires: libtiff-devel
75BuildRequires: libtool
b85db44b 76BuildRequires: libva-devel
5f83fc0f 77BuildRequires: libva-glx-devel
5a2f2b01 78BuildRequires: libvdpau-devel
18b90c81 79BuildRequires: libvorbis-devel
501e1d3e 80BuildRequires: libxslt-devel
5a2f2b01 81BuildRequires: lzo-devel
82BuildRequires: mysql-devel
c1b45330 83%ifarch %{ix86}
26cae375 84BuildRequires: nasm
c1b45330 85%endif
18b90c81 86BuildRequires: openssl-devel
63ff963e 87BuildRequires: pcre-cxx-devel
5a2f2b01 88BuildRequires: pkgconfig
18b90c81 89BuildRequires: pulseaudio-devel
b85db44b 90BuildRequires: python-devel >= 2.4
3a71016a 91BuildRequires: rpm-pythonprov
6f41c837 92BuildRequires: rpmbuild(macros) >= 1.566
c462fd57 93# used internally
94BuildRequires: sed >= 4.0
18b90c81 95BuildRequires: sqlite3-devel
37fbe511
KK
96BuildRequires: swig
97BuildRequires: taglib-devel >= 1.8
7613a43d 98BuildRequires: tinyxml-devel
b85db44b 99BuildRequires: udev-devel
5a2f2b01 100BuildRequires: unzip
b85db44b
AF
101BuildRequires: xorg-lib-libX11-devel
102BuildRequires: xorg-lib-libXext-devel
5a2f2b01 103BuildRequires: xorg-lib-libXinerama-devel
b85db44b 104BuildRequires: xorg-lib-libXmu-devel
18b90c81 105BuildRequires: xorg-lib-libXrandr-devel
b85db44b 106BuildRequires: xorg-lib-libXt-devel
5a2f2b01 107BuildRequires: xorg-lib-libXtst-devel
b85db44b 108BuildRequires: yajl-devel
501e1d3e 109BuildRequires: yasm
18b90c81
SP
110BuildRequires: zip
111BuildRequires: zlib-devel
b85db44b
AF
112#https://github.com/sahlberg/libnfs
113#BuildRequires: libnfs-devel
114#http://sites.google.com/site/alexthepuffin/home
115#BuildRequires: afpfs-ng-devel
116#http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz
117#https://github.com/albertz/shairport
118#BuildRequires: libshairport
63ff963e 119Requires: /usr/bin/glxinfo
f4f8f308 120Requires: SDL >= 1.2.14-5
a58652d4
SP
121Requires: lsb-release
122Requires: xorg-app-xdpyinfo
06c1bb12
ER
123# dlopened libraries:
124# grep 'DLL_PATH_.*lib.*\.so' ./xbmc/DllPaths_generated.h | grep -v special://
125Requires: curl-libs
126Requires: libass
127Requires: libbluray
128Requires: libmodplug
129Requires: libmpeg2-libs
130Requires: libogg
131Requires: libplist
132Requires: libvorbis
92b53b2c 133Obsoletes: xbmc < 14.0
18b90c81
SP
134BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
135
136%description
68612b1e
ER
137XBMC media center is a free cross-platform media-player jukebox and
138entertainment hub. XBMC can play a spectrum of of multimedia formats,
139and featuring playlist, audio visualizations, slideshow, and weather
140forecast functions, together third-party plugins.
18b90c81
SP
141
142%prep
92b53b2c 143%setup -q -n xbmc-%{version}-%{codename}
bfa116d7 144%patch0 -p1
18b90c81
SP
145
146%build
147./bootstrap
65712ad3 148%configure \
51b524ca
KK
149 --disable-debug \
150 --enable-external-libraries \
5f83fc0f 151 --enable-pulse \
b85db44b 152 --enable-udev \
b85db44b
AF
153 --disable-libusb \
154 --disable-nfs \
155 --disable-afpclient \
156 --disable-airtunes \
b85db44b 157 %{__enable_disable goom} \
37fbe511
KK
158 %{__enable_disable hal} \
159 %{__enable_disable libcec}
68612b1e 160
a0dfde4b 161LIBS="-lpthread"
b85db44b 162%{__make} V=1
18b90c81
SP
163
164%install
165rm -rf $RPM_BUILD_ROOT
18b90c81 166%{__make} install \
92b96980 167 DESTDIR=$RPM_BUILD_ROOT
18b90c81 168
25890c53
ER
169%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
170
171# no -devel package yet
172%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/kodi
173%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/xbmc
174
18b90c81
SP
175%clean
176rm -rf $RPM_BUILD_ROOT
177
178%files
179%defattr(644,root,root,755)
25890c53
ER
180%doc README.md docs/README.linux
181%attr(755,root,root) %{_bindir}/kodi
182%attr(755,root,root) %{_bindir}/kodi-standalone
18b90c81 183%{_datadir}/%{name}
92b96980 184%attr(755,root,root) %{_libdir}/%{name}
25890c53
ER
185%{_desktopdir}/kodi.desktop
186%{_iconsdir}/hicolor/*/apps/%{name}.png
187%{_datadir}/xsessions/kodi.desktop
188
189# legacy xbmc compatibility links
190%attr(755,root,root) %{_bindir}/xbmc
191%attr(755,root,root) %{_bindir}/xbmc-standalone
192%{_libdir}/xbmc
193%{_datadir}/xbmc
194%{_datadir}/xsessions/xbmc.desktop
This page took 1.361326 seconds and 4 git commands to generate.