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

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