source: projects/specs/trunk/nonfree/self-build-xbmc/xbmc-vl.spec @ 9245

Revision 9245, 10.0 KB checked in by munepi, 7 years ago (diff)

new upstream release

Line 
1%define codename Gotham
2
3Summary:        XBMC is a free Media Center
4Summary(ja):    XBMC メディアセンター
5Name:           xbmc
6Version:        13.2
7Release:        1%{?_dist_release}
8Source0:        %{name}-%{version}.tar.gz
9#Source0:       %{codename}.zip
10Source1:        %{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
18Patch1:         %{name}-%{version}-default-locale.patch
19#Patch2:                %{name}-%{version}-use-pkgconfig-for-samba.patch
20#Patch3:                %{name}-%{version}-dvdread.patch
21Patch4:         %{name}-%{version}-vine.patch
22License:        GPLv2+
23Group:          Applications/Multimedia
24URL:            http://xbmc.org/
25
26#Requires:      lsb
27Requires:       python-imaging
28Requires:       pysqlite
29Requires:       hicolor-icon-theme
30Requires(post):  desktop-file-utils
31Requires(postun):desktop-file-utils
32
33%if %{?_dist_release} >= "vl7"
34BuildRequires:  mariadb-devel
35%else
36BuildRequires:  MySQL-devel
37%endif
38BuildRequires:  SDL_gfx-devel
39BuildRequires:  SDL_image-devel
40BuildRequires:  SDL_mixer-devel
41BuildRequires:  alsa-lib-devel
42BuildRequires:  avahi-devel
43BuildRequires:  bzip2-devel
44BuildRequires:  cmake
45BuildRequires:  curl-devel
46BuildRequires:  cvs
47BuildRequires:  dbus-devel
48BuildRequires:  desktop-file-utils
49BuildRequires:  doxygen
50BuildRequires:  enca-devel
51BuildRequires:  flac-devel
52BuildRequires:  fontconfig-devel
53BuildRequires:  fribidi-devel >= 0.19
54BuildRequires:  glew-devel
55BuildRequires:  gperf
56BuildRequires:  gmp-devel
57#BuildRequires: hal-devel
58BuildRequires:  jasper-devel
59BuildRequires:  java >= 1.6
60BuildRequires:  libXinerama-devel
61BuildRequires:  libXmu-devel
62BuildRequires:  libXrandr-devel
63BuildRequires:  libXtst-devel
64BuildRequires:  libass-devel
65BuildRequires:  libboost-devel
66BuildRequires:  libbluray-devel
67BuildRequires:  libcap-devel
68BuildRequires:  libcdio-devel
69BuildRequires:  libdvdread-devel
70BuildRequires:  expat-devel
71BuildRequires:  libjpeg-devel
72BuildRequires:  libmicrohttpd-devel
73BuildRequires:  libmms-devel
74BuildRequires:  libmodplug-devel
75BuildRequires:  libogg-devel
76BuildRequires:  libplist-devel
77BuildRequires:  libpng-devel
78BuildRequires:  libsamplerate-devel
79BuildRequires:  libssh-devel
80BuildRequires:  libssh2-devel
81BuildRequires:  libsmbclient-devel
82BuildRequires:  libtiff-devel
83BuildRequires:  libtool-ltdl-devel
84BuildRequires:  libudev-devel
85BuildRequires:  libusb-devel
86BuildRequires:  libva-devel
87BuildRequires:  libvorbis-devel
88BuildRequires:  libxml2-devel
89BuildRequires:  libxslt-devel
90BuildRequires:  nasm
91BuildRequires:  openssl-devel
92BuildRequires:  lzo-devel
93BuildRequires:  pcre-devel
94BuildRequires:  pulseaudio-libs-devel
95BuildRequires:  sqlite3-devel
96BuildRequires:  swig
97BuildRequires:  taglib-devel >= 1.8
98BuildRequires:  tinyxml-devel
99BuildRequires:  unzip
100BuildRequires:  wavpack-devel
101BuildRequires:  zlib-devel
102BuildRequires:  self-build-faac
103BuildRequires:  self-build-faad2
104BuildRequires:  self-build-lame
105BuildRequires:  self-build-libmad
106BuildRequires:  self-build-libmpeg2
107BuildRequires:  libvdpau-devel
108BuildRequires:  bluez-libs-devel
109BuildRequires:  yajl-devel
110BuildRequires:  python-devel
111BuildRequires:  libshairport-devel
112BuildRoot:      %{_tmppath}/%{name}-%{version}-root
113
114Packager:       kazutaka, shaolin
115
116%description
117XBMC is an award-winning free and open source (GPL) software media player
118and entertainment hub for digital media.
119
120Currently XBMC can be used to play almost all popular audio and video formats
121around. It was designed for network playback, so you can stream your multimedia
122from anywhere in the house or directly from the internet using practically any
123protocol available. Use your media as-is: XBMC can play CDs and DVDs directly
124from the disk or image file, almost all popular archive formats from your hard
125drive, and even files inside ZIP and RAR archives. It will even scan all of
126your media and automatically create a personalized library complete with box
127covers, descriptions, and fanart. There are playlist and slideshow functions,
128a weather forecast feature and many audio visualizations. Once installed,
129your computer will become a fully functional multimedia jukebox.
130
131%description -l ja
132XBMC はいくつもの賞を受賞したフリーでオープンソース (GPL) な、
133デジタルメディア向けのメディアプレイヤー/メディアセンターです。
134
135XBMC は一般的な形式のビデオやオーディオファイルであれば、その殆ど
136を再生できます。またネットワークを介した再生にも対応しており、
137ホームLAN やインターネットを経由したストリーミングも利用できます。
138
139また、XBMC は CD や DVD を直接再生できるだけでなく、ハードディスク
140上のディスクイメージや一般的なアーカイブ、ZIP や RAR アーカイブ等で
141あってもそのまま利用できます。
142
143XBMC は PC 上のメディアファイルをスキャンして、自動的にライブラリ
144を構築し、カバーアートや説明、ファンアート等を付加してくれます。
145その他にも、プレイリストやスライドショー、天気予報、オーディオの
146ビジュアライゼーション機能等を備えています。
147
148XBMC をインストールすれば、あなたの 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
167LIBS="-L/usr/lib64/mysql $LIBS"
168%else
169LIBS="-L/usr/lib/mysql $LIBS"
170%endif
171
172export 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
206gzip -9nf %{buildroot}/%{_mandir}/man1/*
207
208# Install desktop file
209desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
210
211
212%post
213update-desktop-database %{_datadir}/applications>& /dev/null ||:
214touch --no-create %{_datadir}/icons/hicolor
215if [ -x /usr/bin/gtk-update-icon-cache ]; then
216  /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
217fi
218
219%postun
220update-desktop-database %{_datadir}/applications>& /dev/null ||:
221touch --no-create %{_datadir}/icons/hicolor
222if [ -x /usr/bin/gtk-update-icon-cache ]; then
223  /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
224fi
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
Note: See TracBrowser for help on using the repository browser.