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

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