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

Revision 615, 8.1 KB checked in by munepi, 14 years ago (diff)

added many self-build-* specs

Line 
1%define pkgname gpac
2%define name    self-build-%{pkgname}
3%define version 0.4.5
4%define release 8%{?_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
25Source150:      gpac-0.4.5-mozjs-vine.patch
26
27License:        LGPLv2+
28Group:          Restricted Software
29
30Requires(post):         self-build-setup >= 0.9.9
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
42Requires(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
50Requires(post):  xmlrpc-epi-devel
51%{?_with_mozilla:Requires(post): gecko-devel}
52Requires(post):  doxygen
53Requires(post):  desktop-file-utils
54%{?_with_amr:Requires(post): amrnb-devel amrwb-devel}
55Requires(post):  self-build-a52dec
56Requires(post):  self-build-faad2
57Requires(post):  self-build-libmad
58Requires(post):  self-build-xvidcore >= 1.0.0
59##Requires(post):  self-build-ffmpeg
60
61BuildArch:      noarch
62BuildRoot:      %{_tmppath}/%{name}-%{version}-root
63
64Packager:       munepi
65
66%description
67GPAC is a multimedia framework based on the MPEG-4 Systems standard developed
68from scratch in ANSI C.  The original development goal is to provide a clean,
69small and flexible alternative to the MPEG-4 Systems reference software.
70
71GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
72X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
73MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
74for MP4 and 3GPP(2) files and many tools for scene descriptions
75(MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc).
76
77
78If you install this package, it automaticaly downloads source
79code ,compile it, and create rpm packages of %{pkgname}-%{version}.
80And the created rpm packages are automatically installed
81if installation is executed by apt-get command or synaptic
82package manager.
83
84[Note]
85This package requires many other packages to compile
86targetsoftware. So it consume more disk space than usual.
87Also installation takes logner time because of compilation.
88(This will take a few minutes to quarter or half of an hour,
89depends on building environment)
90
91[About self-build package]
92For some kind of software, distributing of binary package
93may viorate the patent or law. Therefore we chose self-build
94packge, create binary package on your machine, for such kind
95of softwares instead of distributing binary package.
96
97Please obey the national law when you use the created binary
98packages. And if you want to use the softwares using patented
99thechnology, it may be required to get a permission, make an
100agreement or purchas a license. Please consider it with your
101purpose or way of use and take appropriate action.
102
103%description -l ja
104GPAC は ANSI C でスクラッチから開発されている MPEG-4 システムの標準に基づいた
105マルチメディアフレームワークです。
106当初の開発目標には、MPEG-4 システムリファレンスソフトウェアに
107簡潔で小さく柔軟な代替を提供することです。
108
109GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
110X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
111MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
112for 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 \
151    %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} \
152    %{SOURCE106} %{SOURCE107} %{SOURCE108} %{SOURCE109} \
153    ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
154
155%clean
156%{__rm} -rf ${RPM_BUILD_ROOT}
157
158%posttrans
159/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 370000
160/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
161                                 %{pkgname}-libs-%{version}-%{release} \
162                                 %{pkgname}-devel-%{version}-%{release} \
163                                 %{pkgname}-devel-static-%{version}-%{release}
164
165%files
166%defattr(-,root,root)
167%{_datadir}/%{name}
168
169%changelog
170* Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-8
171- renamed %%{Source0} to gpac-vl.spec
172
173* Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-7
174- rebuild
175
176* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-6
177- changed from http://prdownloads.sourceforge.net in sourceurl0
178- added devel-static subpackage in gpac.spec
179- added gpac-0.4.5-mozjis-vine.patch
180  (do not install in /usr/share/self-build-gpac)
181
182* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-5
183- avoided to execute self-build-rpm.sh on RPM transaction
184  - moved %%post actions to %%posttrans
185
186* Thu May 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-4
187- changed from http://prdownloads.sourceforge.net to http://dl.sourceforge.net
188  in sourceurl0
189- added BuildArch: noarch
190
191* Thu Mar 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-3
192- applied gpac-0.4.5-ffmpeg.patch (RPM Fusion #454)
193
194* Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-2
195- dropped PreReq: self-build-ffmpeg
196  - rebuilt with ffmpeg-devel by self-build-ffmpeg
197
198* Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-1
199- initial bulid
Note: See TracBrowser for help on using the repository browser.