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