1 | %define codename Gotham |
---|
2 | |
---|
3 | Summary: XBMC is a free Media Center |
---|
4 | Summary(ja): XBMC メディアセンター |
---|
5 | Name: xbmc |
---|
6 | Version: 13.2 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Source0: %{name}-%{version}.tar.gz |
---|
9 | #Source0: %{codename}.zip |
---|
10 | Source1: %{name}.desktop |
---|
11 | #i18n |
---|
12 | #Source10: xbmc-9.11-langinfo.xml |
---|
13 | #Source11: xbmc-11.0-strings.xml |
---|
14 | #Source12: xbmc-11.0-Confluence-strings.xml |
---|
15 | #lircd patch |
---|
16 | #Patch0: xbmc-9.11-lircd.patch |
---|
17 | # change default locale and font |
---|
18 | Patch1: %{name}-%{version}-default-locale.patch |
---|
19 | #Patch2: %{name}-%{version}-use-pkgconfig-for-samba.patch |
---|
20 | #Patch3: %{name}-%{version}-dvdread.patch |
---|
21 | Patch4: %{name}-%{version}-vine.patch |
---|
22 | License: GPLv2+ |
---|
23 | Group: Applications/Multimedia |
---|
24 | URL: http://xbmc.org/ |
---|
25 | |
---|
26 | #Requires: lsb |
---|
27 | Requires: python-imaging |
---|
28 | Requires: pysqlite |
---|
29 | Requires: hicolor-icon-theme |
---|
30 | Requires(post): desktop-file-utils |
---|
31 | Requires(postun):desktop-file-utils |
---|
32 | |
---|
33 | %if %{?_dist_release} >= "vl7" |
---|
34 | BuildRequires: mariadb-devel |
---|
35 | %else |
---|
36 | BuildRequires: MySQL-devel |
---|
37 | %endif |
---|
38 | BuildRequires: SDL_gfx-devel |
---|
39 | BuildRequires: SDL_image-devel |
---|
40 | BuildRequires: SDL_mixer-devel |
---|
41 | BuildRequires: alsa-lib-devel |
---|
42 | BuildRequires: avahi-devel |
---|
43 | BuildRequires: bzip2-devel |
---|
44 | BuildRequires: cmake |
---|
45 | BuildRequires: curl-devel |
---|
46 | BuildRequires: cvs |
---|
47 | BuildRequires: dbus-devel |
---|
48 | BuildRequires: desktop-file-utils |
---|
49 | BuildRequires: doxygen |
---|
50 | BuildRequires: enca-devel |
---|
51 | BuildRequires: flac-devel |
---|
52 | BuildRequires: fontconfig-devel |
---|
53 | BuildRequires: fribidi-devel >= 0.19 |
---|
54 | BuildRequires: glew-devel |
---|
55 | BuildRequires: gperf |
---|
56 | BuildRequires: gmp-devel |
---|
57 | #BuildRequires: hal-devel |
---|
58 | BuildRequires: jasper-devel |
---|
59 | BuildRequires: java >= 1.6 |
---|
60 | BuildRequires: libXinerama-devel |
---|
61 | BuildRequires: libXmu-devel |
---|
62 | BuildRequires: libXrandr-devel |
---|
63 | BuildRequires: libXtst-devel |
---|
64 | BuildRequires: libass-devel |
---|
65 | BuildRequires: libboost-devel |
---|
66 | BuildRequires: libbluray-devel |
---|
67 | BuildRequires: libcap-devel |
---|
68 | BuildRequires: libcdio-devel |
---|
69 | BuildRequires: libdvdread-devel |
---|
70 | BuildRequires: expat-devel |
---|
71 | BuildRequires: libjpeg-devel |
---|
72 | BuildRequires: libmicrohttpd-devel |
---|
73 | BuildRequires: libmms-devel |
---|
74 | BuildRequires: libmodplug-devel |
---|
75 | BuildRequires: libogg-devel |
---|
76 | BuildRequires: libplist-devel |
---|
77 | BuildRequires: libpng-devel |
---|
78 | BuildRequires: libsamplerate-devel |
---|
79 | BuildRequires: libssh-devel |
---|
80 | BuildRequires: libssh2-devel |
---|
81 | BuildRequires: libsmbclient-devel |
---|
82 | BuildRequires: libtiff-devel |
---|
83 | BuildRequires: libtool-ltdl-devel |
---|
84 | BuildRequires: libudev-devel |
---|
85 | BuildRequires: libusb-devel |
---|
86 | BuildRequires: libva-devel |
---|
87 | BuildRequires: libvorbis-devel |
---|
88 | BuildRequires: libxml2-devel |
---|
89 | BuildRequires: libxslt-devel |
---|
90 | BuildRequires: nasm |
---|
91 | BuildRequires: openssl-devel |
---|
92 | BuildRequires: lzo-devel |
---|
93 | BuildRequires: pcre-devel |
---|
94 | BuildRequires: pulseaudio-libs-devel |
---|
95 | BuildRequires: sqlite3-devel |
---|
96 | BuildRequires: swig |
---|
97 | BuildRequires: taglib-devel >= 1.8 |
---|
98 | BuildRequires: tinyxml-devel |
---|
99 | BuildRequires: unzip |
---|
100 | BuildRequires: wavpack-devel |
---|
101 | BuildRequires: zlib-devel |
---|
102 | BuildRequires: self-build-faac |
---|
103 | BuildRequires: self-build-faad2 |
---|
104 | BuildRequires: self-build-lame |
---|
105 | BuildRequires: self-build-libmad |
---|
106 | BuildRequires: self-build-libmpeg2 |
---|
107 | BuildRequires: libvdpau-devel |
---|
108 | BuildRequires: bluez-libs-devel |
---|
109 | BuildRequires: yajl-devel |
---|
110 | BuildRequires: python-devel |
---|
111 | BuildRequires: libshairport-devel |
---|
112 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
113 | |
---|
114 | Packager: kazutaka, shaolin |
---|
115 | |
---|
116 | %description |
---|
117 | XBMC is an award-winning free and open source (GPL) software media player |
---|
118 | and entertainment hub for digital media. |
---|
119 | |
---|
120 | Currently XBMC can be used to play almost all popular audio and video formats |
---|
121 | around. It was designed for network playback, so you can stream your multimedia |
---|
122 | from anywhere in the house or directly from the internet using practically any |
---|
123 | protocol available. Use your media as-is: XBMC can play CDs and DVDs directly |
---|
124 | from the disk or image file, almost all popular archive formats from your hard |
---|
125 | drive, and even files inside ZIP and RAR archives. It will even scan all of |
---|
126 | your media and automatically create a personalized library complete with box |
---|
127 | covers, descriptions, and fanart. There are playlist and slideshow functions, |
---|
128 | a weather forecast feature and many audio visualizations. Once installed, |
---|
129 | your computer will become a fully functional multimedia jukebox. |
---|
130 | |
---|
131 | %description -l ja |
---|
132 | XBMC はいくつもの賞を受賞したフリーでオープンソース (GPL) な、 |
---|
133 | デジタルメディア向けのメディアプレイヤー/メディアセンターです。 |
---|
134 | |
---|
135 | XBMC は一般的な形式のビデオやオーディオファイルであれば、その殆ど |
---|
136 | を再生できます。またネットワークを介した再生にも対応しており、 |
---|
137 | ホームLAN やインターネットを経由したストリーミングも利用できます。 |
---|
138 | |
---|
139 | また、XBMC は CD や DVD を直接再生できるだけでなく、ハードディスク |
---|
140 | 上のディスクイメージや一般的なアーカイブ、ZIP や RAR アーカイブ等で |
---|
141 | あってもそのまま利用できます。 |
---|
142 | |
---|
143 | XBMC は PC 上のメディアファイルをスキャンして、自動的にライブラリ |
---|
144 | を構築し、カバーアートや説明、ファンアート等を付加してくれます。 |
---|
145 | その他にも、プレイリストやスライドショー、天気予報、オーディオの |
---|
146 | ビジュアライゼーション機能等を備えています。 |
---|
147 | |
---|
148 | XBMC をインストールすれば、あなたの PC は多機能なマルチメディア |
---|
149 | ジュークボックスに生まれ変わります。 |
---|
150 | |
---|
151 | |
---|
152 | %prep |
---|
153 | %setup -q -n %{name}-%{version}-%{codename} |
---|
154 | %patch1 -p1 -b .default-locale |
---|
155 | #%patch2 -p0 -b .use-pkgconfig-for-samba |
---|
156 | #%patch3 -p1 -b .dvdread |
---|
157 | %patch4 -p1 -b .vine |
---|
158 | |
---|
159 | #setup language files |
---|
160 | #%{__cp} -f %{SOURCE10} language/Japanese/langinfo.xml |
---|
161 | #%{__cp} -f %{SOURCE11} language/Japanese/strings.xml |
---|
162 | #%{__mkdir} -p addons/skin.confluence/language/Japanese |
---|
163 | #%{__cp} -f %{SOURCE12} addons/skin.confluence/language/Japanese/strings.xml |
---|
164 | |
---|
165 | %build |
---|
166 | %ifarch x86_64 |
---|
167 | LIBS="-L/usr/lib64/mysql $LIBS" |
---|
168 | %else |
---|
169 | LIBS="-L/usr/lib/mysql $LIBS" |
---|
170 | %endif |
---|
171 | |
---|
172 | export LIBS |
---|
173 | |
---|
174 | ./bootstrap |
---|
175 | %configure --disable-debug \ |
---|
176 | --disable-ccache \ |
---|
177 | --enable-gl \ |
---|
178 | --enable-sdl \ |
---|
179 | --enable-pulse \ |
---|
180 | --enable-vdpau \ |
---|
181 | --enable-vaapi \ |
---|
182 | --enable-xrandr \ |
---|
183 | --enable-projectm \ |
---|
184 | --enable-x11 \ |
---|
185 | --enable-libudev \ |
---|
186 | --enable-ffmpeg-libvorbis \ |
---|
187 | --enable-dvdcss \ |
---|
188 | --enable-mid \ |
---|
189 | --enable-libmp3lame \ |
---|
190 | --enable-libbluray \ |
---|
191 | --enable-libvorbisenc \ |
---|
192 | --enable-libcap \ |
---|
193 | --with-lirc-device=%{_localstatedir}/run/lirc/lircd \ |
---|
194 | --docdir=%{_docdir}/%{name}-%{version} |
---|
195 | |
---|
196 | %{__make} %{?_smp_mflags} |
---|
197 | |
---|
198 | |
---|
199 | %install |
---|
200 | %{__rm} -rf %{buildroot} |
---|
201 | %{__make} install DESTDIR=%{buildroot} |
---|
202 | |
---|
203 | #install man pages |
---|
204 | %{__mkdir_p} %{buildroot}/%{_mandir}/man1 |
---|
205 | %{__cp} docs/manpages/* %{buildroot}/%{_mandir}/man1 |
---|
206 | gzip -9nf %{buildroot}/%{_mandir}/man1/* |
---|
207 | |
---|
208 | # Install desktop file |
---|
209 | desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1} |
---|
210 | |
---|
211 | |
---|
212 | %post |
---|
213 | update-desktop-database %{_datadir}/applications>& /dev/null ||: |
---|
214 | touch --no-create %{_datadir}/icons/hicolor |
---|
215 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
216 | /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||: |
---|
217 | fi |
---|
218 | |
---|
219 | %postun |
---|
220 | update-desktop-database %{_datadir}/applications>& /dev/null ||: |
---|
221 | touch --no-create %{_datadir}/icons/hicolor |
---|
222 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
223 | /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||: |
---|
224 | fi |
---|
225 | |
---|
226 | |
---|
227 | %clean |
---|
228 | %{__rm} -rf %{buildroot} |
---|
229 | |
---|
230 | |
---|
231 | %files |
---|
232 | %defattr(-,root,root) |
---|
233 | %doc %{_docdir}/%{name}-%{version} |
---|
234 | %{_bindir}/%{name} |
---|
235 | %{_bindir}/%{name}-standalone |
---|
236 | %{_datadir}/%{name} |
---|
237 | %{_datadir}/applications/%{name}.desktop |
---|
238 | %{_datadir}/xsessions/XBMC.desktop |
---|
239 | %{_datadir}/icons/hicolor/256x256/apps/%{name}.png |
---|
240 | %{_datadir}/icons/hicolor/48x48/apps/%{name}.png |
---|
241 | %{_includedir}/%{name} |
---|
242 | %{_libdir}/%{name} |
---|
243 | %{_mandir}/man1/* |
---|
244 | |
---|
245 | %changelog |
---|
246 | * Mon Jan 12 2015 Munehiro Yamamoto <munepi@vinelinux.org> 13.2-1 |
---|
247 | - new upstream release (13.2 Gotham) |
---|
248 | - dropped BuildRequires: hal-devel |
---|
249 | |
---|
250 | * Tue Jun 17 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 13.1-1 |
---|
251 | - new upstream release (13.1 Gotham) |
---|
252 | - add Source7 (Patch4) to get rid of lsb dependency |
---|
253 | |
---|
254 | * Wed May 7 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 13.0-1 |
---|
255 | - new upstream release (13.0 Gotham) |
---|
256 | - source tarball not released yet - get the zip archive from github instead |
---|
257 | |
---|
258 | * Fri Oct 25 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-4 |
---|
259 | - revert 12.2-3 changes (subtitles won't be displayed correctly) |
---|
260 | |
---|
261 | * Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-3 |
---|
262 | - use external ffmpeg and other libraries |
---|
263 | |
---|
264 | * Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-2 |
---|
265 | - minor fix |
---|
266 | |
---|
267 | * Thu Aug 8 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-1 |
---|
268 | - new upstream release |
---|
269 | |
---|
270 | * Mon Mar 4 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-2 |
---|
271 | - add patch to fix build failure with samba > 4.0 (BTS: 0002557) |
---|
272 | |
---|
273 | * Sun Feb 10 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-1 |
---|
274 | - new upstream release |
---|
275 | |
---|
276 | * Fri Mar 30 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-5 |
---|
277 | - fix silly typo in Source11 |
---|
278 | |
---|
279 | * Thu Mar 29 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-4 |
---|
280 | - Source11 and Source12 (Japanese strings) much updated |
---|
281 | |
---|
282 | * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-3 |
---|
283 | - update Packager |
---|
284 | |
---|
285 | * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-2 |
---|
286 | - update Source11 (Japanese strings) |
---|
287 | |
---|
288 | * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-1 |
---|
289 | - new upstream release |
---|
290 | - add build depencencies for bluez-libs-devel, yajl-devel, yasm & python-devel |
---|
291 | |
---|
292 | * Fri Feb 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-3 |
---|
293 | - delete build_vine5 macro: libvdpau is now available on 5.2 |
---|
294 | |
---|
295 | * Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2 |
---|
296 | - add --disable-ccache option (<BTS:VineLinux:1100>) |
---|
297 | - update Patch1 to change default timezone |
---|
298 | |
---|
299 | * Tue Jan 18 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1 |
---|
300 | - new upstream release |
---|
301 | - drop patch0: use configure option to specity lirc device) |
---|
302 | - drop Source10: included in upstream |
---|
303 | - update Source11 & 12: japanese translation |
---|
304 | - add Souce1: xbmc.desktop with japanese description |
---|
305 | |
---|
306 | * Sat Jan 02 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 9.11-1 |
---|
307 | - initial build for Vine Linux |
---|
308 | - add patch0: change lircd socket location |
---|
309 | - add Source10-12: japanese translation & langinfo |
---|