3 # - fix build flags - some files are compiled with -O3 and without rpm*flags
4 # - fix linking argument order
5 # - add and/or fix users/groups permissions
6 # - split to subpackages?
9 %bcond_without cec # build without cec support
10 %bcond_without goom # build without goom visualisation
11 %bcond_with hal # build with HAL
13 %define codename Helix
14 Summary: XBMC is a free and open source media-player and entertainment hub
18 License: GPL v2+ and GPL v3+
19 Group: Applications/Multimedia
20 Source0: http://mirrors.kodi.tv/releases/source/%{version}-%{codename}.tar.gz
21 # Source0-md5: 9717c539789789b8aeaf1dcfdb9f2c69
22 Patch0: jpeglib-boolean.patch
24 BuildRequires: Mesa-libGLU-devel
25 BuildRequires: OpenGL-devel
26 BuildRequires: SDL_image-devel
27 BuildRequires: SDL_mixer-devel
28 BuildRequires: alsa-lib-devel
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: avahi-devel
32 BuildRequires: bluez-libs-devel >= 4.99
33 BuildRequires: boost-devel
34 BuildRequires: bzip2-devel
36 BuildRequires: curl-devel
37 BuildRequires: dbus-devel
38 # AUTO: -- which: no doxygen in (/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin)
39 BuildRequires: doxygen
40 BuildRequires: ffmpeg-devel
41 BuildRequires: flac-devel
42 BuildRequires: fontconfig-devel
43 BuildRequires: freetype-devel
44 BuildRequires: fribidi-devel
46 BuildRequires: gettext-autopoint
47 BuildRequires: gettext-tools
48 BuildRequires: glew-devel
50 %{?with_hal:BuildRequires: hal-devel}
51 BuildRequires: jasper-devel
53 BuildRequires: libass-devel
54 BuildRequires: libbluray-devel >= 0.2.1
55 BuildRequires: libcap-devel
56 BuildRequires: libcdio-devel
57 %{?with_cec:BuildRequires: libcec-devel}
58 %ifarch i686 pentium4 athlon %{x8664}
59 BuildRequires: libcrystalhd-devel
61 BuildRequires: libgcrypt-devel
62 BuildRequires: libjpeg-devel
63 BuildRequires: libltdl-devel
64 BuildRequires: libmad-devel
65 BuildRequires: libmicrohttpd-devel
66 BuildRequires: libmodplug-devel
67 BuildRequires: libmpeg2-devel
68 BuildRequires: libogg-devel
69 BuildRequires: libplist-devel
70 BuildRequires: libpng-devel
71 BuildRequires: librtmp-devel
72 BuildRequires: libsamplerate-devel
73 BuildRequires: libsmbclient-devel
74 BuildRequires: libssh-devel
75 BuildRequires: libtiff-devel
76 BuildRequires: libtool
77 BuildRequires: libva-devel
78 BuildRequires: libva-glx-devel
79 BuildRequires: libvdpau-devel
80 BuildRequires: libvorbis-devel
81 # AUTO: -- Package libxslt was not found in the pkg-config search path.
82 BuildRequires: libxslt-devel
83 BuildRequires: lzo-devel
84 BuildRequires: mysql-devel
88 BuildRequires: openssl-devel
89 BuildRequires: pcre-cxx-devel
90 BuildRequires: pkgconfig
91 BuildRequires: pulseaudio-devel
92 BuildRequires: python-devel >= 2.4
93 BuildRequires: rpm-pythonprov
94 BuildRequires: rpmbuild(macros) >= 1.566
96 BuildRequires: sed >= 4.0
97 BuildRequires: sqlite3-devel
99 BuildRequires: taglib-devel >= 1.8
100 BuildRequires: tinyxml-devel
101 BuildRequires: udev-devel
103 BuildRequires: xorg-lib-libX11-devel
104 BuildRequires: xorg-lib-libXext-devel
105 BuildRequires: xorg-lib-libXinerama-devel
106 BuildRequires: xorg-lib-libXmu-devel
107 BuildRequires: xorg-lib-libXrandr-devel
108 BuildRequires: xorg-lib-libXt-devel
109 BuildRequires: xorg-lib-libXtst-devel
110 BuildRequires: yajl-devel
111 # AUTO: -- ./configure[3718]: yasm: not found
114 BuildRequires: zlib-devel
115 #https://github.com/sahlberg/libnfs
116 #BuildRequires: libnfs-devel
117 #http://sites.google.com/site/alexthepuffin/home
118 #BuildRequires: afpfs-ng-devel
119 #http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz
120 #https://github.com/albertz/shairport
121 #BuildRequires: libshairport
122 Requires: /usr/bin/glxinfo
123 Requires: SDL >= 1.2.14-5
124 Requires: lsb-release
125 Requires: xorg-app-xdpyinfo
126 Obsoletes: xbmc < 14.0
127 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
130 XBMC media center is a free cross-platform media-player jukebox and
131 entertainment hub. XBMC can play a spectrum of of multimedia formats,
132 and featuring playlist, audio visualizations, slideshow, and weather
133 forecast functions, together third-party plugins.
136 %setup -q -n xbmc-%{version}-%{codename}
143 --enable-external-libraries \
148 --disable-afpclient \
150 %{__enable_disable goom} \
151 %{__enable_disable hal} \
152 %{__enable_disable libcec}
158 rm -rf $RPM_BUILD_ROOT
160 DESTDIR=$RPM_BUILD_ROOT
162 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
164 # no -devel package yet
165 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/kodi
166 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/xbmc
169 rm -rf $RPM_BUILD_ROOT
172 %defattr(644,root,root,755)
173 %doc README.md docs/README.linux
174 %attr(755,root,root) %{_bindir}/kodi
175 %attr(755,root,root) %{_bindir}/kodi-standalone
177 %attr(755,root,root) %{_libdir}/%{name}
178 %{_desktopdir}/kodi.desktop
179 %{_iconsdir}/hicolor/*/apps/%{name}.png
180 %{_datadir}/xsessions/kodi.desktop
182 # legacy xbmc compatibility links
183 %attr(755,root,root) %{_bindir}/xbmc
184 %attr(755,root,root) %{_bindir}/xbmc-standalone
187 %{_datadir}/xsessions/xbmc.desktop