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