[615] | 1 | %define pkgname vlc |
---|
| 2 | %define name self-build-%{pkgname} |
---|
[1258] | 3 | %define version 1.1.0 |
---|
[1259] | 4 | %define release 2%{?_dist_release} |
---|
[615] | 5 | |
---|
| 6 | %if %{?_dist_release} == "vl4" |
---|
| 7 | ## dummy echo |
---|
| 8 | echo This package cannot build on Vine Linux 4.2. |
---|
| 9 | exit 1 |
---|
| 10 | %endif |
---|
| 11 | |
---|
| 12 | %define with_mozilla 0 |
---|
| 13 | %define with_dc1394 0 |
---|
| 14 | %define with_directfb 1 |
---|
| 15 | |
---|
| 16 | %define with_samba 0 |
---|
| 17 | |
---|
| 18 | %define sourceurl0 http://download.videolan.org/pub/videolan/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.bz2 |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 22 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 23 | Name: %{name} |
---|
| 24 | Version: %{version} |
---|
| 25 | Release: %{release} |
---|
| 26 | |
---|
[1259] | 27 | Obsoletes: vlc < 1.1.0 |
---|
| 28 | Obsoletes: vlc-devel < 1.1.0 |
---|
[615] | 29 | |
---|
| 30 | Source0: %{pkgname}-vl.spec |
---|
| 31 | |
---|
| 32 | Source10: vlc-handlers.schemas |
---|
[1258] | 33 | Source100: vlc-1.1.0-vlc-cache-gen_noerror.patch |
---|
[615] | 34 | |
---|
| 35 | License: GPLv2+ |
---|
| 36 | Group: Restricted Software |
---|
| 37 | |
---|
| 38 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 39 | |
---|
| 40 | Requires(post): desktop-file-utils |
---|
| 41 | Requires(post): gettext |
---|
| 42 | Requires(post): gettext-devel |
---|
| 43 | Requires(post): libtool |
---|
| 44 | Requires(post): aalib-devel |
---|
| 45 | Requires(post): alsa-lib-devel |
---|
| 46 | Requires(post): avahi-devel |
---|
| 47 | Requires(post): cdparanoia-devel |
---|
| 48 | Requires(post): dbus-devel |
---|
| 49 | %{?_with_dirac: Requires(post): dirac-devel >= 1.0.0} |
---|
| 50 | %if %with_directfb |
---|
| 51 | Requires(post): libdirectfb-devel |
---|
| 52 | %endif |
---|
| 53 | Requires(post): flac-devel |
---|
| 54 | Requires(post): fribidi-devel |
---|
| 55 | Requires(post): gnome-vfs2-devel |
---|
| 56 | Requires(post): gnutls-devel >= 1.0.17 |
---|
| 57 | Requires(post): gsm-devel |
---|
| 58 | Requires(post): hal-devel |
---|
| 59 | Requires(post): jack-audio-connection-kit-devel |
---|
| 60 | Requires(post): libavc1394-devel |
---|
| 61 | Requires(post): libcdio-devel >= 0.77-3 |
---|
| 62 | Requires(post): libdv-devel |
---|
| 63 | Requires(post): libdvdread-devel |
---|
| 64 | Requires(post): libebml-devel |
---|
| 65 | Requires(post): libid3tag-devel |
---|
| 66 | %{?_with_kate: Requires(post): libkate-devel} |
---|
| 67 | Requires(post): libmatroska-devel >= 0.7.6 |
---|
| 68 | Requires(post): libmpcdec-devel |
---|
| 69 | Requires(post): libmtp-devel |
---|
| 70 | Requires(post): libnotify-devel |
---|
| 71 | Requires(post): librsvg2-devel >= 2.5.0 |
---|
| 72 | Requires(post): libshout-devel |
---|
| 73 | Requires(post): libsmbclient-devel |
---|
| 74 | Requires(post): libtheora-devel |
---|
| 75 | Requires(post): libtiff-devel |
---|
| 76 | Requires(post): libupnp-devel |
---|
| 77 | Requires(post): libv4l-devel |
---|
| 78 | Requires(post): libvorbis-devel |
---|
| 79 | Requires(post): libxml2-devel |
---|
| 80 | Requires(post): lirc |
---|
| 81 | Requires(post): kernel-headers >= 2.6.20 |
---|
| 82 | Requires(post): libmusicbrainz-devel |
---|
| 83 | Requires(post): lua-devel |
---|
| 84 | Requires(post): ncurses-devel |
---|
| 85 | Requires(post): openslp-devel |
---|
| 86 | Requires(post): qt4-devel |
---|
| 87 | Requires(post): SDL_image-devel |
---|
| 88 | Requires(post): speex-devel >= 1.1.5 |
---|
| 89 | %ifarch %{ix86} x86_64 |
---|
| 90 | Requires(post): svgalib-devel |
---|
| 91 | %endif |
---|
| 92 | Requires(post): taglib-devel |
---|
| 93 | Requires(post): twolame-devel |
---|
| 94 | Requires(post): xosd-devel |
---|
| 95 | Requires(post): zlib-devel |
---|
| 96 | |
---|
| 97 | # X-libs |
---|
| 98 | Requires(post): libXt-devel |
---|
| 99 | Requires(post): libXv-devel |
---|
| 100 | Requires(post): libXxf86vm-devel |
---|
| 101 | Requires(post): libX11-devel |
---|
| 102 | Requires(post): libXext-devel |
---|
| 103 | Requires(post): libXpm-devel |
---|
| 104 | %ifarch %{ix86} x86_64 |
---|
| 105 | Requires(post): libXvMC-devel |
---|
| 106 | %endif |
---|
| 107 | Requires(post): xorg-x11-proto-devel |
---|
| 108 | |
---|
| 109 | %if %with_samba |
---|
| 110 | Requires(post): samba-libsmbclient-devel |
---|
| 111 | %endif |
---|
| 112 | |
---|
| 113 | Requires(post): pulseaudio-libs-devel >= 0.9.8 |
---|
| 114 | |
---|
| 115 | %if %with_mozilla |
---|
| 116 | Requires(post): gecko-devel |
---|
| 117 | Requires(post): nspr-devel |
---|
| 118 | %endif |
---|
| 119 | |
---|
| 120 | Requires(post): libraw1394-devel |
---|
| 121 | |
---|
| 122 | Requires: TrueType-dejavu |
---|
| 123 | |
---|
| 124 | ## vine |
---|
[1259] | 125 | %if %{?_dist_release} == "vl6" |
---|
[1258] | 126 | Requires(post): libva-devel |
---|
[1259] | 127 | %endif |
---|
[615] | 128 | Requires(post): libgcrypt-devel |
---|
| 129 | Requires(post): wx-gtk2-devel |
---|
| 130 | Requires: mesa-libGL |
---|
| 131 | Requires(post): xorg-x11-devel |
---|
| 132 | Requires(post): mesa-libGL-devel |
---|
| 133 | Requires(post): self-build-libmpeg2 |
---|
| 134 | Requires(post): self-build-a52dec |
---|
| 135 | Requires(post): self-build-faac |
---|
| 136 | Requires(post): self-build-faad2 |
---|
| 137 | Requires(post): self-build-ffmpeg >= 0.4.9 |
---|
| 138 | Requires(post): self-build-libdca |
---|
| 139 | Requires(post): self-build-libdvbpsi |
---|
| 140 | Requires(post): self-build-libdvdnav |
---|
| 141 | Requires(post): self-build-libmad |
---|
| 142 | Requires(post): self-build-libmp4v2 |
---|
| 143 | Requires(post): self-build-x264 >= 0.0.0-9.20090522 |
---|
| 144 | Requires(post): self-build-xvidcore |
---|
| 145 | |
---|
| 146 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 147 | |
---|
| 148 | Packager: munepi |
---|
| 149 | |
---|
| 150 | %description |
---|
| 151 | VLC (initially VideoLAN Client) is a highly portable multimedia player |
---|
| 152 | for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, |
---|
| 153 | mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. |
---|
| 154 | It can also be used as a server to stream in unicast or multicast in |
---|
| 155 | IPv4 or IPv6 on a high-bandwidth network. |
---|
| 156 | |
---|
| 157 | |
---|
| 158 | [Note] |
---|
| 159 | This package requires many other packages to compile |
---|
| 160 | targetsoftware. So it consume more disk space than usual. |
---|
| 161 | Also installation takes logner time because of compilation. |
---|
| 162 | (This will take a few minutes to quarter or half of an hour, |
---|
| 163 | depends on building environment) |
---|
| 164 | |
---|
| 165 | [About self-build package] |
---|
| 166 | For some kind of software, distributing of binary package |
---|
| 167 | may viorate the patent or law. Therefore we chose self-build |
---|
| 168 | packge, create binary package on your machine, for such kind |
---|
| 169 | of softwares instead of distributing binary package. |
---|
| 170 | |
---|
| 171 | Please obey the national law when you use the created binary |
---|
| 172 | packages. And if you want to use the softwares using patented |
---|
| 173 | thechnology, it may be required to get a permission, make an |
---|
| 174 | agreement or purchas a license. Please consider it with your |
---|
| 175 | purpose or way of use and take appropriate action. |
---|
| 176 | |
---|
| 177 | %description -l ja |
---|
| 178 | VLC(初期は VideoLAN Client)は高い可搬性のあるマルチメディアプレーヤーで, |
---|
| 179 | 様々なオーディオおよびビデオフォーマット(MPEG-1, MPEG-2, MPEG-4, DivX, |
---|
| 180 | mp3, ogg など)だけでなく,DVD や VCD,様々なストリーミングプロトコルにも |
---|
| 181 | 対応しています. |
---|
| 182 | また,高帯域幅上の IPv4 や IPv6 で, |
---|
| 183 | ユニキャストやマルチキャストのストリームに, |
---|
| 184 | サーバーとして使用することもできます. |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 188 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
| 189 | の rpm パッケージを作成します。 |
---|
| 190 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 191 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 192 | 行います。 |
---|
| 193 | |
---|
| 194 | [注意] |
---|
| 195 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 196 | ディスクの領域を多く消費します。 |
---|
| 197 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 198 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 199 | |
---|
| 200 | [self-build パッケージについて] |
---|
| 201 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 202 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 203 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 204 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 205 | ジという方法を採っています。 |
---|
| 206 | |
---|
| 207 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 208 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 209 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 210 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 211 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 212 | |
---|
| 213 | %prep |
---|
| 214 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 215 | |
---|
| 216 | %install |
---|
| 217 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 218 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 219 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 220 | %{__install} -m 644 %{SOURCE10} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 221 | |
---|
| 222 | %{__install} -m 644 \ |
---|
[1258] | 223 | %{SOURCE100} \ |
---|
[615] | 224 | ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 225 | |
---|
| 226 | |
---|
| 227 | %clean |
---|
| 228 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 229 | |
---|
| 230 | %posttrans |
---|
[1258] | 231 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 1195000 |
---|
[615] | 232 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 233 | %{pkgname}-devel-%{version}-%{release} |
---|
| 234 | |
---|
| 235 | %files |
---|
| 236 | %defattr(-,root,root) |
---|
| 237 | %{_datadir}/%{name} |
---|
| 238 | |
---|
| 239 | |
---|
| 240 | %changelog |
---|
[1259] | 241 | * Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-2 |
---|
| 242 | - for only vl6, supported libva |
---|
| 243 | - set Obsoletes: vlc < 1.1.0 vlc-devel < 1.1.0 |
---|
| 244 | |
---|
[1258] | 245 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.0-1 |
---|
| 246 | - new upstream release |
---|
| 247 | - added Requires(post): libva-devel |
---|
| 248 | |
---|
[615] | 249 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-3 |
---|
| 250 | - renamed %%{Source0} to vlc-vl.spec |
---|
| 251 | |
---|
| 252 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-2 |
---|
| 253 | - added Requires(post): libsmbclient-devel |
---|
| 254 | |
---|
| 255 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.5-1 |
---|
| 256 | - new upstream release |
---|
| 257 | |
---|
| 258 | * Sat Jan 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-2 |
---|
| 259 | - built with libdvbpsi-devel |
---|
| 260 | - dropped 0002-Default-aout-for-pulse.patch |
---|
| 261 | |
---|
| 262 | * Tue Jan 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1 |
---|
| 263 | - new upstream release |
---|
| 264 | - updated 0002-Default-aout-for-pulse.patch |
---|
| 265 | |
---|
| 266 | * Tue Nov 10 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-2 |
---|
| 267 | - added Requires(post): libmtp-devel |
---|
| 268 | |
---|
| 269 | * Sun Nov 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.3-1 |
---|
| 270 | - new upstream release |
---|
| 271 | |
---|
| 272 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-2 |
---|
| 273 | - rebuilt to add signature |
---|
| 274 | |
---|
| 275 | * Sat Sep 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.2-1 |
---|
| 276 | - new upstream release |
---|
| 277 | - applied vlc-1.0.2-compiler.patch from RPM Fusion |
---|
| 278 | - added Requires(post): lua-devel |
---|
| 279 | |
---|
| 280 | * Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.1-1 |
---|
| 281 | - new upstream release |
---|
| 282 | |
---|
| 283 | * Sat Jul 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-2 |
---|
| 284 | - added Obsoletes: vlc < 1.0.0, vlc-devel < 1.0.0 |
---|
| 285 | |
---|
| 286 | * Wed Jul 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.0.0-1 |
---|
| 287 | - new upstream release |
---|
| 288 | - clean-up some old patches and merged some patches from RPM Fusion package |
---|
| 289 | - added vlc-trunk-default_font-vine.patch |
---|
| 290 | - added vlc-handlers.schemas |
---|
| 291 | - Gonf2 url-handler support |
---|
| 292 | - added shine.c, enc_base.h |
---|
| 293 | - missing sources |
---|
| 294 | - check version between original spec and self-build spec in %%prep |
---|
| 295 | |
---|
| 296 | * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.9a-3 |
---|
| 297 | - dropped BuildArch: noarch (with svglib-devel for %%{ix86} x86_64) |
---|
| 298 | |
---|
| 299 | * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-2 |
---|
| 300 | - rebuild with x264 >= 0.0.0-9.20090522 |
---|
| 301 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
| 302 | - moved %%post actions to %%posttrans |
---|
| 303 | |
---|
| 304 | * Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.9a-1 |
---|
| 305 | - new upstream release |
---|
| 306 | - added BuildArch: noarch |
---|
| 307 | - s/TrueType-DejaVu/TrueType-dejavu/ |
---|
| 308 | |
---|
| 309 | * Sat Feb 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> - 0.9.8a-7 |
---|
| 310 | - corrected release number in vlc.spec |
---|
| 311 | - dropped ExclusiveArch |
---|
| 312 | |
---|
| 313 | * Fri Feb 13 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8a-6 |
---|
| 314 | - add ppc to ExclusiveArch |
---|
| 315 | |
---|
| 316 | * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-5 |
---|
| 317 | - changed to PreReq: self-build-faad2 from faad2-devel |
---|
| 318 | - changed to PreReq: self-build-libmad from libmad-devel |
---|
| 319 | |
---|
| 320 | * Sun Feb 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.9.8a-4 |
---|
| 321 | - initial build |
---|
| 322 | |
---|
| 323 | ### end of file |
---|