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