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 BuildRequires: doxygen
39 BuildRequires: ffmpeg-devel
40 BuildRequires: flac-devel
41 BuildRequires: fontconfig-devel
42 BuildRequires: freetype-devel
43 BuildRequires: fribidi-devel
45 BuildRequires: gettext-autopoint
46 BuildRequires: gettext-tools
47 BuildRequires: glew-devel
49 %{?with_hal:BuildRequires: hal-devel}
50 BuildRequires: jasper-devel
52 BuildRequires: libass-devel
53 BuildRequires: libbluray-devel >= 0.2.1
54 BuildRequires: libcap-devel
55 BuildRequires: libcdio-devel
56 %{?with_cec:BuildRequires: libcec-devel}
57 %ifarch i686 pentium4 athlon %{x8664}
58 BuildRequires: libcrystalhd-devel
60 BuildRequires: libgcrypt-devel
61 BuildRequires: libjpeg-devel
62 BuildRequires: libltdl-devel
63 BuildRequires: libmad-devel
64 BuildRequires: libmicrohttpd-devel
65 BuildRequires: libmodplug-devel
66 BuildRequires: libmpeg2-devel
67 BuildRequires: libogg-devel
68 BuildRequires: libplist-devel
69 BuildRequires: libpng-devel
70 BuildRequires: librtmp-devel
71 BuildRequires: libsamplerate-devel
72 BuildRequires: libsmbclient-devel
73 BuildRequires: libssh-devel
74 BuildRequires: libtiff-devel
75 BuildRequires: libtool
76 BuildRequires: libva-devel
77 BuildRequires: libva-glx-devel
78 BuildRequires: libvdpau-devel
79 BuildRequires: libvorbis-devel
80 BuildRequires: libxslt-devel
81 BuildRequires: lzo-devel
82 BuildRequires: mysql-devel
86 BuildRequires: openssl-devel
87 BuildRequires: pcre-cxx-devel
88 BuildRequires: pkgconfig
89 BuildRequires: pulseaudio-devel
90 BuildRequires: python-devel >= 2.4
91 BuildRequires: rpm-pythonprov
92 BuildRequires: rpmbuild(macros) >= 1.566
94 BuildRequires: sed >= 4.0
95 BuildRequires: sqlite3-devel
97 BuildRequires: taglib-devel >= 1.8
98 BuildRequires: tinyxml-devel
99 BuildRequires: udev-devel
101 BuildRequires: xorg-lib-libX11-devel
102 BuildRequires: xorg-lib-libXext-devel
103 BuildRequires: xorg-lib-libXinerama-devel
104 BuildRequires: xorg-lib-libXmu-devel
105 BuildRequires: xorg-lib-libXrandr-devel
106 BuildRequires: xorg-lib-libXt-devel
107 BuildRequires: xorg-lib-libXtst-devel
108 BuildRequires: yajl-devel
111 BuildRequires: zlib-devel
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
119 Requires: /usr/bin/glxinfo
120 Requires: SDL >= 1.2.14-5
121 Requires: lsb-release
122 Requires: xorg-app-xdpyinfo
123 # dlopened libraries:
124 # grep 'DLL_PATH_.*lib.*\.so' ./xbmc/DllPaths_generated.h | grep -v special://
129 Requires: libmpeg2-libs
133 Obsoletes: xbmc < 14.0
134 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
137 XBMC media center is a free cross-platform media-player jukebox and
138 entertainment hub. XBMC can play a spectrum of of multimedia formats,
139 and featuring playlist, audio visualizations, slideshow, and weather
140 forecast functions, together third-party plugins.
143 %setup -q -n xbmc-%{version}-%{codename}
150 --enable-external-libraries \
155 --disable-afpclient \
157 %{__enable_disable goom} \
158 %{__enable_disable hal} \
159 %{__enable_disable libcec}
165 rm -rf $RPM_BUILD_ROOT
167 DESTDIR=$RPM_BUILD_ROOT
169 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
171 # no -devel package yet
172 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/kodi
173 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/xbmc
176 rm -rf $RPM_BUILD_ROOT
179 %defattr(644,root,root,755)
180 %doc README.md docs/README.linux
181 %attr(755,root,root) %{_bindir}/kodi
182 %attr(755,root,root) %{_bindir}/kodi-standalone
184 %attr(755,root,root) %{_libdir}/%{name}
185 %{_desktopdir}/kodi.desktop
186 %{_iconsdir}/hicolor/*/apps/%{name}.png
187 %{_datadir}/xsessions/kodi.desktop
189 # legacy xbmc compatibility links
190 %attr(755,root,root) %{_bindir}/xbmc
191 %attr(755,root,root) %{_bindir}/xbmc-standalone
194 %{_datadir}/xsessions/xbmc.desktop