[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} |
---|
[2635] | 9 | Version: 10.0 |
---|
| 10 | Release: 3%{?_dist_release} |
---|
[2553] | 11 | Source0: %{pkgname}-vl.spec |
---|
| 12 | Source1: %{pkgname}.desktop |
---|
| 13 | Source2: %{pkgname}-%{version}-strings.xml |
---|
| 14 | Source3: %{pkgname}-%{version}-Confluence-strings.xml |
---|
| 15 | Source4: %{pkgname}-%{version}-default-locale.patch |
---|
| 16 | |
---|
| 17 | License: GPL |
---|
| 18 | Group: Restricted Software |
---|
| 19 | |
---|
| 20 | Requires(post): self-build-setup >= 0.8 |
---|
| 21 | |
---|
| 22 | # (build)requies of target package. |
---|
| 23 | Requires(post): lsb |
---|
| 24 | Requires(post): python-imaging |
---|
| 25 | Requires(post): pysqlite |
---|
| 26 | Requires(post): hicolor-icon-theme |
---|
| 27 | Requires(post): desktop-file-utils |
---|
| 28 | |
---|
| 29 | Requires(post): MySQL-devel |
---|
| 30 | Requires(post): SDL_image-devel |
---|
| 31 | Requires(post): SDL_mixer-devel |
---|
| 32 | Requires(post): alsa-lib-devel |
---|
| 33 | Requires(post): avahi-devel |
---|
| 34 | Requires(post): bzip2-devel |
---|
| 35 | Requires(post): cmake |
---|
| 36 | Requires(post): curl-devel |
---|
| 37 | Requires(post): cvs |
---|
| 38 | Requires(post): dbus-devel |
---|
| 39 | Requires(post): desktop-file-utils |
---|
| 40 | Requires(post): enca-devel |
---|
| 41 | Requires(post): flac-devel |
---|
| 42 | Requires(post): fontconfig-devel |
---|
| 43 | Requires(post): fribidi-devel |
---|
| 44 | Requires(post): glew-devel |
---|
| 45 | Requires(post): gperf |
---|
| 46 | Requires(post): hal-devel |
---|
| 47 | Requires(post): jasper-devel |
---|
| 48 | Requires(post): libXinerama-devel |
---|
| 49 | Requires(post): libXmu-devel |
---|
| 50 | Requires(post): libXrandr-devel |
---|
| 51 | Requires(post): libXtst-devel |
---|
| 52 | Requires(post): libboost-devel |
---|
| 53 | Requires(post): libcdio-devel |
---|
| 54 | Requires(post): expat-devel |
---|
| 55 | Requires(post): libjpeg-devel |
---|
| 56 | Requires(post): libmicrohttpd-devel |
---|
| 57 | Requires(post): libmms-devel |
---|
| 58 | Requires(post): libmodplug-devel |
---|
| 59 | Requires(post): libogg-devel |
---|
| 60 | Requires(post): libpng-devel |
---|
| 61 | Requires(post): libsamplerate-devel |
---|
| 62 | Requires(post): libsmbclient-devel |
---|
| 63 | Requires(post): libtiff-devel |
---|
| 64 | Requires(post): libvorbis-devel |
---|
| 65 | Requires(post): nasm |
---|
| 66 | Requires(post): openssl-devel |
---|
| 67 | Requires(post): lzo-devel |
---|
| 68 | Requires(post): pcre-devel |
---|
| 69 | Requires(post): pulseaudio-libs-devel |
---|
| 70 | Requires(post): sqlite3-devel |
---|
| 71 | Requires(post): unzip |
---|
| 72 | Requires(post): wavpack-devel |
---|
| 73 | Requires(post): zlib-devel |
---|
| 74 | Requires(post): self-build-faac |
---|
| 75 | Requires(post): self-build-faad2 |
---|
| 76 | Requires(post): self-build-libmad |
---|
| 77 | Requires(post): self-build-libmpeg2 |
---|
| 78 | Requires(post): libvdpau-devel |
---|
| 79 | |
---|
| 80 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 81 | |
---|
| 82 | Packager: kazutaka |
---|
| 83 | |
---|
| 84 | %description |
---|
| 85 | XBMC is an award-winning free and open source (GPL) software |
---|
| 86 | media player and entertainment hub for digital media. |
---|
| 87 | |
---|
| 88 | If you install this package, it automaticaly downloads source |
---|
| 89 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 90 | And the created rpm packages are automatically installed |
---|
| 91 | if installation is executed by apt-get command or synaptic |
---|
| 92 | package manager. |
---|
| 93 | |
---|
| 94 | [Note] |
---|
| 95 | This package requires many other packages to compile |
---|
| 96 | targetsoftware. So it consume more disk space than usual. |
---|
| 97 | Also installation takes logner time because of compilation. |
---|
| 98 | (This will take a few minutes to quarter or half of an hour, |
---|
| 99 | depends on building environment) |
---|
| 100 | |
---|
| 101 | [About self-build package] |
---|
| 102 | For some kind of software, distributing of binary package |
---|
| 103 | may viorate the patent or law. Therefore we chose self-build |
---|
| 104 | packge, create binary package on your machine, for such kind |
---|
| 105 | of softwares instead of distributing binary package. |
---|
| 106 | |
---|
| 107 | Please obey the national law when you use the created binary |
---|
| 108 | packages. And if you want to use the softwares using patented |
---|
| 109 | thechnology, it may be required to get a permission, make an |
---|
| 110 | agreement or purchas a license. Please consider it with your |
---|
| 111 | purpose or way of use and take appropriate action. |
---|
| 112 | |
---|
| 113 | %description -l ja |
---|
| 114 | XBMC はいくつもの賞を受賞したフリーでオープンソース (GPL) な、 |
---|
| 115 | デジタルメディア向けのメディアプレイヤー/メディアセンターです。 |
---|
| 116 | |
---|
| 117 | このパッケージをインストールすると、自動的にソースコードを |
---|
[2635] | 118 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
[2553] | 119 | パッケージを作成します。 |
---|
| 120 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 121 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 122 | 行います。 |
---|
| 123 | |
---|
| 124 | [注意] |
---|
| 125 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 126 | ディスクの領域を多く消費します。 |
---|
| 127 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 128 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 129 | |
---|
| 130 | [self-build パッケージについて] |
---|
| 131 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 132 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 133 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 134 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 135 | ジという方法を採っています。 |
---|
| 136 | |
---|
| 137 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 138 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 139 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 140 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 141 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 142 | |
---|
| 143 | %prep |
---|
| 144 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 145 | |
---|
| 146 | %install |
---|
| 147 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 148 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 149 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 150 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 151 | %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 152 | %{__install} -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 153 | %{__install} -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | %clean |
---|
| 157 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 158 | |
---|
| 159 | |
---|
| 160 | %posttrans |
---|
| 161 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 2447000 |
---|
| 162 | |
---|
| 163 | |
---|
| 164 | %files |
---|
| 165 | %defattr(-,root,root) |
---|
| 166 | %{_datadir}/%{name} |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | %changelog |
---|
[2635] | 170 | * Fri Feb 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-3 |
---|
| 171 | - delete build_vine5 macro: libvdpau is now available on 5.2 |
---|
| 172 | |
---|
[2598] | 173 | * Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2 |
---|
| 174 | - add --disable-ccache option (<BTS:VineLinux:1100>) |
---|
| 175 | - update Source4 to change default timezone |
---|
| 176 | |
---|
[2553] | 177 | * Sun Jan 23 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1 |
---|
| 178 | - initial build for Vine Linux |
---|