source: projects/specs/tags/6_0_REL/nonfree/self-build-gpac/self-build-gpac-vl.spec @ 3538

Revision 3538, 8.3 KB checked in by munepi, 13 years ago (diff)

updated self-build-{ffmpeg,gpac,vlc}-vl.spec

Line 
1%define pkgname gpac
2%define name    self-build-%{pkgname}
3%define version 0.4.5
4%define release 11%{?_dist_release}
5
6%define sourceurl0      http://prdownloads.sourceforge.net/gpac/%{pkgname}-%{version}.tar.gz
7#% define sourceurl0    http://dl.sourceforge.net/sourceforge/gpac/%{pkgname}-%{version}.tar.gz
8
9Summary:        Package to automatically build %{pkgname} rpm package
10Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
11Name:           %{name}
12Version:        %{version}
13Release:        %{release}
14Source0:        %{pkgname}-vl.spec
15
16Source100:      gpac-0.4.5-makefix.patch
17Source101:      gpac-0.4.5-soname.patch
18Source102:      gpac-0.4.5-amr.patch
19Source103:      gpac-0.4.5-lib64.patch
20Source104:      gpac-0.4.5-system_openjpeg.patch
21Source106:      gpac-0.4.5-shared_sggen.patch
22Source107:      gpac-0.4.5-libxml2.patch
23Source108:      gpac-ppc64.patch
24Source109:      gpac-0.4.5-ffmpeg.patch
25
26License:        LGPLv2+
27Group:          Restricted Software
28
29Requires(post):         self-build-setup >= 0.9.9
30
31Requires(post):  ImageMagick
32Requires(post):  SDL-devel
33Requires(post):  librsvg2-devel >= 2.5.0
34Requires(post):  libGLU-devel
35Requires(post):  freeglut-devel
36Requires(post):  freetype2-devel >= 2.1.4
37Requires(post):  libjpeg-devel
38Requires(post):  libpng-devel >= 1.2.5
39Requires(post):  libxml2-devel
40Requires(post):  openssl-devel
41Requires(post):  openjpeg-devel
42Requires(post):  pulseaudio-libs-devel
43Requires(post):  zlib-devel
44Requires(post):  libogg-devel libvorbis-devel libtheora-devel
45Requires(post):  libXt-devel
46Requires(post):  libXpm-devel
47Requires(post):  libXv-devel
48#Requires(post):  wxGTK-devel
49Requires(post):  xmlrpc-epi-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 \
150    %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} \
151    %{SOURCE106} %{SOURCE107} %{SOURCE108} %{SOURCE109} \
152    ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
153
154%clean
155%{__rm} -rf ${RPM_BUILD_ROOT}
156
157%posttrans
158/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 169000
159/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
160                                 %{pkgname}-libs-%{version}-%{release} \
161                                 %{pkgname}-devel-%{version}-%{release} \
162                                 %{pkgname}-devel-static-%{version}-%{release}
163
164%files
165%defattr(-,root,root)
166%{_datadir}/%{name}
167
168%changelog
169* Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-11
170- rebuilt with internal openjpeg
171
172* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-10
173- rebuild
174
175* Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-9
176- dropped Requires(post):  doxygen
177
178* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-8
179- renamed %%{Source0} to gpac-vl.spec
180
181* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-7
182- rebuild
183
184* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-6
185- changed from http://prdownloads.sourceforge.net in sourceurl0
186- added devel-static subpackage in gpac.spec
187- added gpac-0.4.5-mozjis-vine.patch
188  (do not install in /usr/share/self-build-gpac)
189
190* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-5
191- avoided to execute self-build-rpm.sh on RPM transaction
192  - moved %%post actions to %%posttrans
193
194* Thu May 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-4
195- changed from http://prdownloads.sourceforge.net to http://dl.sourceforge.net
196  in sourceurl0
197- added BuildArch: noarch
198
199* Thu Mar 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-3
200- applied gpac-0.4.5-ffmpeg.patch (RPM Fusion #454)
201
202* Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-2
203- dropped PreReq: self-build-ffmpeg
204  - rebuilt with ffmpeg-devel by self-build-ffmpeg
205
206* Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-1
207- initial bulid
Note: See TracBrowser for help on using the repository browser.