[615] | 1 | %define pkgname faac |
---|
| 2 | %define name self-build-%{pkgname} |
---|
| 3 | %define version 1.28 |
---|
| 4 | %define release 7%{?_dist_release} |
---|
| 5 | |
---|
| 6 | %define enable_libmp4v2_external 1 |
---|
| 7 | |
---|
| 8 | %define sourceurl0 http://prdownloads.sourceforge.net/faac/%{pkgname}-%{version}.tar.bz2 |
---|
| 9 | |
---|
| 10 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 11 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 12 | Name: %{name} |
---|
| 13 | Version: %{version} |
---|
| 14 | Release: %{release} |
---|
| 15 | Source0: %{pkgname}-vl.spec |
---|
| 16 | Source10: http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-libs/faac/files/faac-1.28-external-libmp4v2.patch |
---|
| 17 | Source11: mp4v2-strcasestr-vine.diff |
---|
| 18 | |
---|
| 19 | License: LGPLv2+ |
---|
| 20 | Group: Restricted Software |
---|
| 21 | |
---|
| 22 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 23 | |
---|
| 24 | # (build)requies of target package. |
---|
| 25 | Requires(post): nkf |
---|
| 26 | Requires(post): autoconf, automake, libtool, gcc-c++ |
---|
| 27 | %if %{enable_libmp4v2_external} |
---|
| 28 | Requires(post): self-build-libmp4v2 |
---|
| 29 | %endif |
---|
| 30 | |
---|
| 31 | BuildArch: noarch |
---|
| 32 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 33 | |
---|
| 34 | Packager: munepi |
---|
| 35 | |
---|
| 36 | %description |
---|
| 37 | FAAC is an AAC audio encoder. It currently supports MPEG-4 |
---|
| 38 | LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW |
---|
| 39 | MPEG-2 object types. It also supports multichannel and |
---|
| 40 | gapless encoding. |
---|
| 41 | |
---|
| 42 | %if !%{enable_libmp4v2_external} |
---|
| 43 | The libmp4v2 library provides an abstraction layer for |
---|
| 44 | working with files using the mp4 container format. This |
---|
| 45 | library is developed by mpeg4ip project and is an exact copy |
---|
| 46 | of the library distributed in the mpeg4ip package. |
---|
| 47 | %endif |
---|
| 48 | |
---|
| 49 | If you install this package, it automatically downloads |
---|
| 50 | source code, compile it, and create |
---|
| 51 | rpm packages of %{pkgname}-%{version} and libmp4v2-%{version}. |
---|
| 52 | And the created rpm packages are automatically installed |
---|
| 53 | if installation is executed by apt-get command or synaptic |
---|
| 54 | package manager. |
---|
| 55 | |
---|
| 56 | [Note] |
---|
| 57 | This package requires many other packages to compile |
---|
| 58 | targetsoftware. So it consume more disk space than usual. |
---|
| 59 | Also installation takes logner time because of compilation. |
---|
| 60 | (This will take a few minutes to quarter or half of an hour, |
---|
| 61 | depends on building environment) |
---|
| 62 | |
---|
| 63 | [About self-build package] |
---|
| 64 | For some kind of software, distributing of binary package |
---|
| 65 | may viorate the patent or law. Therefore we chose self-build |
---|
| 66 | packge, create binary package on your machine, for such kind |
---|
| 67 | of softwares instead of distributing binary package. |
---|
| 68 | |
---|
| 69 | Please obey the national law when you use the created binary |
---|
| 70 | packages. And if you want to use the softwares using patented |
---|
| 71 | thechnology, it may be required to get a permission, make an |
---|
| 72 | agreement or purchas a license. Please consider it with your |
---|
| 73 | purpose or way of use and take appropriate action. |
---|
| 74 | |
---|
| 75 | %description -l ja |
---|
| 76 | FAAC は AAC オーディオエンコーダーです.現在 MPEG-4 LTP, |
---|
| 77 | Main/Low Complexity object types, Main/LOW MPEG-2 object |
---|
| 78 | types をサポートしています.またマルチチャンネルやギャップ |
---|
| 79 | レスエンコーディングもサポートしています. |
---|
| 80 | |
---|
| 81 | %if !%{enable_libmp4v2_external} |
---|
| 82 | libmp4v2 ライブラリは mp4 コンテナフォーマットを用いたファイ |
---|
| 83 | ルで動作するものに対して抽象レイヤーを提供します.このライブ |
---|
| 84 | ラリは mpeg4ip プロジェクトにより開発されており,mpeg4ip パッ |
---|
| 85 | ケージに分散されているライブラリの完全なコピーです. |
---|
| 86 | %endif |
---|
| 87 | |
---|
| 88 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 89 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
| 90 | と libmp4v2-%{version} の rpm パッケージを作成します。 |
---|
| 91 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 92 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 93 | 行います。 |
---|
| 94 | |
---|
| 95 | [注意] |
---|
| 96 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 97 | ディスクの領域を多く消費します。 |
---|
| 98 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 99 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 100 | |
---|
| 101 | [self-build パッケージについて] |
---|
| 102 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 103 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 104 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 105 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 106 | ジという方法を採っています。 |
---|
| 107 | |
---|
| 108 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 109 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 110 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 111 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 112 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %prep |
---|
| 116 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 117 | |
---|
| 118 | %install |
---|
| 119 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 120 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 121 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 122 | %{__install} -m 644 %{SOURCE10} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 123 | %{__install} -m 644 %{SOURCE11} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 124 | |
---|
| 125 | %clean |
---|
| 126 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 127 | |
---|
| 128 | %posttrans |
---|
| 129 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 25000 |
---|
| 130 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
| 131 | %{pkgname}-devel-%{version}-%{release} |
---|
| 132 | |
---|
| 133 | %files |
---|
| 134 | %defattr(-,root,root) |
---|
| 135 | %{_datadir}/%{name} |
---|
| 136 | |
---|
| 137 | %changelog |
---|
| 138 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-7 |
---|
| 139 | - renamed %%{Source0} to faac-vl.spec |
---|
| 140 | |
---|
| 141 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-6 |
---|
| 142 | - applied mp4v2-strcasestr.diff from lauchpad |
---|
| 143 | - fixed wrong declaration of strcasestr() in mpeg4ip.h |
---|
| 144 | |
---|
| 145 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-5 |
---|
| 146 | - rebuilt with mp4v2 v1.9.1 |
---|
| 147 | - applied faac-1.28-external-libmp4v2.patch from Gentoo Linux |
---|
| 148 | |
---|
| 149 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.28-4 |
---|
| 150 | - applied a progress bar to show approximately building time |
---|
| 151 | |
---|
| 152 | * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-3 |
---|
| 153 | - added Requires(post): nkf |
---|
| 154 | |
---|
| 155 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-2 |
---|
| 156 | - added BuildArch: noarch |
---|
| 157 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
| 158 | - moved %%post actions to %%posttrans |
---|
| 159 | |
---|
| 160 | * Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.28-1 |
---|
| 161 | - new upstream release |
---|
| 162 | |
---|
| 163 | * Sat Jan 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.26-2 |
---|
| 164 | - fixed Summary: , %%description |
---|
| 165 | - removed internal mp4v2 |
---|
| 166 | |
---|
| 167 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.26-1 |
---|
| 168 | - new upstream release |
---|
| 169 | - added PreReq: self-build-libmp4v2 |
---|
| 170 | |
---|
| 171 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.25-2 |
---|
| 172 | - spec in utf8 |
---|
| 173 | - remove *.la |
---|
| 174 | |
---|
| 175 | * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.25-1 |
---|
| 176 | - run pre-allocate-rpm.sh in %%post |
---|
| 177 | - set PreReq: self-build-setup >= 0.8 |
---|
| 178 | - apply new versioning policy |
---|
| 179 | |
---|
| 180 | * Sat Mar 8 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.25-0vl1 |
---|
| 181 | - initial build |
---|
| 182 | |
---|
| 183 | ### end of file |
---|