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 | |
---|
8 | Summary: Package to automatically build %{pkgname} rpm package |
---|
9 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
10 | Name: %{name} |
---|
11 | Version: 13.2 |
---|
12 | Release: 1%{?_dist_release} |
---|
13 | Source0: %{pkgname}-vl.spec |
---|
14 | Source1: %{pkgname}.desktop |
---|
15 | #Source2: %{pkgname}-%{version}-strings.xml |
---|
16 | #Source3: %{pkgname}-%{version}-Confluence-strings.xml |
---|
17 | Source4: %{pkgname}-%{version}-default-locale.patch |
---|
18 | #Source5: %{pkgname}-%{version}-use-pkgconfig-for-samba.patch |
---|
19 | #Source6: %{pkgname}-%{version}-dvdread.patch |
---|
20 | Source7: %{pkgname}-%{version}-vine.patch |
---|
21 | |
---|
22 | License: GPLv2+ |
---|
23 | Group: Restricted Software |
---|
24 | |
---|
25 | Requires(post): self-build-setup >= 1.0 |
---|
26 | |
---|
27 | # (build)requies of target package. |
---|
28 | #Requires(post): lsb |
---|
29 | Requires(post): python-imaging |
---|
30 | Requires(post): pysqlite |
---|
31 | Requires(post): hicolor-icon-theme |
---|
32 | Requires(post): desktop-file-utils |
---|
33 | |
---|
34 | %if %{?_dist_release} >= "vl7" |
---|
35 | BuildRequires: mariadb-devel |
---|
36 | %else |
---|
37 | Requires(post): MySQL-devel |
---|
38 | %endif |
---|
39 | Requires(post): SDL_gfx-devel |
---|
40 | Requires(post): SDL_image-devel |
---|
41 | Requires(post): SDL_mixer-devel |
---|
42 | Requires(post): alsa-lib-devel |
---|
43 | Requires(post): avahi-devel |
---|
44 | Requires(post): bluez-libs-devel |
---|
45 | Requires(post): bzip2-devel |
---|
46 | Requires(post): cmake |
---|
47 | Requires(post): curl-devel |
---|
48 | Requires(post): cvs |
---|
49 | Requires(post): dbus-devel |
---|
50 | Requires(post): desktop-file-utils |
---|
51 | Requires(post): doxygen |
---|
52 | Requires(post): enca-devel |
---|
53 | Requires(post): flac-devel |
---|
54 | Requires(post): fontconfig-devel |
---|
55 | Requires(post): fribidi-devel >= 0.19 |
---|
56 | Requires(post): glew-devel |
---|
57 | Requires(post): gperf |
---|
58 | Requires(post): gmp-devel |
---|
59 | #Requires(post): hal-devel |
---|
60 | Requires(post): jasper-devel |
---|
61 | Requires(post): java >= 1.6 |
---|
62 | Requires(post): libXinerama-devel |
---|
63 | Requires(post): libXmu-devel |
---|
64 | Requires(post): libXrandr-devel |
---|
65 | Requires(post): libXtst-devel |
---|
66 | Requires(post): libass-devel |
---|
67 | Requires(post): libboost-devel |
---|
68 | Requires(post): libbluray-devel |
---|
69 | Requires(post): libcap-devel |
---|
70 | Requires(post): libcdio-devel |
---|
71 | Requires(post): libdvdread-devel |
---|
72 | Requires(post): expat-devel |
---|
73 | Requires(post): libjpeg-devel |
---|
74 | Requires(post): libmicrohttpd-devel |
---|
75 | Requires(post): libmms-devel |
---|
76 | Requires(post): libmodplug-devel |
---|
77 | Requires(post): libogg-devel |
---|
78 | Requires(post): libplist-devel |
---|
79 | Requires(post): libpng-devel |
---|
80 | Requires(post): libsamplerate-devel |
---|
81 | Requires(post): libssh-devel |
---|
82 | Requires(post): libssh2-devel |
---|
83 | Requires(post): libsmbclient-devel |
---|
84 | Requires(post): libtiff-devel |
---|
85 | Requires(post): libtool-ltdl-devel |
---|
86 | Requires(post): libudev-devel |
---|
87 | Requires(post): libusb-devel |
---|
88 | Requires(post): libva-devel |
---|
89 | Requires(post): libvorbis-devel |
---|
90 | Requires(post): libxml2-devel |
---|
91 | Requires(post): libxslt-devel |
---|
92 | Requires(post): nasm |
---|
93 | Requires(post): openssl-devel |
---|
94 | Requires(post): lzo-devel |
---|
95 | Requires(post): pcre-devel |
---|
96 | Requires(post): pulseaudio-libs-devel |
---|
97 | Requires(post): python-devel |
---|
98 | Requires(post): sqlite3-devel |
---|
99 | Requires(post): swig |
---|
100 | Requires(post): taglib-devel >= 1.8 |
---|
101 | Requires(post): tinyxml-devel |
---|
102 | Requires(post): unzip |
---|
103 | Requires(post): wavpack-devel |
---|
104 | Requires(post): yajl-devel |
---|
105 | Requires(post): zlib-devel |
---|
106 | Requires(post): self-build-faac |
---|
107 | Requires(post): self-build-faad2 |
---|
108 | Requires(post): self-build-lame |
---|
109 | Requires(post): self-build-libmad |
---|
110 | Requires(post): self-build-libmpeg2 |
---|
111 | Requires(post): libvdpau-devel |
---|
112 | Requires(post): yasm |
---|
113 | Requires(post): libshairport-devel |
---|
114 | |
---|
115 | BuildArch: noarch |
---|
116 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
117 | |
---|
118 | Packager: kazutaka, shaolin |
---|
119 | |
---|
120 | %description |
---|
121 | XBMC is an award-winning free and open source (GPL) software |
---|
122 | media player and entertainment hub for digital media. |
---|
123 | |
---|
124 | If you install this package, it automaticaly downloads source |
---|
125 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
126 | And the created rpm packages are automatically installed |
---|
127 | if installation is executed by apt-get command or synaptic |
---|
128 | package manager. |
---|
129 | |
---|
130 | [Note] |
---|
131 | This package requires many other packages to compile |
---|
132 | targetsoftware. So it consume more disk space than usual. |
---|
133 | Also installation takes logner time because of compilation. |
---|
134 | (This will take a few minutes to quarter or half of an hour, |
---|
135 | depends on building environment) |
---|
136 | |
---|
137 | [About self-build package] |
---|
138 | For some kind of software, distributing of binary package |
---|
139 | may viorate the patent or law. Therefore we chose self-build |
---|
140 | packge, create binary package on your machine, for such kind |
---|
141 | of softwares instead of distributing binary package. |
---|
142 | |
---|
143 | Please obey the national law when you use the created binary |
---|
144 | packages. And if you want to use the softwares using patented |
---|
145 | thechnology, it may be required to get a permission, make an |
---|
146 | agreement or purchas a license. Please consider it with your |
---|
147 | purpose or way of use and take appropriate action. |
---|
148 | |
---|
149 | %description -l ja |
---|
150 | XBMC はいくつもの賞を受賞したフリーでオープンソース (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 |
---|