[615] | 1 | %define pkgname libquicktime |
---|
| 2 | %define name self-build-%{pkgname} |
---|
[2619] | 3 | %define version 1.2.2 |
---|
[3126] | 4 | %define release 2%{?_dist_release} |
---|
[615] | 5 | |
---|
| 6 | %define sourceurl0 http://prdownloads.sourceforge.net/libquicktime/%{pkgname}-%{version}.tar.gz |
---|
| 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 |
---|
| 14 | |
---|
| 15 | License: LGPLv2+ |
---|
| 16 | Group: Restricted Software |
---|
| 17 | |
---|
| 18 | Requires(post): self-build-setup >= 0.9.9 |
---|
| 19 | |
---|
| 20 | Requires(post): libvorbis-devel |
---|
| 21 | Requires(post): libpng-devel |
---|
| 22 | Requires(post): libjpeg-devel |
---|
| 23 | Requires(post): gtk2-devel |
---|
| 24 | Requires(post): libdv-devel |
---|
| 25 | Requires(post): libraw1394-devel |
---|
| 26 | Requires(post): libavc1394-devel |
---|
| 27 | |
---|
| 28 | Requires(post): alsa-lib-devel |
---|
| 29 | Requires(post): zlib-devel |
---|
| 30 | Requires(post): gettext-devel |
---|
| 31 | Requires(post): mesa-libGL-devel |
---|
| 32 | Requires(post): libX11-devel |
---|
| 33 | Requires(post): libICE-devel |
---|
| 34 | Requires(post): libSM-devel |
---|
| 35 | Requires(post): libXext-devel |
---|
| 36 | Requires(post): libXmu-devel |
---|
| 37 | Requires(post): libXpm-devel |
---|
| 38 | Requires(post): libXt-devel |
---|
| 39 | Requires(post): libXaw-devel >= 1.0.5 |
---|
| 40 | Requires(post): libXv-devel |
---|
| 41 | |
---|
| 42 | Requires(post): self-build-ffmpeg |
---|
| 43 | Requires(post): self-build-lame |
---|
| 44 | Requires(post): self-build-faad2 |
---|
| 45 | Requires(post): self-build-faac |
---|
| 46 | Requires(post): self-build-x264 |
---|
| 47 | |
---|
| 48 | BuildArch: noarch |
---|
| 49 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 50 | |
---|
| 51 | Packager: munepi |
---|
| 52 | |
---|
| 53 | %description |
---|
[2619] | 54 | Libquicktime is based on the quicktime4linux library with several |
---|
| 55 | enhancements. All 3rd-party libraries were removed from the |
---|
| 56 | sourcetree. Instead, the systemwide installed libraries are detected |
---|
| 57 | by the configure script. All original codecs were moved into |
---|
| 58 | dynamically loadable modules, and new codecs are in |
---|
| 59 | development. Libquicktime is source-compatible with |
---|
| 60 | quicktime4linux. Special API extensions allow access to the codec |
---|
| 61 | registry and more convenient processing of Audio and Video |
---|
| 62 | data. |
---|
[615] | 63 | |
---|
| 64 | |
---|
| 65 | If you install this package, it automaticaly downloads source |
---|
| 66 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
| 67 | And the created rpm packages are automatically installed |
---|
| 68 | if installation is executed by apt-get command or synaptic |
---|
| 69 | package manager. |
---|
| 70 | |
---|
| 71 | [Note] |
---|
| 72 | This package requires many other packages to compile |
---|
| 73 | targetsoftware. So it consume more disk space than usual. |
---|
| 74 | Also installation takes logner time because of compilation. |
---|
| 75 | (This will take a few minutes to quarter or half of an hour, |
---|
| 76 | depends on building environment) |
---|
| 77 | |
---|
| 78 | [About self-build package] |
---|
| 79 | For some kind of software, distributing of binary package |
---|
| 80 | may viorate the patent or law. Therefore we chose self-build |
---|
| 81 | packge, create binary package on your machine, for such kind |
---|
| 82 | of softwares instead of distributing binary package. |
---|
| 83 | |
---|
| 84 | Please obey the national law when you use the created binary |
---|
| 85 | packages. And if you want to use the softwares using patented |
---|
| 86 | thechnology, it may be required to get a permission, make an |
---|
| 87 | agreement or purchas a license. Please consider it with your |
---|
| 88 | purpose or way of use and take appropriate action. |
---|
| 89 | |
---|
| 90 | %description -l ja |
---|
[2619] | 91 | libquicktime は、quicktime4linux ライブラリを元に拡張しています。 |
---|
| 92 | サードパーティライブラリは、一次元ソースツリーからすべて消えてしまいました。 |
---|
| 93 | その代わりに、システムワイドにインストールされるライブラリは、 |
---|
| 94 | configure スクリプトにより検出されます。 |
---|
| 95 | オリジナルコーデックは、すべて動的読み込み可能なモジュールに |
---|
| 96 | 移行してしまいました。また、新しいコーデックは開発途中です。 |
---|
| 97 | libquicktime は quicktime4linux と互換性を持ったソースです。 |
---|
| 98 | 特別な API 拡張は、コーデックレジストリや |
---|
| 99 | 音声や動画のより便利な処理にアクセスができます。 |
---|
[615] | 100 | |
---|
| 101 | |
---|
| 102 | このパッケージをインストールすると、自動的にソースコードを |
---|
| 103 | ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm |
---|
| 104 | パッケージを作成します。 |
---|
| 105 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
| 106 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
| 107 | 行います。 |
---|
| 108 | |
---|
| 109 | [注意] |
---|
| 110 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
| 111 | ディスクの領域を多く消費します。 |
---|
| 112 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
| 113 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
| 114 | |
---|
| 115 | [self-build パッケージについて] |
---|
| 116 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
| 117 | 違反する可能性があるものがあります。その為、このような問題が |
---|
| 118 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
| 119 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
| 120 | ジという方法を採っています。 |
---|
| 121 | |
---|
| 122 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
| 123 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
| 124 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
| 125 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
| 126 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
| 127 | |
---|
| 128 | %prep |
---|
| 129 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
| 130 | |
---|
| 131 | %install |
---|
| 132 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 133 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 134 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
| 135 | |
---|
| 136 | %clean |
---|
| 137 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 138 | |
---|
| 139 | %posttrans |
---|
[2619] | 140 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 188000 |
---|
[615] | 141 | /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \ |
---|
[2619] | 142 | %{pkgname}-utils-%{version}-%{release} \ |
---|
[615] | 143 | %{pkgname}-devel-%{version}-%{release} |
---|
| 144 | |
---|
| 145 | %files |
---|
| 146 | %defattr(-,root,root) |
---|
| 147 | %{_datadir}/%{name} |
---|
| 148 | |
---|
| 149 | %changelog |
---|
[3126] | 150 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.2-2 |
---|
| 151 | - rebuilt |
---|
| 152 | |
---|
[2619] | 153 | * Mon Jan 31 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.2-1 |
---|
| 154 | - new upstream release |
---|
| 155 | - added the subpackage utils |
---|
| 156 | - updated %%description |
---|
| 157 | |
---|
[1258] | 158 | * Sun Jun 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.5-1 |
---|
| 159 | - new upstream release |
---|
| 160 | |
---|
[615] | 161 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-2 |
---|
| 162 | - renamed %%{Source0} to libquicktime-vl.spec |
---|
| 163 | |
---|
| 164 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.4-1 |
---|
| 165 | - new upstream release |
---|
| 166 | |
---|
| 167 | * Sun Jun 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.2-1 |
---|
| 168 | - initial bulid |
---|