]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
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? | |
7 | # | |
8 | # Conditional build: | |
9 | %bcond_without cec # build without cec support | |
10 | %bcond_without goom # build without goom visualisation | |
11 | %bcond_with hal # build with HAL | |
12 | ||
13 | %define codename Frodo | |
14 | ||
15 | Summary: XBMC is a free and open source media-player and entertainment hub | |
16 | Name: xbmc | |
17 | Version: 12.3 | |
18 | Release: 0 | |
19 | License: GPL v2+ and GPL v3+ | |
20 | Group: Applications/Multimedia | |
21 | Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz | |
22 | # Source0-md5: 7ae385ebf8e5cfcb917393235e6efbdb | |
23 | Patch0: ffmpeg2.patch | |
24 | URL: http://xbmc.org/ | |
25 | BuildRequires: Mesa-libGLU-devel | |
26 | BuildRequires: OpenGL-devel | |
27 | BuildRequires: SDL_image-devel | |
28 | BuildRequires: SDL_mixer-devel | |
29 | BuildRequires: alsa-lib-devel | |
30 | BuildRequires: autoconf | |
31 | BuildRequires: automake | |
32 | BuildRequires: avahi-devel | |
33 | BuildRequires: bluez-libs-devel >= 4.99 | |
34 | BuildRequires: boost-devel | |
35 | BuildRequires: bzip2-devel | |
36 | BuildRequires: cmake | |
37 | BuildRequires: curl-devel | |
38 | BuildRequires: dbus-devel | |
39 | BuildRequires: ffmpeg-devel | |
40 | BuildRequires: flac-devel | |
41 | BuildRequires: fontconfig-devel | |
42 | BuildRequires: freetype-devel | |
43 | BuildRequires: fribidi-devel | |
44 | BuildRequires: gawk | |
45 | BuildRequires: gettext-autopoint | |
46 | BuildRequires: gettext-devel | |
47 | BuildRequires: glew-devel | |
48 | BuildRequires: gperf | |
49 | %{?with_hal:BuildRequires: hal-devel} | |
50 | BuildRequires: jasper-devel | |
51 | BuildRequires: jre | |
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 | |
59 | %endif | |
60 | BuildRequires: libgcrypt-devel | |
61 | BuildRequires: libjpeg-devel | |
62 | BuildRequires: libmad-devel | |
63 | BuildRequires: libmicrohttpd-devel | |
64 | BuildRequires: libmodplug-devel | |
65 | BuildRequires: libmpeg2-devel | |
66 | BuildRequires: libogg-devel | |
67 | BuildRequires: libplist-devel | |
68 | BuildRequires: libpng-devel | |
69 | BuildRequires: librtmp-devel | |
70 | BuildRequires: libsamplerate-devel | |
71 | BuildRequires: libsmbclient-devel | |
72 | BuildRequires: libssh-devel | |
73 | BuildRequires: libtiff-devel | |
74 | BuildRequires: libtool | |
75 | BuildRequires: libva-devel | |
76 | BuildRequires: libva-glx-devel | |
77 | BuildRequires: libvdpau-devel | |
78 | BuildRequires: libvorbis-devel | |
79 | BuildRequires: lzo-devel | |
80 | BuildRequires: mysql-devel | |
81 | %ifarch %{ix86} | |
82 | BuildRequires: nasm | |
83 | %endif | |
84 | BuildRequires: openssl-devel | |
85 | BuildRequires: pcre-cxx-devel | |
86 | BuildRequires: pkgconfig | |
87 | BuildRequires: pulseaudio-devel | |
88 | BuildRequires: python-devel >= 2.4 | |
89 | BuildRequires: rpm-pythonprov | |
90 | BuildRequires: rpmbuild(macros) >= 1.566 | |
91 | # used internally | |
92 | BuildRequires: sed >= 4.0 | |
93 | BuildRequires: sqlite3-devel | |
94 | BuildRequires: swig | |
95 | BuildRequires: taglib-devel >= 1.8 | |
96 | BuildRequires: tinyxml-devel | |
97 | BuildRequires: udev-devel | |
98 | BuildRequires: unzip | |
99 | BuildRequires: xorg-lib-libX11-devel | |
100 | BuildRequires: xorg-lib-libXext-devel | |
101 | BuildRequires: xorg-lib-libXinerama-devel | |
102 | BuildRequires: xorg-lib-libXmu-devel | |
103 | BuildRequires: xorg-lib-libXrandr-devel | |
104 | BuildRequires: xorg-lib-libXt-devel | |
105 | BuildRequires: xorg-lib-libXtst-devel | |
106 | BuildRequires: yajl-devel | |
107 | BuildRequires: zip | |
108 | BuildRequires: zlib-devel | |
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 | |
116 | Requires: /usr/bin/glxinfo | |
117 | Requires: SDL >= 1.2.14-5 | |
118 | Requires: lsb-release | |
119 | Requires: xorg-app-xdpyinfo | |
120 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
121 | ||
122 | %description | |
123 | XBMC media center is a free cross-platform media-player jukebox and | |
124 | entertainment hub. XBMC can play a spectrum of of multimedia formats, | |
125 | and featuring playlist, audio visualizations, slideshow, and weather | |
126 | forecast functions, together third-party plugins. | |
127 | ||
128 | %prep | |
129 | %setup -q -n %{name}-%{version}-%{codename} | |
130 | %patch0 -p1 | |
131 | ||
132 | %build | |
133 | ./bootstrap | |
134 | %configure \ | |
135 | --disable-debug \ | |
136 | --enable-external-libraries \ | |
137 | --enable-pulse \ | |
138 | --enable-udev \ | |
139 | --disable-libusb \ | |
140 | --disable-nfs \ | |
141 | --disable-afpclient \ | |
142 | --disable-airtunes \ | |
143 | %{__enable_disable goom} \ | |
144 | %{__enable_disable hal} \ | |
145 | %{__enable_disable libcec} | |
146 | ||
147 | LIBS="-lpthread" | |
148 | %{__make} V=1 | |
149 | ||
150 | %install | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | %{__make} install \ | |
153 | DESTDIR=$RPM_BUILD_ROOT | |
154 | ||
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %files | |
159 | %defattr(644,root,root,755) | |
160 | %attr(755,root,root) %{_bindir}/* | |
161 | %{_datadir}/%{name} | |
162 | %attr(755,root,root) %{_libdir}/%{name} | |
163 | %{_docdir}/%{name} | |
164 | %{_desktopdir}/%{name}.desktop | |
165 | %{_iconsdir}/hicolor/256x256/apps/%{name}.png | |
166 | %{_iconsdir}/hicolor/48x48/apps/%{name}.png | |
167 | %{_datadir}/xsessions/XBMC.desktop |