source: projects/specs/trunk/nonfree/self-build-gpac/self-build-gpac-vl.spec @ 5297

Revision 5297, 8.9 KB checked in by munepi, 12 years ago (diff)

updated self-build-* packages: new x264 ABI and ffmpeg 0.9

Line 
1%define svndate  20111217
2
3%define pkgname gpac
4%define name    self-build-%{pkgname}
5%define version 0.4.6
6%define release 1%{?svndate:.svn%svndate}%{?_dist_release}
7
8#% define sourceurl0    http://prdownloads.sourceforge.net/gpac/%{pkgname}-%{version}.tar.gz
9#% define sourceurl0    http://dl.sourceforge.net/sourceforge/gpac/%{pkgname}-%{version}.tar.gz
10
11Summary:        Package to automatically build %{pkgname} rpm package
12Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
13Name:           %{name}
14Version:        %{version}
15Release:        %{release}
16Source0:        %{pkgname}-vl.spec
17
18Source9:     gpac-snapshot-vine.sh
19
20Source101:      gpac-0.4.6_15-soname.patch
21Source102:      gpac-0.4.6-amr.patch
22Source105:      gpac-0.4.6-js_cflags.patch
23
24License:        LGPLv2+
25Group:          Restricted Software
26
27Requires(post):         self-build-setup >= 0.9.9
28Requires(post):         subversion
29
30Requires(post):  ImageMagick
31Requires(post):  SDL-devel
32Requires(post):  librsvg2-devel >= 2.5.0
33Requires(post):  libGLU-devel
34Requires(post):  freeglut-devel
35Requires(post):  freetype2-devel >= 2.1.4
36Requires(post):  libjpeg-devel
37Requires(post):  libpng-devel >= 1.2.5
38Requires(post):  libxml2-devel
39Requires(post):  openssl-devel
40#Requires(post):  openjpeg-devel
41Requires(post):  pulseaudio-libs-devel
42Requires(post):  zlib-devel
43Requires(post):  libogg-devel libvorbis-devel libtheora-devel
44Requires(post):  libXt-devel
45Requires(post):  libXpm-devel
46Requires(post):  libXv-devel
47#Requires(post):  wxGTK-devel
48Requires(post):  xmlrpc-epi-devel
49%{?_with_mozilla:Requires(post): gecko-devel}
50#Requires(post):  doxygen
51Requires(post):  desktop-file-utils
52%{?_with_amr:Requires(post): amrnb-devel amrwb-devel}
53Requires(post):  self-build-a52dec
54Requires(post):  self-build-faad2
55Requires(post):  self-build-libmad
56Requires(post):  self-build-xvidcore >= 1.0.0
57##Requires(post):  self-build-ffmpeg
58
59BuildArch:      noarch
60BuildRoot:      %{_tmppath}/%{name}-%{version}-root
61
62Packager:       munepi
63
64%description
65GPAC is a multimedia framework based on the MPEG-4 Systems standard developed
66from scratch in ANSI C.  The original development goal is to provide a clean,
67small and flexible alternative to the MPEG-4 Systems reference software.
68
69GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
70X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
71MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
72for MP4 and 3GPP(2) files and many tools for scene descriptions
73(MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc).
74
75
76If you install this package, it automaticaly downloads source
77code ,compile it, and create rpm packages of %{pkgname}-%{version}.
78And the created rpm packages are automatically installed
79if installation is executed by apt-get command or synaptic
80package manager.
81
82[Note]
83This package requires many other packages to compile
84targetsoftware. So it consume more disk space than usual.
85Also installation takes logner time because of compilation.
86(This will take a few minutes to quarter or half of an hour,
87depends on building environment)
88
89[About self-build package]
90For some kind of software, distributing of binary package
91may viorate the patent or law. Therefore we chose self-build
92packge, create binary package on your machine, for such kind
93of softwares instead of distributing binary package.
94
95Please obey the national law when you use the created binary
96packages. And if you want to use the softwares using patented
97thechnology, it may be required to get a permission, make an
98agreement or purchas a license. Please consider it with your
99purpose or way of use and take appropriate action.
100
101%description -l ja
102GPAC は ANSI C でスクラッチから開発されている MPEG-4 システムの標準に基づいた
103マルチメディアフレームワークです。
104当初の開発目標には、MPEG-4 システムリファレンスソフトウェアに
105簡潔で小さく柔軟な代替を提供することです。
106
107GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
108X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
109MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
110for MP4 and 3GPP(2) files and many tools for scene descriptions
111(MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc).
112
113
114このパッケージをインストールすると、自動的にソースコードを
115ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm
116パッケージを作成します。
117また apt-get コマンドや synaptic パッケージマネージャから実行
118した場合は、作成された rpm パッケージのインストールも自動的に
119行います。
120
121[注意]
122コンパイルに必要な多くの関連パッケージを要求するので通常より
123ディスクの領域を多く消費します。
124またインストール時にコンパイルを行うため、通常より時間がかか
125る場合があります。(環境にもよりますが数分から数十分程度)
126
127[self-build パッケージについて]
128ソフトウェアによってはバイナリパッケージの配布が特許や法律に
129違反する可能性があるものがあります。その為、このような問題が
130懸念されるソフトウェアについてはバイナリパッケージを直接配布
131せずに、ユーザの環境でバイナリを作成する self-build パッケー
132ジという方法を採っています。
133
134作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
135アのライセンス、および利用する国の各種法令に従ってください。
136また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
137センスの購入などが必要となる場合がありますので、利用する目的
138や形態に応じて各自で判断し適切な対応を取ってください。
139
140
141%prep
142[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
143
144%install
145%{__rm} -rf ${RPM_BUILD_ROOT}
146%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
147%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
148%{__install} -m 644 %{SOURCE9} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
149%{__install} -m 644 %{SOURCE101} %{SOURCE102} %{SOURCE105} \
150    ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
151
152%clean
153%{__rm} -rf ${RPM_BUILD_ROOT}
154
155%posttrans
156## svn checkout
157# set locale
158case $LANG in
159    ja*)LOCALE=ja ;;
160    *) LOCALE=C ;;
161esac
162
163GetSrc_C(){
164    echo -n "     "
165    echo "Download source file with Subversion..."
166}
167
168GetSrc_ja(){
169    echo -n "     "
170    echo "Subversion を用いてソースファイルをダウンロードしています..."
171}
172
173GetSrc_$LOCALE
174
175# svn checkout
176. /etc/self-build.conf
177(cd $TEMP_DIR
178su $BUILD_USER -c "/bin/bash %{_datadir}/%{name}/%{pkgname}-snapshot-vine.sh >/dev/null 2>&1 || exit 1"
179%__mv %{pkgname}-%{svndate}.tar.bz2 %{_datadir}/%{name}/ || exit 1
180)
181
182/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec 169000
183/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
184                                 %{pkgname}-libs-%{version}-%{release} \
185                                 %{pkgname}-devel-%{version}-%{release} \
186                                 %{pkgname}-devel-static-%{version}-%{release}
187
188
189%files
190%defattr(-,root,root)
191%{_datadir}/%{name}
192
193%changelog
194* Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.6-1.svn20111217
195- update snapshot svn20111217
196- removed upstreamed/obsolated patches
197- added Requires(post): subversion
198
199* Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-11
200- rebuilt with internal openjpeg
201
202* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-10
203- rebuild
204
205* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-9
206- dropped Requires(post):  doxygen
207
208* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-8
209- renamed %%{Source0} to gpac-vl.spec
210
211* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-7
212- rebuild
213
214* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-6
215- changed from http://prdownloads.sourceforge.net in sourceurl0
216- added devel-static subpackage in gpac.spec
217- added gpac-0.4.5-mozjis-vine.patch
218  (do not install in /usr/share/self-build-gpac)
219
220* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-5
221- avoided to execute self-build-rpm.sh on RPM transaction
222  - moved %%post actions to %%posttrans
223
224* Thu May 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-4
225- changed from http://prdownloads.sourceforge.net to http://dl.sourceforge.net
226  in sourceurl0
227- added BuildArch: noarch
228
229* Thu Mar 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-3
230- applied gpac-0.4.5-ffmpeg.patch (RPM Fusion #454)
231
232* Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-2
233- dropped PreReq: self-build-ffmpeg
234  - rebuilt with ffmpeg-devel by self-build-ffmpeg
235
236* Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-1
237- initial bulid
Note: See TracBrowser for help on using the repository browser.