1 | %define pkgname ffmpeg-mh |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | %define version 0.33 |
---|
4 | %define svndate 051130 |
---|
5 | %define release 12%{?_dist_release} |
---|
6 | |
---|
7 | %define ffmpeg_mh ffmpeg_%{svndate} |
---|
8 | |
---|
9 | #%%define sourceurl http://www.nurs.or.jp/~calcium/3gpp/sources/ffmpeg-%{svndate}-%{version}.tar.gz |
---|
10 | |
---|
11 | # %define amrnbver 7.1.0.2 |
---|
12 | # %define amrwbver 7.0.0.3 |
---|
13 | #% define _with_amr 1 |
---|
14 | |
---|
15 | %define _with_x264_mh 1 |
---|
16 | %define x264_mh x264_051028 |
---|
17 | |
---|
18 | Summary: Package to automatically build %{pkgname} rpm package |
---|
19 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
20 | Name: %{name} |
---|
21 | Version: %{version} |
---|
22 | Release: %{release} |
---|
23 | Source0: %{pkgname}-vl.spec |
---|
24 | #Source1: http://mobilehackerz.jp/contents?plugin=attach&refer=3GPConv%2FSources&openfile=ffmpeg-%{svndate}-%{version}.tar.gz |
---|
25 | Source1: ffmpeg-%{svndate}-%{version}.tar.gz |
---|
26 | # x264_051028.tar.gz: from http://mobilehackerz.jp/contents?plugin=attach&refer=3GPConv%2FSources&openfile=x264_051028.tar.gz |
---|
27 | # on http://mobilehackerz.jp/contents/3GPConv/Sources |
---|
28 | %if %{_with_x264_mh} |
---|
29 | Source2: x264_051028.tar.gz |
---|
30 | %endif |
---|
31 | Source10: ffmpeg-mh-unix.patch |
---|
32 | #Source11: ffmpeg-mh-include-amr.patch |
---|
33 | Source12: ffmpeg-mh-0.33-disable-texi2html.patch |
---|
34 | |
---|
35 | License: GPL |
---|
36 | Group: Restricted Software |
---|
37 | |
---|
38 | Requires(post): self-build-setup >= 0.9.9 |
---|
39 | |
---|
40 | # (build)requies of target package. |
---|
41 | Requires(post): zlib-devel, SDL-devel, imlib2-devel |
---|
42 | #Requires(post): texi2html |
---|
43 | Requires(post): libogg-devel, libvorbis-devel, libtheora-devel |
---|
44 | Requires(post): self-build-xvidcore self-build-faac self-build-lame |
---|
45 | Requires(post): self-build-libdca self-build-a52dec self-build-faad2 |
---|
46 | #Requires(post): self-build-x264 |
---|
47 | ##Requires(post): xvidcore-devel, faac-devel, lame-devel |
---|
48 | ##Requires(post): x264-devel, libdca-devel, a52dec-devel |
---|
49 | |
---|
50 | BuildArch: noarch |
---|
51 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
52 | |
---|
53 | Packager: munepi |
---|
54 | |
---|
55 | %description |
---|
56 | FFMpeg is a complete and free Internet live audio and video |
---|
57 | broadcasting solution for Linux/Unix. It also includes a digital |
---|
58 | VCR. It can encode in real time in many formats including MPEG1 audio |
---|
59 | and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
---|
60 | |
---|
61 | ffmpeg-mh is a 3GP Converter for UNIX. It is a FFmpeg Mobile Hack version |
---|
62 | under unix, is enoughly customized for many mobiles from original sources |
---|
63 | of ffmpeg. |
---|
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 | Before building this package, you need to install the following |
---|
73 | self-build packages: |
---|
74 | self-build-xvidcore self-build-faac self-build-lame self-build-x264 self-build-libdca self-build-a52dec |
---|
75 | |
---|
76 | This package requires many other packages to compile |
---|
77 | targetsoftware. So it consume more disk space than usual. |
---|
78 | Also installation takes logner time because of compilation. |
---|
79 | (This will take a few minutes to quarter or half of an hour, |
---|
80 | depends on building environment) |
---|
81 | |
---|
82 | [About self-build package] |
---|
83 | For some kind of software, distributing of binary package |
---|
84 | may viorate the patent or law. Therefore we chose self-build |
---|
85 | packge, create binary package on your machine, for such kind |
---|
86 | of softwares instead of distributing binary package. |
---|
87 | |
---|
88 | Please obey the national law when you use the created binary |
---|
89 | packages. And if you want to use the softwares using patented |
---|
90 | thechnology, it may be required to get a permission, make an |
---|
91 | agreement or purchas a license. Please consider it with your |
---|
92 | purpose or way of use and take appropriate action. |
---|
93 | |
---|
94 | %description -l ja |
---|
95 | FFMpeg は Linux/Unix に対する完全にフリーなインターネットライブ |
---|
96 | オーティオ・ビデオブロードキャスティングソリューションです. |
---|
97 | またデジタル VCR を含んでいます.MPEG1 オーディオ・ビデオ, |
---|
98 | MPEG4, h263, ac3, asf, avi, real, mjpeg, flash を含む |
---|
99 | 多様なフォーマットをリアルタイムにエンコードすることができます. |
---|
100 | |
---|
101 | ffmpeg-mh は Windows 用携帯動画変換君(3GP Converter)の UNIX 版です. |
---|
102 | FFmpeg のモバイル端末向けに改良されたバージョンで,オリジナルのソースから |
---|
103 | モバイル向けにたくさん調整されています. |
---|
104 | |
---|
105 | このパッケージをインストールすると、自動的にソースコードを |
---|
106 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
107 | の rpm パッケージを作成します。 |
---|
108 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
109 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
110 | 行います。 |
---|
111 | |
---|
112 | [注意] |
---|
113 | このパッケージをビルドするより前に,以下の self-build パッケージを |
---|
114 | インストールしておく必要があります. |
---|
115 | self-build-xvidcore self-build-faac self-build-lame self-build-x264 self-build-libdca self-build-a52dec |
---|
116 | |
---|
117 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
118 | ディスクの領域を多く消費します。 |
---|
119 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
120 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
121 | |
---|
122 | [self-build パッケージについて] |
---|
123 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
124 | 違反する可能性があるものがあります。その為、このような問題が |
---|
125 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
126 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
127 | ジという方法を採っています。 |
---|
128 | |
---|
129 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
130 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
131 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
132 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
133 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
134 | |
---|
135 | |
---|
136 | %prep |
---|
137 | [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1 |
---|
138 | |
---|
139 | %install |
---|
140 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
141 | %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
142 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
143 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
144 | %if %{_with_x264_mh} |
---|
145 | %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
146 | %endif |
---|
147 | %{__install} -m 644 %{SOURCE10} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
148 | %{__install} -m 644 %{SOURCE12} ${RPM_BUILD_ROOT}/%{_datadir}/%{name} |
---|
149 | |
---|
150 | %clean |
---|
151 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
152 | |
---|
153 | %posttrans |
---|
154 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec 160000 |
---|
155 | #/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} |
---|
156 | |
---|
157 | %files |
---|
158 | %defattr(-,root,root) |
---|
159 | %{_datadir}/%{name} |
---|
160 | |
---|
161 | %changelog |
---|
162 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.33-12 |
---|
163 | - renamed %%{Source0} to ffmpeg-mh-vl.spec |
---|
164 | |
---|
165 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.33-11 |
---|
166 | - rebuild |
---|
167 | |
---|
168 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-10 |
---|
169 | - avoided to execute self-build-rpm.sh on RPM transaction |
---|
170 | - moved %%post actions to %%posttrans |
---|
171 | |
---|
172 | * Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-9 |
---|
173 | - added BuildArch: noarch |
---|
174 | - added ffmpeg-mh-0.33-disable-texi2html.patch |
---|
175 | - dropped PreReq: texi2html |
---|
176 | |
---|
177 | * Sun Feb 8 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-8 |
---|
178 | - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel |
---|
179 | |
---|
180 | * Sun Feb 1 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-7 |
---|
181 | - fixed %%files section |
---|
182 | |
---|
183 | * Sun Dec 14 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-6 |
---|
184 | - added x264_051028 for Mobile Hack version |
---|
185 | - dropped PreReq: self-build-x264 |
---|
186 | |
---|
187 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-5 |
---|
188 | - spec in utf8 |
---|
189 | - droppd BuildRequires: xvidcore-devel, faac-devel, lame-devel |
---|
190 | BuildRequires: x264-devel, libdca-devel, a52dec-devel |
---|
191 | (*-devel pacages provided by other self-build-*) in ffmpeg-mh.spec |
---|
192 | |
---|
193 | * Thu Apr 10 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-1vl4 |
---|
194 | - build with new versioning policy |
---|
195 | |
---|
196 | * Wed Apr 09 2008 Atsushi SHICHI <ats777@gmail.com> 0.33-0vl3 |
---|
197 | - add "Source1: ffmpeg-%{svndate}-%{version}.tar.gz", |
---|
198 | include Source1 in the binary package. |
---|
199 | |
---|
200 | * Tue Mar 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-0vl2 |
---|
201 | - For all pre-required package that is provied by self-build, |
---|
202 | changed to its self-build package |
---|
203 | |
---|
204 | * Tue Mar 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.33-0vl1 |
---|
205 | - initial build for Vine Linux 4.2 |
---|
206 | with ffmpeg-051130-0.33 |
---|
207 | |
---|
208 | ### end of file |
---|