source: projects/specs/tags/6_0_REL/nonfree/self-build-ffmpeg-mh/self-build-ffmpeg-mh-vl.spec @ 615

Revision 615, 8.5 KB checked in by munepi, 14 years ago (diff)

added many self-build-* specs

Line 
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
18Summary:        Package to automatically build %{pkgname} rpm package
19Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
20Name:           %{name}
21Version:        %{version}
22Release:        %{release}
23Source0:        %{pkgname}-vl.spec
24#Source1:       http://mobilehackerz.jp/contents?plugin=attach&refer=3GPConv%2FSources&openfile=ffmpeg-%{svndate}-%{version}.tar.gz
25Source1:        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}
29Source2:        x264_051028.tar.gz
30%endif
31Source10:       ffmpeg-mh-unix.patch
32#Source11:       ffmpeg-mh-include-amr.patch
33Source12:       ffmpeg-mh-0.33-disable-texi2html.patch
34
35License:        GPL
36Group:          Restricted Software
37
38Requires(post):         self-build-setup >= 0.9.9
39
40# (build)requies of target package.
41Requires(post):         zlib-devel, SDL-devel, imlib2-devel
42#Requires(post):        texi2html
43Requires(post):         libogg-devel, libvorbis-devel, libtheora-devel
44Requires(post):         self-build-xvidcore self-build-faac self-build-lame
45Requires(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
50BuildArch:      noarch
51BuildRoot:      %{_tmppath}/%{name}-%{version}-root
52
53Packager:       munepi
54
55%description
56FFMpeg is a complete and free Internet live audio and video
57broadcasting solution for Linux/Unix. It also includes a digital
58VCR. It can encode in real time in many formats including MPEG1 audio
59and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
60
61ffmpeg-mh is a 3GP Converter for UNIX. It is a FFmpeg Mobile Hack version
62under unix, is enoughly customized for many mobiles from original sources
63of ffmpeg.
64
65If you install this package, it automaticaly downloads source
66code ,compile it, and create rpm packages of %{pkgname}-%{version}.
67And the created rpm packages are automatically installed
68if installation is executed by apt-get command or synaptic
69package manager.
70
71[Note]
72Before building this package, you need to install the following
73self-build packages:
74self-build-xvidcore self-build-faac self-build-lame self-build-x264 self-build-libdca self-build-a52dec
75
76This package requires many other packages to compile
77targetsoftware. So it consume more disk space than usual.
78Also installation takes logner time because of compilation.
79(This will take a few minutes to quarter or half of an hour,
80depends on building environment)
81
82[About self-build package]
83For some kind of software, distributing of binary package
84may viorate the patent or law. Therefore we chose self-build
85packge, create binary package on your machine, for such kind
86of softwares instead of distributing binary package.
87
88Please obey the national law when you use the created binary
89packages. And if you want to use the softwares using patented
90thechnology, it may be required to get a permission, make an
91agreement or purchas a license. Please consider it with your
92purpose or way of use and take appropriate action.
93
94%description -l ja
95FFMpeg は Linux/Unix に対する完全にフリーなインターネットライブ
96オーティオ・ビデオブロードキャスティングソリューションです.
97またデジタル VCR を含んでいます.MPEG1 オーディオ・ビデオ,
98MPEG4, h263, ac3, asf, avi, real, mjpeg, flash を含む
99多様なフォーマットをリアルタイムにエンコードすることができます.
100
101ffmpeg-mh は Windows 用携帯動画変換君(3GP Converter)の UNIX 版です.
102FFmpeg のモバイル端末向けに改良されたバージョンで,オリジナルのソースから
103モバイル向けにたくさん調整されています.
104
105このパッケージをインストールすると、自動的にソースコードを
106ダウンロードしてコンパイルし、%{pkgname}-%{version}
107の rpm パッケージを作成します。
108また apt-get コマンドや synaptic パッケージマネージャから実行
109した場合は、作成された rpm パッケージのインストールも自動的に
110行います。
111
112[注意]
113このパッケージをビルドするより前に,以下の self-build パッケージを
114インストールしておく必要があります.
115self-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
Note: See TracBrowser for help on using the repository browser.