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 | |
---|
11 | Summary: Package to automatically build %{pkgname} rpm package |
---|
12 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
13 | Name: %{name} |
---|
14 | Version: %{version} |
---|
15 | Release: %{release} |
---|
16 | Source0: %{pkgname}-vl.spec |
---|
17 | |
---|
18 | Source9: gpac-snapshot-vine.sh |
---|
19 | |
---|
20 | Source101: gpac-0.4.6_15-soname.patch |
---|
21 | Source102: gpac-0.4.6-amr.patch |
---|
22 | Source105: gpac-0.4.6-js_cflags.patch |
---|
23 | |
---|
24 | License: LGPLv2+ |
---|
25 | Group: Restricted Software |
---|
26 | |
---|
27 | Requires(post): self-build-setup >= 0.9.9 |
---|
28 | Requires(post): subversion |
---|
29 | |
---|
30 | Requires(post): ImageMagick |
---|
31 | Requires(post): SDL-devel |
---|
32 | Requires(post): librsvg2-devel >= 2.5.0 |
---|
33 | Requires(post): libGLU-devel |
---|
34 | Requires(post): freeglut-devel |
---|
35 | Requires(post): freetype2-devel >= 2.1.4 |
---|
36 | Requires(post): libjpeg-devel |
---|
37 | Requires(post): libpng-devel >= 1.2.5 |
---|
38 | Requires(post): libxml2-devel |
---|
39 | Requires(post): openssl-devel |
---|
40 | #Requires(post): openjpeg-devel |
---|
41 | Requires(post): pulseaudio-libs-devel |
---|
42 | Requires(post): zlib-devel |
---|
43 | Requires(post): libogg-devel libvorbis-devel libtheora-devel |
---|
44 | Requires(post): libXt-devel |
---|
45 | Requires(post): libXpm-devel |
---|
46 | Requires(post): libXv-devel |
---|
47 | #Requires(post): wxGTK-devel |
---|
48 | Requires(post): xmlrpc-epi-devel |
---|
49 | %{?_with_mozilla:Requires(post): gecko-devel} |
---|
50 | #Requires(post): doxygen |
---|
51 | Requires(post): desktop-file-utils |
---|
52 | %{?_with_amr:Requires(post): amrnb-devel amrwb-devel} |
---|
53 | Requires(post): self-build-a52dec |
---|
54 | Requires(post): self-build-faad2 |
---|
55 | Requires(post): self-build-libmad |
---|
56 | Requires(post): self-build-xvidcore >= 1.0.0 |
---|
57 | ##Requires(post): self-build-ffmpeg |
---|
58 | |
---|
59 | BuildArch: noarch |
---|
60 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
61 | |
---|
62 | Packager: munepi |
---|
63 | |
---|
64 | %description |
---|
65 | GPAC is a multimedia framework based on the MPEG-4 Systems standard developed |
---|
66 | from scratch in ANSI C. The original development goal is to provide a clean, |
---|
67 | small and flexible alternative to the MPEG-4 Systems reference software. |
---|
68 | |
---|
69 | GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML, |
---|
70 | X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features |
---|
71 | MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution |
---|
72 | for MP4 and 3GPP(2) files and many tools for scene descriptions |
---|
73 | (MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc). |
---|
74 | |
---|
75 | |
---|
76 | If you install this package, it automaticaly downloads source |
---|
77 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
78 | And the created rpm packages are automatically installed |
---|
79 | if installation is executed by apt-get command or synaptic |
---|
80 | package manager. |
---|
81 | |
---|
82 | [Note] |
---|
83 | This package requires many other packages to compile |
---|
84 | targetsoftware. So it consume more disk space than usual. |
---|
85 | Also installation takes logner time because of compilation. |
---|
86 | (This will take a few minutes to quarter or half of an hour, |
---|
87 | depends on building environment) |
---|
88 | |
---|
89 | [About self-build package] |
---|
90 | For some kind of software, distributing of binary package |
---|
91 | may viorate the patent or law. Therefore we chose self-build |
---|
92 | packge, create binary package on your machine, for such kind |
---|
93 | of softwares instead of distributing binary package. |
---|
94 | |
---|
95 | Please obey the national law when you use the created binary |
---|
96 | packages. And if you want to use the softwares using patented |
---|
97 | thechnology, it may be required to get a permission, make an |
---|
98 | agreement or purchas a license. Please consider it with your |
---|
99 | purpose or way of use and take appropriate action. |
---|
100 | |
---|
101 | %description -l ja |
---|
102 | GPAC は ANSI C でスクラッチから開発されている MPEG-4 システムの標準に基づいた |
---|
103 | マルチメディアフレームワークです。 |
---|
104 | 当初の開発目標には、MPEG-4 システムリファレンスソフトウェアに |
---|
105 | 簡潔で小さく柔軟な代替を提供することです。 |
---|
106 | |
---|
107 | GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML, |
---|
108 | X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features |
---|
109 | MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution |
---|
110 | for 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 |
---|
158 | case $LANG in |
---|
159 | ja*)LOCALE=ja ;; |
---|
160 | *) LOCALE=C ;; |
---|
161 | esac |
---|
162 | |
---|
163 | GetSrc_C(){ |
---|
164 | echo -n " " |
---|
165 | echo "Download source file with Subversion..." |
---|
166 | } |
---|
167 | |
---|
168 | GetSrc_ja(){ |
---|
169 | echo -n " " |
---|
170 | echo "Subversion を用いてソースファイルをダウンロードしています..." |
---|
171 | } |
---|
172 | |
---|
173 | GetSrc_$LOCALE |
---|
174 | |
---|
175 | # svn checkout |
---|
176 | . /etc/self-build.conf |
---|
177 | (cd $TEMP_DIR |
---|
178 | su $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 |
---|