[6411] | 1 | %global posttag svn18423 |
---|
[615] | 2 | %define pkgname ffmpeg2theora |
---|
| 3 | %define name self-build-%{pkgname} |
---|
[5297] | 4 | %define version 0.28 |
---|
[6411] | 5 | %define release 2%{?posttag:.%{posttag}}%{?_dist_release} |
---|
[615] | 6 | |
---|
[3143] | 7 | %define sourceurl http://www.v2v.cc/~j/ffmpeg2theora/downloads/%{pkgname}-%{version}.tar.bz2 |
---|
[615] | 8 | |
---|
| 9 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 10 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 11 | Name: %{name} |
---|
| 12 | Version: %{version} |
---|
| 13 | Release: %{release} |
---|
| 14 | Source0: %{pkgname}-vl.spec |
---|
[6411] | 15 | Source10: ffmpeg2theora-snapshot.sh |
---|
| 16 | Source100: ffmpeg2theora-0.28+%{posttag}.patch |
---|
[5297] | 17 | License: GPLv2+ |
---|
[615] | 18 | Group: Restricted Software |
---|
| 19 | |
---|
| 20 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 21 | |
---|
| 22 | # (build)requies of target package. |
---|
| 23 | Requires(post): scons |
---|
[3143] | 24 | Requires(post): libogg-devel >= 1.1 |
---|
| 25 | Requires(post): libtheora-devel >= 1.1.0 |
---|
| 26 | Requires(post): libvorbis-devel |
---|
| 27 | Requires(post): self-build-ffmpeg >= 0.6.1 |
---|
[615] | 28 | |
---|
| 29 | BuildArch: noarch |
---|
| 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 31 | |
---|
| 32 | Packager: munepi |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | ffmpeg2theora is a tool to convert any file that ffmpeg can |
---|
| 36 | decode to theora. |
---|
| 37 | |
---|
| 38 | If you install this package, it automaticaly downloads source |
---|
| 39 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 40 | And the created rpm packages are automatically installed |
---|
| 41 | if installation is executed by apt-get command or synaptic |
---|
| 42 | package manager. |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | [Note] |
---|
| 46 | This package requires many other packages to compile |
---|
| 47 | targetsoftware. So it consume more disk space than usual. |
---|
| 48 | Also installation takes logner time because of compilation. |
---|
| 49 | (This will take a few minutes to quarter or half of an hour, |
---|
| 50 | depends on building environment) |
---|
| 51 | |
---|
| 52 | [About self-build package] |
---|
| 53 | For some kind of software, distributing of binary package |
---|
| 54 | may viorate the patent or law. Therefore we chose self-build |
---|
| 55 | packge, create binary package on your machine, for such kind |
---|
| 56 | of softwares instead of distributing binary package. |
---|
| 57 | |
---|
| 58 | Please obey the national law when you use the created binary |
---|
| 59 | packages. And if you want to use the softwares using patented |
---|
| 60 | thechnology, it may be required to get a permission, make an |
---|
| 61 | agreement or purchas a license. Please consider it with your |
---|
| 62 | purpose or way of use and take appropriate action. |
---|
| 63 | |
---|
| 64 | %description -l ja |
---|
| 65 | ffmpeg2theora は ffmpeg がデコードできるファイルを theora 形式 |
---|
| 66 | に変換するツールです。 |
---|
| 67 | |
---|
| 68 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 69 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
| 70 | パッケージを作成します。 |
---|
| 71 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 72 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 73 | 行います。 |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | [注意] |
---|
| 77 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 78 | ディスクの領域を多く消費します。 |
---|
| 79 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 80 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 81 | |
---|
| 82 | [self-build パッケージについて] |
---|
| 83 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 84 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 85 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 86 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 87 | ジという方法を採っています。 |
---|
| 88 | |
---|
| 89 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 90 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 91 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 92 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 93 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | %prep |
---|
| 97 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %install |
---|
| 101 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 102 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 103 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[6411] | 104 | %{__install} -m 644 %{SOURCE100} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
[615] | 105 | |
---|
| 106 | |
---|
| 107 | %clean |
---|
| 108 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 109 | |
---|
| 110 | %posttrans |
---|
[3143] | 111 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 11000 |
---|
[615] | 112 | #/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} |
---|
| 113 | |
---|
| 114 | %files |
---|
| 115 | %defattr(-,root,root) |
---|
| 116 | %{_datadir}/%{name} |
---|
| 117 | |
---|
| 118 | %changelog |
---|
[6411] | 119 | * Sat Jun 23 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.28-2.svn18423 |
---|
| 120 | - update to the latest upstream commit |
---|
| 121 | - for ffmpeg 0.10 compatibility |
---|
| 122 | |
---|
[5297] | 123 | * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.28-1 |
---|
| 124 | - new upstream release |
---|
| 125 | - License: GPLv2+ |
---|
| 126 | |
---|
[3143] | 127 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.27-1 |
---|
| 128 | - new upstream release |
---|
| 129 | - fixed the location of %%sourceurl |
---|
| 130 | |
---|
[615] | 131 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-2 |
---|
| 132 | - renamed %%{Source0} to ffmpeg2theora-vl.spec |
---|
| 133 | |
---|
| 134 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.25-1 |
---|
| 135 | - new upstream release |
---|
| 136 | - with recent ffmpeg |
---|
| 137 | |
---|
| 138 | * Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.24-1 |
---|
| 139 | - new upstream release |
---|
| 140 | |
---|
| 141 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-2 |
---|
| 142 | - added BuildArch: noarch |
---|
| 143 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
| 144 | - moved %%post actions to %%posttrans |
---|
| 145 | |
---|
| 146 | * Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.23-1 |
---|
| 147 | - new upstream release |
---|
| 148 | - dropped ffmpeg2theora-0.20-new_ffmpeg.patch |
---|
| 149 | - added PreReq: scons |
---|
| 150 | |
---|
| 151 | * Sat May 17 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.20-2 |
---|
| 152 | - spec in utf8 |
---|
| 153 | |
---|
| 154 | * Sat May 17 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.20-1 |
---|
| 155 | - initial build for Vine Linux. |
---|