]> git.pld-linux.org Git - packages/xbmc.git/blame - xbmc.spec
- added libcrystalhd-devel to shorten TODO
[packages/xbmc.git] / xbmc.spec
CommitLineData
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:
68612b1e
ER
9%bcond_without goom # build without goom visualisation
10%bcond_with hal # build with HAL
92b96980 11
68612b1e 12Summary: XBMC is a free and open source media-player and entertainment hub
18b90c81 13Name: xbmc
a0dfde4b 14Version: 12.2
5f83fc0f 15Release: 2
68612b1e 16License: GPL v2+ and GPL v3+
18b90c81 17Group: Applications/Multimedia
68612b1e 18Source0: http://mirrors.xbmc.org/releases/source/%{name}-%{version}.tar.gz
a0dfde4b 19# Source0-md5: 489f3877decae4e265ece54f9eaef0ba
68612b1e 20URL: http://xbmc.org/
b85db44b
AF
21BuildRequires: Mesa-libGLU-devel
22BuildRequires: OpenGL-devel
23BuildRequires: SDL-devel
18b90c81
SP
24BuildRequires: SDL_image-devel
25BuildRequires: SDL_mixer-devel
26BuildRequires: alsa-lib-devel
27BuildRequires: autoconf
28BuildRequires: automake
29BuildRequires: avahi-devel
b85db44b 30BuildRequires: bluez-libs-devel >= 4.99
5a2f2b01 31BuildRequires: boost-devel
18b90c81
SP
32BuildRequires: bzip2-devel
33BuildRequires: cmake
34BuildRequires: curl-devel
35BuildRequires: dbus-devel
c462fd57 36BuildRequires: ffmpeg-devel
5a2f2b01 37BuildRequires: flac-devel
18b90c81
SP
38BuildRequires: fontconfig-devel
39BuildRequires: freetype-devel
40BuildRequires: fribidi-devel
41BuildRequires: gawk
63ff963e 42BuildRequires: gettext-autopoint
5a2f2b01 43BuildRequires: gettext-devel
18b90c81
SP
44BuildRequires: glew-devel
45BuildRequires: gperf
b85db44b 46%if %{with hal}
5a2f2b01 47BuildRequires: hal-devel
b85db44b 48%endif
5a2f2b01 49BuildRequires: jasper-devel
b85db44b
AF
50BuildRequires: libass-devel
51BuildRequires: libbluray-devel
18b90c81 52BuildRequires: libcdio-devel
a0dfde4b 53BuildRequires: libcec-devel
5f83fc0f 54BuildRequires: libcrystalhd-devel
b85db44b 55BuildRequires: libgcrypt-devel
18b90c81
SP
56BuildRequires: libjpeg-devel
57BuildRequires: libmad-devel
63ff963e 58BuildRequires: libmicrohttpd-devel
63ff963e 59BuildRequires: libmodplug-devel
c462fd57 60BuildRequires: libmpeg2-devel
18b90c81 61BuildRequires: libogg-devel
b85db44b 62BuildRequires: libplist-devel
5a2f2b01 63BuildRequires: libpng-devel
b85db44b 64BuildRequires: librtmp-devel
18b90c81
SP
65BuildRequires: libsamplerate-devel
66BuildRequires: libsmbclient-devel
b85db44b 67BuildRequires: libssh-devel
5a2f2b01 68BuildRequires: libtiff-devel
69BuildRequires: libtool
b85db44b 70BuildRequires: libva-devel
5f83fc0f 71BuildRequires: libva-glx-devel
5a2f2b01 72BuildRequires: libvdpau-devel
18b90c81 73BuildRequires: libvorbis-devel
5a2f2b01 74BuildRequires: lzo-devel
75BuildRequires: mysql-devel
c1b45330 76%ifarch %{ix86}
26cae375 77BuildRequires: nasm
c1b45330 78%endif
18b90c81 79BuildRequires: openssl-devel
63ff963e 80BuildRequires: pcre-cxx-devel
b85db44b 81BuildRequires: pcre-devel
5a2f2b01 82BuildRequires: pkgconfig
18b90c81 83BuildRequires: pulseaudio-devel
b85db44b 84BuildRequires: python-devel >= 2.4
3a71016a 85BuildRequires: rpm-pythonprov
6f41c837 86BuildRequires: rpmbuild(macros) >= 1.566
c462fd57 87# used internally
88BuildRequires: sed >= 4.0
18b90c81 89BuildRequires: sqlite3-devel
7613a43d 90BuildRequires: tinyxml-devel
b85db44b 91BuildRequires: udev-devel
5a2f2b01 92BuildRequires: unzip
b85db44b
AF
93BuildRequires: xorg-lib-libX11-devel
94BuildRequires: xorg-lib-libXext-devel
5a2f2b01 95BuildRequires: xorg-lib-libXinerama-devel
b85db44b 96BuildRequires: xorg-lib-libXmu-devel
18b90c81 97BuildRequires: xorg-lib-libXrandr-devel
b85db44b 98BuildRequires: xorg-lib-libXt-devel
5a2f2b01 99BuildRequires: xorg-lib-libXtst-devel
b85db44b 100BuildRequires: yajl-devel
18b90c81
SP
101BuildRequires: zip
102BuildRequires: zlib-devel
b85db44b
AF
103#https://github.com/sahlberg/libnfs
104#BuildRequires: libnfs-devel
105#http://sites.google.com/site/alexthepuffin/home
106#BuildRequires: afpfs-ng-devel
107#http://mirrors.xbmc.org/build-deps/darwin-libs/libshairport-1.2.0.20310_lib.tar.gz
108#https://github.com/albertz/shairport
109#BuildRequires: libshairport
63ff963e 110Requires: /usr/bin/glxinfo
f4f8f308 111Requires: SDL >= 1.2.14-5
a58652d4
SP
112Requires: lsb-release
113Requires: xorg-app-xdpyinfo
18b90c81
SP
114BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
115
116%description
68612b1e
ER
117XBMC media center is a free cross-platform media-player jukebox and
118entertainment hub. XBMC can play a spectrum of of multimedia formats,
119and featuring playlist, audio visualizations, slideshow, and weather
120forecast functions, together third-party plugins.
18b90c81
SP
121
122%prep
c1b45330 123%setup -q
18b90c81
SP
124
125%build
126./bootstrap
65712ad3 127%configure \
51b524ca
KK
128 --disable-debug \
129 --enable-external-libraries \
5f83fc0f 130 --enable-pulse \
b85db44b 131 --enable-udev \
b85db44b
AF
132 --disable-libusb \
133 --disable-nfs \
134 --disable-afpclient \
135 --disable-airtunes \
b85db44b
AF
136 %{__enable_disable goom} \
137 %{__enable_disable hal}
68612b1e 138
a0dfde4b 139LIBS="-lpthread"
b85db44b 140%{__make} V=1
18b90c81
SP
141
142%install
143rm -rf $RPM_BUILD_ROOT
18b90c81 144%{__make} install \
92b96980 145 DESTDIR=$RPM_BUILD_ROOT
18b90c81
SP
146
147%clean
148rm -rf $RPM_BUILD_ROOT
149
150%files
151%defattr(644,root,root,755)
18b90c81
SP
152%attr(755,root,root) %{_bindir}/*
153%{_datadir}/%{name}
92b96980 154%attr(755,root,root) %{_libdir}/%{name}
155%{_docdir}/%{name}
c1b45330 156%{_desktopdir}/%{name}.desktop
92b96980 157%{_iconsdir}/hicolor/256x256/apps/%{name}.png
158%{_iconsdir}/hicolor/48x48/apps/%{name}.png
3a71016a 159%{_datadir}/xsessions/XBMC.desktop
This page took 0.076141 seconds and 5 git commands to generate.