]>
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 | # - fix nvidia vs. libXrandr >= 1.2 conflict (nvidia drivers still supports |
6 | # only libXrandr 1.1 - with no gamma support) | |
7 | # - add and/or fix users/groups permissions | |
8 | # - didvide to subpackages? | |
9 | # - check how it works with external python libraries | |
18b90c81 | 10 | # |
92b96980 | 11 | # Conditional build: |
12 | %bcond_with external_python | |
13 | ||
18b90c81 SP |
14 | Summary: XBMC |
15 | Name: xbmc | |
92b96980 | 16 | Version: 10.0 |
2e649bc9 AF |
17 | Release: 0.1 |
18 | License: GPL v3 | |
18b90c81 | 19 | Group: Applications/Multimedia |
c1b45330 | 20 | Source0: http://downloads.sourceforge.net/project/xbmc/XBMC%20Source%20Code/Camelot%20-%209.11/%{name}-%{version}.tar.gz |
92b96980 | 21 | # Source0-md5: 728fb514e5f43f27bb880305061b4e72 |
18b90c81 | 22 | URL: http://xbmc.org |
01f2a87d | 23 | Patch0: %{name}-nobash.patch |
92b96980 | 24 | Patch1: %{name}-python27.patch |
25 | Patch2: %{name}-libpng14.patch | |
18b90c81 SP |
26 | BuildRequires: SDL_image-devel |
27 | BuildRequires: SDL_mixer-devel | |
c462fd57 | 28 | BuildRequires: a52dec-libs-devel |
18b90c81 SP |
29 | BuildRequires: alsa-lib-devel |
30 | BuildRequires: autoconf | |
31 | BuildRequires: automake | |
32 | BuildRequires: avahi-devel | |
5a2f2b01 | 33 | BuildRequires: boost-devel |
18b90c81 SP |
34 | BuildRequires: bzip2-devel |
35 | BuildRequires: cmake | |
36 | BuildRequires: curl-devel | |
37 | BuildRequires: dbus-devel | |
38 | BuildRequires: enca-devel | |
39 | BuildRequires: faac-devel | |
5a2f2b01 | 40 | BuildRequires: faad2-devel |
c462fd57 | 41 | BuildRequires: ffmpeg-devel |
5a2f2b01 | 42 | BuildRequires: flac-devel |
18b90c81 SP |
43 | BuildRequires: fontconfig-devel |
44 | BuildRequires: freetype-devel | |
45 | BuildRequires: fribidi-devel | |
46 | BuildRequires: gawk | |
92b96980 | 47 | BuildRequires: gettext-autopoint |
5a2f2b01 | 48 | BuildRequires: gettext-devel |
18b90c81 SP |
49 | BuildRequires: glew-devel |
50 | BuildRequires: gperf | |
5a2f2b01 | 51 | BuildRequires: gtk+-devel |
52 | BuildRequires: hal-devel | |
53 | BuildRequires: jasper-devel | |
54 | BuildRequires: libao-devel | |
18b90c81 | 55 | BuildRequires: libcdio-devel |
c462fd57 | 56 | BuildRequires: libdts-devel |
18b90c81 SP |
57 | BuildRequires: libjpeg-devel |
58 | BuildRequires: libmad-devel | |
92b96980 | 59 | BuildRequires: libmicrohttpd-devel |
60 | BuildRequires: libmodplug-devel | |
18b90c81 | 61 | BuildRequires: libmms-devel |
c462fd57 | 62 | BuildRequires: libmpeg2-devel |
18b90c81 | 63 | BuildRequires: libogg-devel |
5a2f2b01 | 64 | BuildRequires: libpng-devel |
18b90c81 SP |
65 | BuildRequires: libsamplerate-devel |
66 | BuildRequires: libsmbclient-devel | |
5a2f2b01 | 67 | BuildRequires: libtiff-devel |
68 | BuildRequires: libtool | |
69 | BuildRequires: libvdpau-devel | |
18b90c81 | 70 | BuildRequires: libvorbis-devel |
5a2f2b01 | 71 | BuildRequires: lzo-devel |
72 | BuildRequires: mysql-devel | |
c1b45330 | 73 | %ifarch %{ix86} |
26cae375 | 74 | BuildRequires: nasm |
c1b45330 | 75 | %endif |
18b90c81 | 76 | BuildRequires: openssl-devel |
92b96980 | 77 | BuildRequires: pcre-cxx-devel |
5a2f2b01 | 78 | BuildRequires: pkgconfig |
18b90c81 | 79 | BuildRequires: pulseaudio-devel |
c462fd57 | 80 | BuildRequires: python-devel |
3a71016a | 81 | BuildRequires: rpm-pythonprov |
c462fd57 | 82 | # used internally |
83 | BuildRequires: sed >= 4.0 | |
18b90c81 | 84 | BuildRequires: sqlite3-devel |
5a2f2b01 | 85 | BuildRequires: unzip |
c462fd57 | 86 | BuildRequires: wavpack-devel |
5a2f2b01 | 87 | BuildRequires: xmms-devel |
88 | BuildRequires: xorg-lib-libXinerama-devel | |
18b90c81 | 89 | BuildRequires: xorg-lib-libXrandr-devel |
5a2f2b01 | 90 | BuildRequires: xorg-lib-libXtst-devel |
18b90c81 SP |
91 | BuildRequires: zip |
92 | BuildRequires: zlib-devel | |
a58652d4 SP |
93 | Requires: lsb-release |
94 | Requires: xorg-app-xdpyinfo | |
92b96980 | 95 | Requires: /usr/bin/glxinfo |
18b90c81 SP |
96 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
97 | ||
98 | %description | |
99 | ||
100 | %prep | |
c1b45330 | 101 | %setup -q |
01f2a87d | 102 | %patch0 -p1 |
51b524ca | 103 | %patch1 -p1 |
92b96980 | 104 | #%patch2 -p1 |
18b90c81 SP |
105 | |
106 | %build | |
107 | ./bootstrap | |
65712ad3 | 108 | %configure \ |
51b524ca KK |
109 | --disable-debug \ |
110 | --enable-external-libraries \ | |
92b96980 | 111 | --%{?with_external_python:en}%{!?with_external_python:dis}able-external-python |
18b90c81 SP |
112 | %{__make} |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %{__make} install \ | |
92b96980 | 118 | DESTDIR=$RPM_BUILD_ROOT |
18b90c81 SP |
119 | |
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
47308569 | 125 | #doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO |
18b90c81 | 126 | |
47308569 | 127 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* |
18b90c81 SP |
128 | %attr(755,root,root) %{_bindir}/* |
129 | %{_datadir}/%{name} | |
92b96980 | 130 | %attr(755,root,root) %{_libdir}/%{name} |
131 | %{_docdir}/%{name} | |
c1b45330 | 132 | %{_desktopdir}/%{name}.desktop |
92b96980 | 133 | %{_iconsdir}/hicolor/256x256/apps/%{name}.png |
134 | %{_iconsdir}/hicolor/48x48/apps/%{name}.png | |
3a71016a | 135 | %{_datadir}/xsessions/XBMC.desktop |