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