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

Revision 6016, 7.7 KB checked in by shaolin, 12 years ago (diff)
  • nonfree/self-build-xbmc: updated to 11.0, plus revised Japanese translation
  • y/yajl: rebuild
Line 
1Summary:        XBMC is a free Media Center
2Summary(ja):    XBMC メディアセンター
3Name:           xbmc
4Version:        11.0
5Release:        5%{?_dist_release}
6Source0:        %{name}-%{version}.tar.gz
7Source1:        %{name}.desktop
8#i18n
9#Source10:      xbmc-9.11-langinfo.xml
10Source11:       xbmc-11.0-strings.xml
11Source12:       xbmc-11.0-Confluence-strings.xml
12#lircd patch
13#Patch0:                xbmc-9.11-lircd.patch
14# change default locale and font
15Patch1:         xbmc-11.0-default-locale.patch
16License:        GPLv2+
17Group:          Applications/Multimedia
18URL:            http://xbmc.org/
19
20Requires:       lsb
21Requires:       python-imaging
22Requires:       pysqlite
23Requires:       hicolor-icon-theme
24Requires(post):  desktop-file-utils
25Requires(postun):desktop-file-utils
26
27BuildRequires:  MySQL-devel
28BuildRequires:  SDL_image-devel
29BuildRequires:  SDL_mixer-devel
30BuildRequires:  alsa-lib-devel
31BuildRequires:  avahi-devel
32BuildRequires:  bzip2-devel
33BuildRequires:  cmake
34BuildRequires:  curl-devel
35BuildRequires:  cvs
36BuildRequires:  dbus-devel
37BuildRequires:  desktop-file-utils
38BuildRequires:  enca-devel
39BuildRequires:  flac-devel
40BuildRequires:  fontconfig-devel
41BuildRequires:  fribidi-devel
42BuildRequires:  glew-devel
43BuildRequires:  gperf
44BuildRequires:  hal-devel
45BuildRequires:  jasper-devel
46BuildRequires:  libXinerama-devel
47BuildRequires:  libXmu-devel
48BuildRequires:  libXrandr-devel
49BuildRequires:  libXtst-devel
50BuildRequires:  libass-devel
51BuildRequires:  libboost-devel
52BuildRequires:  libcdio-devel
53BuildRequires:  expat-devel
54BuildRequires:  libjpeg-devel
55BuildRequires:  libmicrohttpd-devel
56BuildRequires:  libmms-devel
57BuildRequires:  libmodplug-devel
58BuildRequires:  libogg-devel
59BuildRequires:  libplist-devel
60BuildRequires:  libpng-devel
61BuildRequires:  libsamplerate-devel
62BuildRequires:  libsmbclient-devel
63BuildRequires:  libtiff-devel
64BuildRequires:  libudev-devel
65BuildRequires:  libvorbis-devel
66BuildRequires:  nasm
67BuildRequires:  openssl-devel
68BuildRequires:  lzo-devel
69BuildRequires:  pcre-devel
70BuildRequires:  pulseaudio-libs-devel
71BuildRequires:  sqlite3-devel
72BuildRequires:  unzip
73BuildRequires:  wavpack-devel
74BuildRequires:  zlib-devel
75BuildRequires:  self-build-faac
76BuildRequires:  self-build-faad2
77BuildRequires:  self-build-libmad
78BuildRequires:  self-build-libmpeg2
79BuildRequires:  libvdpau-devel
80BuildRequires:  bluez-libs-devel
81BuildRequires:  yajl-devel
82BuildRequires:  python-devel
83BuildRoot:      %{_tmppath}/%{name}-%{version}-root
84
85Packager:       kazutaka, shaolin
86
87%description
88XBMC is an award-winning free and open source (GPL) software media player
89and entertainment hub for digital media.
90
91Currently XBMC can be used to play almost all popular audio and video formats
92around. It was designed for network playback, so you can stream your multimedia
93from anywhere in the house or directly from the internet using practically any
94protocol available. Use your media as-is: XBMC can play CDs and DVDs directly
95from the disk or image file, almost all popular archive formats from your hard
96drive, and even files inside ZIP and RAR archives. It will even scan all of
97your media and automatically create a personalized library complete with box
98covers, descriptions, and fanart. There are playlist and slideshow functions,
99a weather forecast feature and many audio visualizations. Once installed,
100your computer will become a fully functional multimedia jukebox.
101
102%description -l ja
103XBMC はいくつもの賞を受賞したフリーでオープンソース (GPL) な、
104デジタルメディア向けのメディアプレイヤー/メディアセンターです。
105
106XBMC は一般的な形式のビデオやオーディオファイルであれば、その殆ど
107を再生できます。またネットワークを介した再生にも対応しており、
108ホームLAN やインターネットを経由したストリーミングも利用できます。
109
110また、XBMC は CD や DVD を直接再生できるだけでなく、ハードディスク
111上のディスクイメージや一般的なアーカイブ、ZIP や RAR アーカイブ等で
112あってもそのまま利用できます。
113
114XBMC は PC 上のメディアファイルをスキャンして、自動的にライブラリ
115を構築し、カバーアートや説明、ファンアート等を付加してくれます。
116その他にも、プレイリストやスライドショー、天気予報、オーディオの
117ビジュアライゼーション機能等を備えています。
118
119XBMC をインストールすれば、あなたの PC は多機能なマルチメディア
120ジュークボックスに生まれ変わります。
121
122
123%prep
124%setup -q
125%patch1 -p1 -b .default-locale
126
127#setup language files
128#%{__cp} -f %{SOURCE10} language/Japanese/langinfo.xml
129%{__cp} -f %{SOURCE11} language/Japanese/strings.xml
130%{__mkdir} -p addons/skin.confluence/language/Japanese
131%{__cp} -f %{SOURCE12} addons/skin.confluence/language/Japanese/strings.xml
132
133%build
134%ifarch x86_64
135LIBS="-L/usr/lib64/mysql $LIBS"
136%else
137LIBS="-L/usr/lib/mysql $LIBS"
138%endif
139
140export LIBS
141
142./bootstrap
143%configure --disable-debug \
144           --disable-ccache \
145           --enable-pulse \
146           --enable-dvdcss \
147           --enable-vdpau  \
148           --enable-mid \
149           --enable-libudev \
150           --enable-airplay \
151           --with-lirc-device=%{_localstatedir}/run/lirc/lircd \
152           --docdir=%{_docdir}/%{name}-%{version}
153
154%{__make} %{?_smp_mflags}
155
156
157%install
158%{__rm} -rf %{buildroot}
159%{__make} install DESTDIR=%{buildroot}
160
161#install man pages
162%{__mkdir_p} %{buildroot}/%{_mandir}/man1
163%{__cp} docs/manpages/* %{buildroot}/%{_mandir}/man1
164gzip -9nf %{buildroot}/%{_mandir}/man1/*
165
166# Install desktop file
167desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
168
169
170%post
171update-desktop-database %{_datadir}/applications>& /dev/null ||:
172touch --no-create %{_datadir}/icons/hicolor
173if [ -x /usr/bin/gtk-update-icon-cache ]; then
174  /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
175fi
176
177%postun
178update-desktop-database %{_datadir}/applications>& /dev/null ||:
179touch --no-create %{_datadir}/icons/hicolor
180if [ -x /usr/bin/gtk-update-icon-cache ]; then
181  /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor ||:
182fi
183
184
185%clean
186%{__rm} -rf %{buildroot}
187
188
189%files
190%defattr(-,root,root)
191%doc %{_docdir}/%{name}-%{version}
192%{_bindir}/%{name}
193%{_bindir}/%{name}-standalone
194%{_datadir}/%{name}
195%{_datadir}/applications/%{name}.desktop
196%{_datadir}/xsessions/XBMC.desktop
197%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
198%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
199%{_libdir}/%{name}
200%{_mandir}/man1/*
201
202%changelog
203* Fri Mar 30 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-5
204- fix silly typo in Source11
205
206* Thu Mar 29 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-4
207- Source11 and Source12 (Japanese strings) much updated
208
209* Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-3
210- update Packager
211
212* Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-2
213- update Source11 (Japanese strings)
214
215* Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-1
216- new upstream release
217- add build depencencies for bluez-libs-devel, yajl-devel, yasm & python-devel
218
219* Fri Feb 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-3
220- delete build_vine5 macro: libvdpau is now available on 5.2
221
222* Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2
223- add --disable-ccache option (<BTS:VineLinux:1100>)
224- update Patch1 to change default timezone
225
226* Tue Jan 18 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1
227- new upstream release
228- drop patch0: use configure option to specity lirc device)
229- drop Source10: included in upstream
230- update Source11 & 12: japanese translation
231- add Souce1: xbmc.desktop with japanese description
232
233* Sat Jan 02 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 9.11-1
234- initial build for Vine Linux
235- add patch0: change lircd socket location
236- add Source10-12: japanese translation & langinfo
Note: See TracBrowser for help on using the repository browser.