source: projects/specs/branches/6/nonfree/self-build-xbmc/xbmc-vl.spec @ 9242

Revision 9242, 9.3 KB checked in by munepi, 9 years ago (diff)

updated %%sourceurl

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