]>
Commit | Line | Data |
---|---|---|
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 | 26 | Summary: Kodi is a free and open source media-player and entertainment hub |
92b53b2c ER |
27 | Name: kodi |
28 | Version: 14.0 | |
29 | Release: 0.1 | |
68612b1e | 30 | License: GPL v2+ and GPL v3+ |
18b90c81 | 31 | Group: Applications/Multimedia |
92b53b2c ER |
32 | Source0: http://mirrors.kodi.tv/releases/source/%{version}-%{codename}.tar.gz |
33 | # Source0-md5: 9717c539789789b8aeaf1dcfdb9f2c69 | |
d2f0f4c7 | 34 | Patch0: jpeglib-boolean.patch |
92b53b2c | 35 | URL: http://kodi.tv/ |
b85db44b AF |
36 | BuildRequires: Mesa-libGLU-devel |
37 | BuildRequires: OpenGL-devel | |
658b3aff | 38 | BuildRequires: SDL2-devel |
18b90c81 SP |
39 | BuildRequires: SDL_image-devel |
40 | BuildRequires: SDL_mixer-devel | |
41 | BuildRequires: alsa-lib-devel | |
42 | BuildRequires: autoconf | |
43 | BuildRequires: automake | |
44 | BuildRequires: avahi-devel | |
b85db44b | 45 | BuildRequires: bluez-libs-devel >= 4.99 |
5a2f2b01 | 46 | BuildRequires: boost-devel |
18b90c81 SP |
47 | BuildRequires: bzip2-devel |
48 | BuildRequires: cmake | |
49 | BuildRequires: curl-devel | |
50 | BuildRequires: dbus-devel | |
501e1d3e | 51 | BuildRequires: doxygen |
c462fd57 | 52 | BuildRequires: ffmpeg-devel |
5a2f2b01 | 53 | BuildRequires: flac-devel |
18b90c81 SP |
54 | BuildRequires: fontconfig-devel |
55 | BuildRequires: freetype-devel | |
56 | BuildRequires: fribidi-devel | |
57 | BuildRequires: gawk | |
63ff963e | 58 | BuildRequires: gettext-autopoint |
0747666f | 59 | BuildRequires: gettext-tools |
18b90c81 SP |
60 | BuildRequires: glew-devel |
61 | BuildRequires: gperf | |
37fbe511 | 62 | %{?with_hal:BuildRequires: hal-devel} |
5a2f2b01 | 63 | BuildRequires: jasper-devel |
37fbe511 | 64 | BuildRequires: jre |
b85db44b | 65 | BuildRequires: libass-devel |
37fbe511 KK |
66 | BuildRequires: libbluray-devel >= 0.2.1 |
67 | BuildRequires: libcap-devel | |
18b90c81 | 68 | BuildRequires: libcdio-devel |
37fbe511 | 69 | %{?with_cec:BuildRequires: libcec-devel} |
1aef2bca | 70 | %ifarch i686 pentium4 athlon %{x8664} |
5f83fc0f | 71 | BuildRequires: libcrystalhd-devel |
1aef2bca | 72 | %endif |
b85db44b | 73 | BuildRequires: libgcrypt-devel |
18b90c81 | 74 | BuildRequires: libjpeg-devel |
45a200ab | 75 | BuildRequires: libltdl-devel |
18b90c81 | 76 | BuildRequires: libmad-devel |
63ff963e | 77 | BuildRequires: libmicrohttpd-devel |
63ff963e | 78 | BuildRequires: libmodplug-devel |
c462fd57 | 79 | BuildRequires: libmpeg2-devel |
18b90c81 | 80 | BuildRequires: libogg-devel |
b85db44b | 81 | BuildRequires: libplist-devel |
5a2f2b01 | 82 | BuildRequires: libpng-devel |
b85db44b | 83 | BuildRequires: librtmp-devel |
18b90c81 SP |
84 | BuildRequires: libsamplerate-devel |
85 | BuildRequires: libsmbclient-devel | |
b85db44b | 86 | BuildRequires: libssh-devel |
5a2f2b01 | 87 | BuildRequires: libtiff-devel |
88 | BuildRequires: libtool | |
b85db44b | 89 | BuildRequires: libva-devel |
5f83fc0f | 90 | BuildRequires: libva-glx-devel |
5a2f2b01 | 91 | BuildRequires: libvdpau-devel |
18b90c81 | 92 | BuildRequires: libvorbis-devel |
501e1d3e | 93 | BuildRequires: libxslt-devel |
5a2f2b01 | 94 | BuildRequires: lzo-devel |
95 | BuildRequires: mysql-devel | |
c1b45330 | 96 | %ifarch %{ix86} |
26cae375 | 97 | BuildRequires: nasm |
c1b45330 | 98 | %endif |
18b90c81 | 99 | BuildRequires: openssl-devel |
63ff963e | 100 | BuildRequires: pcre-cxx-devel |
5a2f2b01 | 101 | BuildRequires: pkgconfig |
18b90c81 | 102 | BuildRequires: pulseaudio-devel |
b85db44b | 103 | BuildRequires: python-devel >= 2.4 |
3a71016a | 104 | BuildRequires: rpm-pythonprov |
6f41c837 | 105 | BuildRequires: rpmbuild(macros) >= 1.566 |
c462fd57 | 106 | # used internally |
107 | BuildRequires: sed >= 4.0 | |
18b90c81 | 108 | BuildRequires: sqlite3-devel |
37fbe511 KK |
109 | BuildRequires: swig |
110 | BuildRequires: taglib-devel >= 1.8 | |
7613a43d | 111 | BuildRequires: tinyxml-devel |
b85db44b | 112 | BuildRequires: udev-devel |
5a2f2b01 | 113 | BuildRequires: unzip |
b85db44b AF |
114 | BuildRequires: xorg-lib-libX11-devel |
115 | BuildRequires: xorg-lib-libXext-devel | |
5a2f2b01 | 116 | BuildRequires: xorg-lib-libXinerama-devel |
b85db44b | 117 | BuildRequires: xorg-lib-libXmu-devel |
18b90c81 | 118 | BuildRequires: xorg-lib-libXrandr-devel |
b85db44b | 119 | BuildRequires: xorg-lib-libXt-devel |
5a2f2b01 | 120 | BuildRequires: xorg-lib-libXtst-devel |
b85db44b | 121 | BuildRequires: yajl-devel |
501e1d3e | 122 | BuildRequires: yasm |
18b90c81 SP |
123 | BuildRequires: zip |
124 | BuildRequires: 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 | 132 | Requires: /usr/bin/glxinfo |
f4f8f308 | 133 | Requires: SDL >= 1.2.14-5 |
a58652d4 SP |
134 | Requires: lsb-release |
135 | Requires: xorg-app-xdpyinfo | |
06c1bb12 | 136 | # dlopened libraries: |
d61811e9 | 137 | # grep 'DLL_PATH_.*lib.*\.so' xbmc/DllPaths_generated.h | grep -v special:// |
06c1bb12 ER |
138 | Requires: curl-libs |
139 | Requires: libass | |
140 | Requires: libbluray | |
141 | Requires: libmodplug | |
142 | Requires: libmpeg2-libs | |
143 | Requires: libogg | |
144 | Requires: libplist | |
145 | Requires: libvorbis | |
92b53b2c | 146 | Obsoletes: xbmc < 14.0 |
18b90c81 SP |
147 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
148 | ||
149 | %description | |
d61811e9 ER |
150 | Kodi Entertainment Center (formerly XBMC) is a free and open-source |
151 | media player software developed by the XBMC Foundation, a non-profit | |
152 | technology consortium. Kodi is available for multiple operating | |
153 | systems and hardware platforms, with a software 10-foot user interface | |
154 | for use with televisions and remote controls. It allows users to play | |
155 | and view most videos, music, such as podcasts from the internet, and | |
156 | all 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 | |
194 | rm -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 |
205 | rm -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 |