]> git.pld-linux.org Git - packages/kodi.git/blame - kodi.spec
updated files
[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
c462fd57 38BuildRequires: ffmpeg-devel
5a2f2b01 39BuildRequires: flac-devel
18b90c81
SP
40BuildRequires: fontconfig-devel
41BuildRequires: freetype-devel
42BuildRequires: fribidi-devel
43BuildRequires: gawk
63ff963e 44BuildRequires: gettext-autopoint
0747666f 45BuildRequires: gettext-tools
18b90c81
SP
46BuildRequires: glew-devel
47BuildRequires: gperf
37fbe511 48%{?with_hal:BuildRequires: hal-devel}
5a2f2b01 49BuildRequires: jasper-devel
37fbe511 50BuildRequires: jre
b85db44b 51BuildRequires: libass-devel
37fbe511
KK
52BuildRequires: libbluray-devel >= 0.2.1
53BuildRequires: libcap-devel
18b90c81 54BuildRequires: libcdio-devel
37fbe511 55%{?with_cec:BuildRequires: libcec-devel}
1aef2bca 56%ifarch i686 pentium4 athlon %{x8664}
5f83fc0f 57BuildRequires: libcrystalhd-devel
1aef2bca 58%endif
b85db44b 59BuildRequires: libgcrypt-devel
18b90c81 60BuildRequires: libjpeg-devel
45a200ab 61BuildRequires: libltdl-devel
18b90c81 62BuildRequires: libmad-devel
63ff963e 63BuildRequires: libmicrohttpd-devel
63ff963e 64BuildRequires: libmodplug-devel
c462fd57 65BuildRequires: libmpeg2-devel
18b90c81 66BuildRequires: libogg-devel
b85db44b 67BuildRequires: libplist-devel
5a2f2b01 68BuildRequires: libpng-devel
b85db44b 69BuildRequires: librtmp-devel
18b90c81
SP
70BuildRequires: libsamplerate-devel
71BuildRequires: libsmbclient-devel
b85db44b 72BuildRequires: libssh-devel
5a2f2b01 73BuildRequires: libtiff-devel
74BuildRequires: libtool
b85db44b 75BuildRequires: libva-devel
5f83fc0f 76BuildRequires: libva-glx-devel
5a2f2b01 77BuildRequires: libvdpau-devel
18b90c81 78BuildRequires: libvorbis-devel
5a2f2b01 79BuildRequires: lzo-devel
80BuildRequires: mysql-devel
c1b45330 81%ifarch %{ix86}
26cae375 82BuildRequires: nasm
c1b45330 83%endif
18b90c81 84BuildRequires: openssl-devel
63ff963e 85BuildRequires: pcre-cxx-devel
5a2f2b01 86BuildRequires: pkgconfig
18b90c81 87BuildRequires: pulseaudio-devel
b85db44b 88BuildRequires: python-devel >= 2.4
3a71016a 89BuildRequires: rpm-pythonprov
6f41c837 90BuildRequires: rpmbuild(macros) >= 1.566
c462fd57 91# used internally
92BuildRequires: sed >= 4.0
18b90c81 93BuildRequires: sqlite3-devel
37fbe511
KK
94BuildRequires: swig
95BuildRequires: taglib-devel >= 1.8
7613a43d 96BuildRequires: tinyxml-devel
b85db44b 97BuildRequires: udev-devel
5a2f2b01 98BuildRequires: unzip
b85db44b
AF
99BuildRequires: xorg-lib-libX11-devel
100BuildRequires: xorg-lib-libXext-devel
5a2f2b01 101BuildRequires: xorg-lib-libXinerama-devel
b85db44b 102BuildRequires: xorg-lib-libXmu-devel
18b90c81 103BuildRequires: xorg-lib-libXrandr-devel
b85db44b 104BuildRequires: xorg-lib-libXt-devel
5a2f2b01 105BuildRequires: xorg-lib-libXtst-devel
b85db44b 106BuildRequires: yajl-devel
18b90c81
SP
107BuildRequires: zip
108BuildRequires: zlib-devel
b85db44b
AF
109#https://github.com/sahlberg/libnfs
110#BuildRequires: libnfs-devel
111#http://sites.google.com/site/alexthepuffin/home
112#BuildRequires: afpfs-ng-devel
113#http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz
114#https://github.com/albertz/shairport
115#BuildRequires: libshairport
63ff963e 116Requires: /usr/bin/glxinfo
f4f8f308 117Requires: SDL >= 1.2.14-5
a58652d4
SP
118Requires: lsb-release
119Requires: xorg-app-xdpyinfo
92b53b2c 120Obsoletes: xbmc < 14.0
18b90c81
SP
121BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
122
123%description
68612b1e
ER
124XBMC media center is a free cross-platform media-player jukebox and
125entertainment hub. XBMC can play a spectrum of of multimedia formats,
126and featuring playlist, audio visualizations, slideshow, and weather
127forecast functions, together third-party plugins.
18b90c81
SP
128
129%prep
92b53b2c 130%setup -q -n xbmc-%{version}-%{codename}
bfa116d7 131%patch0 -p1
18b90c81
SP
132
133%build
134./bootstrap
65712ad3 135%configure \
51b524ca
KK
136 --disable-debug \
137 --enable-external-libraries \
5f83fc0f 138 --enable-pulse \
b85db44b 139 --enable-udev \
b85db44b
AF
140 --disable-libusb \
141 --disable-nfs \
142 --disable-afpclient \
143 --disable-airtunes \
b85db44b 144 %{__enable_disable goom} \
37fbe511
KK
145 %{__enable_disable hal} \
146 %{__enable_disable libcec}
68612b1e 147
a0dfde4b 148LIBS="-lpthread"
b85db44b 149%{__make} V=1
18b90c81
SP
150
151%install
152rm -rf $RPM_BUILD_ROOT
18b90c81 153%{__make} install \
92b96980 154 DESTDIR=$RPM_BUILD_ROOT
18b90c81 155
25890c53
ER
156%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
157
158# no -devel package yet
159%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/kodi
160%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/xbmc
161
18b90c81
SP
162%clean
163rm -rf $RPM_BUILD_ROOT
164
165%files
166%defattr(644,root,root,755)
25890c53
ER
167%doc README.md docs/README.linux
168%attr(755,root,root) %{_bindir}/kodi
169%attr(755,root,root) %{_bindir}/kodi-standalone
18b90c81 170%{_datadir}/%{name}
92b96980 171%attr(755,root,root) %{_libdir}/%{name}
25890c53
ER
172%{_desktopdir}/kodi.desktop
173%{_iconsdir}/hicolor/*/apps/%{name}.png
174%{_datadir}/xsessions/kodi.desktop
175
176# legacy xbmc compatibility links
177%attr(755,root,root) %{_bindir}/xbmc
178%attr(755,root,root) %{_bindir}/xbmc-standalone
179%{_libdir}/xbmc
180%{_datadir}/xbmc
181%{_datadir}/xsessions/xbmc.desktop
This page took 0.327411 seconds and 4 git commands to generate.