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