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

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

new upstream release

Line 
1%define pkgname xbmc
2%define codename Gotham
3%define name    self-build-%{pkgname}
4
5%define sourceurl http://mirrors.kodi.tv/releases/source/old/%{pkgname}-%{version}.tar.gz
6#% define sourceurl https://github.com/xbmc/xbmc/archive/%{codename}.zip
7
8Summary:        Package to automatically build %{pkgname} rpm package
9Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
10Name:           %{name}
11Version:        13.2
12Release:        1%{?_dist_release}
13Source0:        %{pkgname}-vl.spec
14Source1:        %{pkgname}.desktop
15#Source2:       %{pkgname}-%{version}-strings.xml
16#Source3:       %{pkgname}-%{version}-Confluence-strings.xml
17Source4:        %{pkgname}-%{version}-default-locale.patch
18#Source5:       %{pkgname}-%{version}-use-pkgconfig-for-samba.patch
19#Source6:       %{pkgname}-%{version}-dvdread.patch
20Source7:        %{pkgname}-%{version}-vine.patch
21
22License:        GPLv2+
23Group:          Restricted Software
24
25Requires(post):         self-build-setup >= 1.0
26
27# (build)requies of target package.
28#Requires(post):        lsb
29Requires(post): python-imaging
30Requires(post): pysqlite
31Requires(post): hicolor-icon-theme
32Requires(post): desktop-file-utils
33
34%if %{?_dist_release} >= "vl7"
35BuildRequires: mariadb-devel
36%else
37Requires(post): MySQL-devel
38%endif
39Requires(post): SDL_gfx-devel
40Requires(post): SDL_image-devel
41Requires(post): SDL_mixer-devel
42Requires(post): alsa-lib-devel
43Requires(post): avahi-devel
44Requires(post): bluez-libs-devel
45Requires(post): bzip2-devel
46Requires(post): cmake
47Requires(post): curl-devel
48Requires(post): cvs
49Requires(post): dbus-devel
50Requires(post): desktop-file-utils
51Requires(post): doxygen
52Requires(post): enca-devel
53Requires(post): flac-devel
54Requires(post): fontconfig-devel
55Requires(post): fribidi-devel >= 0.19
56Requires(post): glew-devel
57Requires(post): gperf
58Requires(post): gmp-devel
59#Requires(post):        hal-devel
60Requires(post): jasper-devel
61Requires(post): java >= 1.6
62Requires(post): libXinerama-devel
63Requires(post): libXmu-devel
64Requires(post): libXrandr-devel
65Requires(post): libXtst-devel
66Requires(post): libass-devel
67Requires(post): libboost-devel
68Requires(post): libbluray-devel
69Requires(post): libcap-devel
70Requires(post): libcdio-devel
71Requires(post): libdvdread-devel
72Requires(post): expat-devel
73Requires(post): libjpeg-devel
74Requires(post): libmicrohttpd-devel
75Requires(post): libmms-devel
76Requires(post): libmodplug-devel
77Requires(post): libogg-devel
78Requires(post): libplist-devel
79Requires(post): libpng-devel
80Requires(post): libsamplerate-devel
81Requires(post): libssh-devel
82Requires(post): libssh2-devel
83Requires(post): libsmbclient-devel
84Requires(post): libtiff-devel
85Requires(post): libtool-ltdl-devel
86Requires(post): libudev-devel
87Requires(post): libusb-devel
88Requires(post): libva-devel
89Requires(post): libvorbis-devel
90Requires(post): libxml2-devel
91Requires(post): libxslt-devel
92Requires(post): nasm
93Requires(post): openssl-devel
94Requires(post): lzo-devel
95Requires(post): pcre-devel
96Requires(post): pulseaudio-libs-devel
97Requires(post): python-devel
98Requires(post): sqlite3-devel
99Requires(post): swig
100Requires(post): taglib-devel >= 1.8
101Requires(post): tinyxml-devel
102Requires(post): unzip
103Requires(post): wavpack-devel
104Requires(post): yajl-devel
105Requires(post): zlib-devel
106Requires(post): self-build-faac
107Requires(post): self-build-faad2
108Requires(post): self-build-lame
109Requires(post): self-build-libmad
110Requires(post): self-build-libmpeg2
111Requires(post): libvdpau-devel
112Requires(post): yasm
113Requires(post): libshairport-devel
114
115BuildArch:      noarch
116BuildRoot:      %{_tmppath}/%{name}-%{version}-root
117
118Packager:       kazutaka, shaolin
119
120%description
121XBMC is an award-winning free and open source (GPL) software
122media player and entertainment hub for digital media.
123
124If you install this package, it automaticaly downloads source
125code ,compile it, and create rpm packages of %{pkgname}-%{version}.
126And the created rpm packages are automatically installed
127if installation is executed by apt-get command or synaptic
128package manager.
129
130[Note]
131This package requires many other packages to compile
132targetsoftware. So it consume more disk space than usual.
133Also installation takes logner time because of compilation.
134(This will take a few minutes to quarter or half of an hour,
135depends on building environment)
136
137[About self-build package]
138For some kind of software, distributing of binary package
139may viorate the patent or law. Therefore we chose self-build
140packge, create binary package on your machine, for such kind
141of softwares instead of distributing binary package.
142
143Please obey the national law when you use the created binary
144packages. And if you want to use the softwares using patented
145thechnology, it may be required to get a permission, make an
146agreement or purchas a license. Please consider it with your
147purpose or way of use and take appropriate action.
148
149%description -l ja
150XBMC はいくつもの賞を受賞したフリーでオープンソース (GPL) な、
151デジタルメディア向けのメディアプレイヤー/メディアセンターです。
152
153このパッケージをインストールすると、自動的にソースコードを
154ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm
155パッケージを作成します。
156また apt-get コマンドや synaptic パッケージマネージャから実行
157した場合は、作成された rpm パッケージのインストールも自動的に
158行います。
159
160[注意]
161コンパイルに必要な多くの関連パッケージを要求するので通常より
162ディスクの領域を多く消費します。
163またインストール時にコンパイルを行うため、通常より時間がかか
164る場合があります。(環境にもよりますが数分から数十分程度)
165
166[self-build パッケージについて]
167ソフトウェアによってはバイナリパッケージの配布が特許や法律に
168違反する可能性があるものがあります。その為、このような問題が
169懸念されるソフトウェアについてはバイナリパッケージを直接配布
170せずに、ユーザの環境でバイナリを作成する self-build パッケー
171ジという方法を採っています。
172
173作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
174アのライセンス、および利用する国の各種法令に従ってください。
175また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
176センスの購入などが必要となる場合がありますので、利用する目的
177や形態に応じて各自で判断し適切な対応を取ってください。
178
179%prep
180[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
181
182%install
183%{__rm} -rf %{buildroot}
184%{__install} -d %{buildroot}/%{_datadir}/%{name}
185%{__install} -m 644 %{SOURCE0} %{buildroot}/%{_datadir}/%{name}
186%{__install} -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/%{name}
187#%{__install} -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/%{name}
188#%{__install} -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/%{name}
189%{__install} -m 644 %{SOURCE4} %{buildroot}/%{_datadir}/%{name}
190#%{__install} -m 644 %{SOURCE5} %{buildroot}/%{_datadir}/%{name}
191#%{__install} -m 644 %{SOURCE6} %{buildroot}/%{_datadir}/%{name}
192%{__install} -m 644 %{SOURCE7} %{buildroot}/%{_datadir}/%{name}
193
194
195%clean
196%{__rm} -rf %{buildroot}
197
198
199%posttrans
200/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 588000
201
202
203%files
204%defattr(-,root,root)
205%{_datadir}/%{name}
206
207
208%changelog
209* Mon Jan 12 2015 Munehiro Yamamoto <munepi@vinelinux.org> 13.2-1
210- new upstream release (13.1 Gotham)
211- dropped Requires(post): hal-devel
212
213* Tue Jun 17 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 13.1-1
214- new upstream release (13.1 Gotham)
215- add Source7 (Patch4) to get rid of lsb dependency
216
217* Wed May  7 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 13.0-1
218- new upstream release (13.0 Gotham)
219- source tarball not released yet - get the zip archive from github instead
220
221* Fri Oct 25 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-4
222- revert 12.2-3 changes (subtitles won't be displayed correctly)
223
224* Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-3
225- use external ffmpeg and other libraries
226
227* Wed Oct 23 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-2
228- minor fix
229
230* Thu Aug  8 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.2-1
231- new upstream release
232
233* Mon Mar  4 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-2
234- add patch to fix build failure with samba > 4.0 (BTS: 0002557)
235
236* Sun Feb 10 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 12.0-1
237- new upstream release
238
239* Fri Mar 30 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-5
240- fix silly typo in Source11
241
242* Thu Mar 29 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-4
243- Source11 and Source12 (Japanese strings) much updated
244
245* Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-3
246- update Packager
247
248* Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-2
249- update Source2 (Japanese strings)
250
251* Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-1
252- new upstream release
253- add build depencencies for bluez-libs-devel, yajl-devel, yasm & python-devel
254
255* Fri Feb 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-3
256- delete build_vine5 macro: libvdpau is now available on 5.2
257
258* Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2
259- add --disable-ccache option (<BTS:VineLinux:1100>)
260- update Source4 to change default timezone
261
262* Sun Jan 23 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1
263- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.