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

Revision 10524, 9.8 KB checked in by Takemikaduchi, 8 years ago (diff)

glib: add patch
others: rebuild

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