]>
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 |
68612b1e | 10 | %bcond_without goom # build without goom visualisation |
37fbe511 | 11 | %bcond_with hal # build with HAL |
92b96980 | 12 | |
92b53b2c | 13 | %define codename Helix |
d61811e9 | 14 | Summary: Kodi is a free and open source media-player and entertainment hub |
92b53b2c ER |
15 | Name: kodi |
16 | Version: 14.0 | |
17 | Release: 0.1 | |
68612b1e | 18 | License: GPL v2+ and GPL v3+ |
18b90c81 | 19 | Group: Applications/Multimedia |
92b53b2c ER |
20 | Source0: http://mirrors.kodi.tv/releases/source/%{version}-%{codename}.tar.gz |
21 | # Source0-md5: 9717c539789789b8aeaf1dcfdb9f2c69 | |
d2f0f4c7 | 22 | Patch0: jpeglib-boolean.patch |
92b53b2c | 23 | URL: http://kodi.tv/ |
b85db44b AF |
24 | BuildRequires: Mesa-libGLU-devel |
25 | BuildRequires: OpenGL-devel | |
18b90c81 SP |
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 | |
b85db44b | 32 | BuildRequires: bluez-libs-devel >= 4.99 |
5a2f2b01 | 33 | BuildRequires: boost-devel |
18b90c81 SP |
34 | BuildRequires: bzip2-devel |
35 | BuildRequires: cmake | |
36 | BuildRequires: curl-devel | |
37 | BuildRequires: dbus-devel | |
501e1d3e | 38 | BuildRequires: doxygen |
c462fd57 | 39 | BuildRequires: ffmpeg-devel |
5a2f2b01 | 40 | BuildRequires: flac-devel |
18b90c81 SP |
41 | BuildRequires: fontconfig-devel |
42 | BuildRequires: freetype-devel | |
43 | BuildRequires: fribidi-devel | |
44 | BuildRequires: gawk | |
63ff963e | 45 | BuildRequires: gettext-autopoint |
0747666f | 46 | BuildRequires: gettext-tools |
18b90c81 SP |
47 | BuildRequires: glew-devel |
48 | BuildRequires: gperf | |
37fbe511 | 49 | %{?with_hal:BuildRequires: hal-devel} |
5a2f2b01 | 50 | BuildRequires: jasper-devel |
37fbe511 | 51 | BuildRequires: jre |
b85db44b | 52 | BuildRequires: libass-devel |
37fbe511 KK |
53 | BuildRequires: libbluray-devel >= 0.2.1 |
54 | BuildRequires: libcap-devel | |
18b90c81 | 55 | BuildRequires: libcdio-devel |
37fbe511 | 56 | %{?with_cec:BuildRequires: libcec-devel} |
1aef2bca | 57 | %ifarch i686 pentium4 athlon %{x8664} |
5f83fc0f | 58 | BuildRequires: libcrystalhd-devel |
1aef2bca | 59 | %endif |
b85db44b | 60 | BuildRequires: libgcrypt-devel |
18b90c81 | 61 | BuildRequires: libjpeg-devel |
45a200ab | 62 | BuildRequires: libltdl-devel |
18b90c81 | 63 | BuildRequires: libmad-devel |
63ff963e | 64 | BuildRequires: libmicrohttpd-devel |
63ff963e | 65 | BuildRequires: libmodplug-devel |
c462fd57 | 66 | BuildRequires: libmpeg2-devel |
18b90c81 | 67 | BuildRequires: libogg-devel |
b85db44b | 68 | BuildRequires: libplist-devel |
5a2f2b01 | 69 | BuildRequires: libpng-devel |
b85db44b | 70 | BuildRequires: librtmp-devel |
18b90c81 SP |
71 | BuildRequires: libsamplerate-devel |
72 | BuildRequires: libsmbclient-devel | |
b85db44b | 73 | BuildRequires: libssh-devel |
5a2f2b01 | 74 | BuildRequires: libtiff-devel |
75 | BuildRequires: libtool | |
b85db44b | 76 | BuildRequires: libva-devel |
5f83fc0f | 77 | BuildRequires: libva-glx-devel |
5a2f2b01 | 78 | BuildRequires: libvdpau-devel |
18b90c81 | 79 | BuildRequires: libvorbis-devel |
501e1d3e | 80 | BuildRequires: libxslt-devel |
5a2f2b01 | 81 | BuildRequires: lzo-devel |
82 | BuildRequires: mysql-devel | |
c1b45330 | 83 | %ifarch %{ix86} |
26cae375 | 84 | BuildRequires: nasm |
c1b45330 | 85 | %endif |
18b90c81 | 86 | BuildRequires: openssl-devel |
63ff963e | 87 | BuildRequires: pcre-cxx-devel |
5a2f2b01 | 88 | BuildRequires: pkgconfig |
18b90c81 | 89 | BuildRequires: pulseaudio-devel |
b85db44b | 90 | BuildRequires: python-devel >= 2.4 |
3a71016a | 91 | BuildRequires: rpm-pythonprov |
6f41c837 | 92 | BuildRequires: rpmbuild(macros) >= 1.566 |
c462fd57 | 93 | # used internally |
94 | BuildRequires: sed >= 4.0 | |
18b90c81 | 95 | BuildRequires: sqlite3-devel |
37fbe511 KK |
96 | BuildRequires: swig |
97 | BuildRequires: taglib-devel >= 1.8 | |
7613a43d | 98 | BuildRequires: tinyxml-devel |
b85db44b | 99 | BuildRequires: udev-devel |
5a2f2b01 | 100 | BuildRequires: unzip |
b85db44b AF |
101 | BuildRequires: xorg-lib-libX11-devel |
102 | BuildRequires: xorg-lib-libXext-devel | |
5a2f2b01 | 103 | BuildRequires: xorg-lib-libXinerama-devel |
b85db44b | 104 | BuildRequires: xorg-lib-libXmu-devel |
18b90c81 | 105 | BuildRequires: xorg-lib-libXrandr-devel |
b85db44b | 106 | BuildRequires: xorg-lib-libXt-devel |
5a2f2b01 | 107 | BuildRequires: xorg-lib-libXtst-devel |
b85db44b | 108 | BuildRequires: yajl-devel |
501e1d3e | 109 | BuildRequires: yasm |
18b90c81 SP |
110 | BuildRequires: zip |
111 | BuildRequires: 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 | 119 | Requires: /usr/bin/glxinfo |
f4f8f308 | 120 | Requires: SDL >= 1.2.14-5 |
a58652d4 SP |
121 | Requires: lsb-release |
122 | Requires: xorg-app-xdpyinfo | |
06c1bb12 | 123 | # dlopened libraries: |
d61811e9 | 124 | # grep 'DLL_PATH_.*lib.*\.so' xbmc/DllPaths_generated.h | grep -v special:// |
06c1bb12 ER |
125 | Requires: curl-libs |
126 | Requires: libass | |
127 | Requires: libbluray | |
128 | Requires: libmodplug | |
129 | Requires: libmpeg2-libs | |
130 | Requires: libogg | |
131 | Requires: libplist | |
132 | Requires: libvorbis | |
92b53b2c | 133 | Obsoletes: xbmc < 14.0 |
18b90c81 SP |
134 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
135 | ||
136 | %description | |
d61811e9 ER |
137 | Kodi Entertainment Center (formerly XBMC) is a free and open-source |
138 | media player software developed by the XBMC Foundation, a non-profit | |
139 | technology consortium. Kodi is available for multiple operating | |
140 | systems and hardware platforms, with a software 10-foot user interface | |
141 | for use with televisions and remote controls. It allows users to play | |
142 | and view most videos, music, such as podcasts from the internet, and | |
143 | all common digital media files from local and network storage media. | |
18b90c81 SP |
144 | |
145 | %prep | |
92b53b2c | 146 | %setup -q -n xbmc-%{version}-%{codename} |
bfa116d7 | 147 | %patch0 -p1 |
18b90c81 SP |
148 | |
149 | %build | |
150 | ./bootstrap | |
65712ad3 | 151 | %configure \ |
ace9791d | 152 | --disable-silent-rules \ |
51b524ca KK |
153 | --disable-debug \ |
154 | --enable-external-libraries \ | |
b85db44b AF |
155 | --disable-afpclient \ |
156 | --disable-airtunes \ | |
ace9791d ER |
157 | --disable-ccache \ |
158 | --disable-libusb \ | |
159 | --disable-nfs \ | |
160 | --enable-pulse \ | |
161 | --enable-udev \ | |
b85db44b | 162 | %{__enable_disable goom} \ |
37fbe511 KK |
163 | %{__enable_disable hal} \ |
164 | %{__enable_disable libcec} | |
68612b1e | 165 | |
ace9791d | 166 | %{__make} |
18b90c81 SP |
167 | |
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
18b90c81 | 170 | %{__make} install \ |
92b96980 | 171 | DESTDIR=$RPM_BUILD_ROOT |
18b90c81 | 172 | |
25890c53 ER |
173 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
174 | ||
175 | # no -devel package yet | |
176 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/kodi | |
177 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/xbmc | |
178 | ||
18b90c81 SP |
179 | %clean |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | ||
182 | %files | |
183 | %defattr(644,root,root,755) | |
25890c53 ER |
184 | %doc README.md docs/README.linux |
185 | %attr(755,root,root) %{_bindir}/kodi | |
186 | %attr(755,root,root) %{_bindir}/kodi-standalone | |
18b90c81 | 187 | %{_datadir}/%{name} |
92b96980 | 188 | %attr(755,root,root) %{_libdir}/%{name} |
25890c53 ER |
189 | %{_desktopdir}/kodi.desktop |
190 | %{_iconsdir}/hicolor/*/apps/%{name}.png | |
191 | %{_datadir}/xsessions/kodi.desktop | |
192 | ||
193 | # legacy xbmc compatibility links | |
194 | %attr(755,root,root) %{_bindir}/xbmc | |
195 | %attr(755,root,root) %{_bindir}/xbmc-standalone | |
196 | %{_libdir}/xbmc | |
197 | %{_datadir}/xbmc | |
198 | %{_datadir}/xsessions/xbmc.desktop |