]>
Commit | Line | Data |
---|---|---|
16219ea0 JB |
1 | # TODO: |
2 | # - Platinum UPnP: http://www.plutinosoft.com/platinum | |
3 | # - AVCap: http://libavcap.sourceforge.net/ | |
4 | # - OpenSVCDecoder: http://opensvcdecoder.sourceforge.net/ | |
5 | # - libfreenect: http://openkinect.org/wiki/Main_Page | |
4979ec52 | 6 | # |
cee2dd04 | 7 | # Conditional build: |
0f42ec7c | 8 | %bcond_with amr # AMR-NB and AMR-WB (floating-point) support |
57e5083b | 9 | %bcond_without directfb # DirectFB support |
13701c20 JB |
10 | %bcond_without faad # AAC decoding support |
11 | %bcond_without ffmpeg # ffmpeg support | |
12 | %bcond_without freetype # freetype support | |
13 | %bcond_without jpeg # JPEG support | |
65491e54 | 14 | %bcond_with js # JavaScript support |
13701c20 JB |
15 | %bcond_without mad # MP3 support |
16 | %bcond_without png # PNG support | |
17 | %bcond_without xvid # xvid support | |
0f42ec7c | 18 | %bcond_without wx # wxWidgets support |
cee2dd04 | 19 | # |
b2995149 | 20 | Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) |
5dbd083d | 21 | Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) |
5f694ea5 | 22 | Name: gpac |
16219ea0 | 23 | Version: 0.5.0 |
65491e54 | 24 | Release: 7 |
13701c20 JB |
25 | License: LGPL v2+ |
26 | Group: Applications/Multimedia | |
27 | Source0: http://downloads.sourceforge.net/gpac/%{name}-%{version}.tar.gz | |
16219ea0 | 28 | # Source0-md5: 19f7bb7c16913c22bdd453db1e653ca0 |
e25a2665 | 29 | Patch0: %{name}-install.patch |
16219ea0 JB |
30 | Patch1: %{name}-xulrunner.patch |
31 | Patch2: %{name}-amr.patch | |
32 | Patch3: %{name}-install-is-not-clean.patch | |
33 | Patch4: %{name}-flags.patch | |
34 | Patch5: %{name}-idl_uuid.patch | |
35 | Patch6: %{name}-js.patch | |
36 | Patch7: %{name}-apps.patch | |
37 | Patch8: %{name}-export.patch | |
5f694ea5 | 38 | URL: http://gpac.sourceforge.net/ |
57e5083b | 39 | %{?with_directfb:BuildRequires: DirectFB-devel} |
2c7550ba | 40 | BuildRequires: OpenGL-GLU-devel |
f0a57dca | 41 | BuildRequires: SDL-devel |
13701c20 JB |
42 | BuildRequires: a52dec-libs-devel |
43 | BuildRequires: alsa-lib-devel >= 0.9 | |
0f42ec7c JB |
44 | %{?with_amr:BuildRequires: amrnb-devel} |
45 | %{?with_amr:BuildRequires: amrwb-devel} | |
cee2dd04 | 46 | %{?with_faad:BuildRequires: faad2-devel} |
9c5072f3 | 47 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.6} |
cee2dd04 | 48 | %{?with_freetype:BuildRequires: freetype-devel} |
2c7550ba | 49 | %{?with_wx:BuildRequires: gtk+2-devel >= 2:2.20.1} |
13701c20 | 50 | BuildRequires: jack-audio-connection-kit-devel |
62f5b1b8 | 51 | %{?with_js:BuildRequires: js-devel < 2:1.8.5} |
cee2dd04 JB |
52 | %{?with_jpeg:BuildRequires: libjpeg-devel} |
53 | %{?with_mad:BuildRequires: libmad-devel} | |
13701c20 | 54 | BuildRequires: libogg-devel |
cee2dd04 | 55 | %{?with_png:BuildRequires: libpng-devel} |
13701c20 JB |
56 | BuildRequires: libtheora-devel |
57 | BuildRequires: libvorbis-devel | |
6dcdf31e | 58 | BuildRequires: libxml2-devel |
13701c20 | 59 | BuildRequires: openjpeg-devel |
16219ea0 | 60 | BuildRequires: openssl-devel |
2c7550ba | 61 | BuildRequires: pkgconfig |
13701c20 | 62 | BuildRequires: pulseaudio-devel |
60486834 | 63 | BuildRequires: rpmbuild(macros) >= 1.357 |
0f42ec7c | 64 | BuildRequires: sed >= 4.0 |
b676b63c | 65 | BuildRequires: unzip |
37b9f29d | 66 | %{?with_wx:BuildRequires: wxGTK2-unicode-devel >= 2.6.0} |
a8c7bdfb | 67 | BuildRequires: xmlrpc-c-server-devel |
13701c20 JB |
68 | BuildRequires: xorg-lib-libXext-devel |
69 | BuildRequires: xorg-lib-libXv-devel | |
abaccc5c | 70 | BuildRequires: xulrunner-devel >= 2:9.0.0 |
cee2dd04 | 71 | %{?with_xvid:BuildRequires: xvid-devel} |
16219ea0 | 72 | BuildRequires: zlib-devel |
5f694ea5 | 73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
74 | ||
75 | %description | |
b2995149 | 76 | GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC |
77 | 14496-1) developed from scratch in ANSI C. | |
5f694ea5 | 78 | |
b2995149 | 79 | The main development goal is to provide a clean (a.k.a. readable by as |
80 | many people as possible), small and flexible alternative to the MPEG-4 | |
81 | Systems reference software (known as IM1 and distributed in ISO/IEC | |
82 | 14496-5). The MPEG-4 Reference software is indeed a very large piece | |
83 | of software, designed to verify the standard rather than provide a | |
84 | small, production-stable software. GPAC is written in ANSI C for | |
85 | portability reasons (embedded platforms and DSPs) with a simple goal: | |
86 | keep the memory footprint as low as possible. The project will at term | |
87 | provide player(s), systems encoders and publishing tools for content | |
88 | distribution. | |
5f694ea5 | 89 | |
80b9bf8c | 90 | %description -l pl.UTF-8 |
cee2dd04 JB |
91 | GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) |
92 | stworzona od zera w ANSI C. | |
93 | ||
80b9bf8c JR |
94 | Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej |
95 | dla jak największej liczby ludzi), małej i elastycznej alternatywy dla | |
cee2dd04 JB |
96 | wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i |
97 | rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4 | |
80b9bf8c JR |
98 | jest bardzo dużą porcją kodu, zaprojektowaną raczej do zweryfikowania |
99 | standardu niż dostarczenia małej, stabilnej wersji produkcyjnej. GPAC | |
100 | jest pisany w ANSI C ze względu na przenośność (platformy wbudowane i | |
101 | DSP) z prostym celem: wymagać tak mało pamięci, jak to tylko możliwe. | |
102 | Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia | |
103 | do publikacji w celu dystrybucji materiałów. | |
cee2dd04 | 104 | |
9cf5dcbc JB |
105 | %package devel |
106 | Summary: Header files for GPAC library | |
107 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GPAC | |
108 | Group: Development/Libraries | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description devel | |
112 | Header files for GPAC library. | |
113 | ||
114 | %description devel -l pl.UTF-8 | |
115 | Pliki nagłówkowe biblioteki GPAC. | |
116 | ||
16219ea0 JB |
117 | %package static |
118 | Summary: Static GPAC library | |
119 | Summary(pl.UTF-8): Statyczna biblioteka GPAC | |
120 | Group: Development/Libraries | |
121 | Requires: %{name}-devel = %{version}-%{release} | |
122 | ||
123 | %description static | |
124 | Static GPAC library. | |
125 | ||
126 | %description static -l pl.UTF-8 | |
127 | Statyczna biblioteka GPAC. | |
128 | ||
0f42ec7c JB |
129 | %package gui |
130 | Summary: wxWidgets-based GUI for GPAC | |
131 | Summary(pl.UTF-8): Oparty na wxWidgets graficzny interfejs do GPAC | |
132 | Group: X11/Applications/Multimedia | |
133 | Requires: %{name} = %{version}-%{release} | |
134 | ||
135 | %description gui | |
136 | Osmo4 - wxWidgets-based GUI for GPAC. | |
137 | ||
138 | %description gui -l pl.UTF-8 | |
139 | Osmo4 - oparty na wxWidgets graficzny interfejs do GPAC. | |
140 | ||
84d02762 | 141 | %package -n browser-plugin-%{name} |
142 | Summary: GPAC browser plugin | |
5dbd083d | 143 | Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW |
84d02762 | 144 | Group: X11/Libraries |
145 | Requires: %{name} = %{version}-%{release} | |
60486834 ER |
146 | Requires: browser-plugins >= 2.0 |
147 | Requires: browser-plugins(%{_target_base_arch}) | |
84d02762 | 148 | |
149 | %description -n browser-plugin-%{name} | |
150 | GPAC plugin for Netscape-compatible WWW browsers. | |
151 | ||
80b9bf8c JR |
152 | %description -n browser-plugin-%{name} -l pl.UTF-8 |
153 | Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape. | |
84d02762 | 154 | |
5f694ea5 | 155 | %prep |
f0a57dca ER |
156 | %setup -q -n %{name} |
157 | %patch0 -p1 | |
0f42ec7c | 158 | %patch1 -p1 |
267232dd | 159 | %patch2 -p1 |
5eb82e91 | 160 | %patch3 -p1 |
13701c20 | 161 | %patch4 -p1 |
ab82664f | 162 | %patch5 -p1 |
c59004e5 | 163 | %patch6 -p1 |
a8c7bdfb | 164 | %patch7 -p1 |
9cf5dcbc | 165 | %patch8 -p1 |
13701c20 | 166 | |
0f42ec7c | 167 | sed -i -e 's/wx-config/wx-gtk2-unicode-config/' configure |
e25a2665 | 168 | chmod a+x configure |
5f694ea5 | 169 | |
5f694ea5 | 170 | %build |
16219ea0 JB |
171 | # not autoconf configure |
172 | ./configure \ | |
173 | --prefix=%{_prefix} \ | |
174 | --libdir=%{_lib} \ | |
175 | --mandir=%{_mandir} \ | |
13701c20 JB |
176 | --X11-path=/usr \ |
177 | --cc="%{__cc}" \ | |
16219ea0 | 178 | --cpp="%{__cxx}" \ |
13701c20 | 179 | --disable-opt \ |
0f42ec7c JB |
180 | %{!?with_wx:--disable-wx} \ |
181 | %{?with_amr:--enable-amr} \ | |
13701c20 JB |
182 | --enable-joystick \ |
183 | --enable-pic \ | |
184 | --extra-cflags="%{rpmcflags}" \ | |
185 | --extra-ldflags="%{rpmldflags}" \ | |
186 | --mozdir=%{_browserpluginsdir} \ | |
187 | %{!?with_faad:--use-faad=no} \ | |
188 | %{!?with_ffmpeg:--use-ffmpeg=no} \ | |
189 | %{!?with_freetype:--use-ft=no} \ | |
190 | %{!?with_jpeg:--use-jpeg=no} \ | |
191 | %{!?with_js:--use-js=no} \ | |
192 | %{!?with_mad:--use-mad=no} \ | |
193 | %{!?with_png:--use-png=no} \ | |
194 | %{!?with_xvid:--use-xvid=no} \ | |
195 | --xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr" | |
5f694ea5 | 196 | |
57e5083b KK |
197 | %{!?with_directfb: sed -i 's/CONFIG_DIRECTFB.*/CONFIG_DIRECTFB=no/' config.mak} |
198 | ||
16219ea0 | 199 | %{__make} -j1 |
5f694ea5 | 200 | |
201 | %install | |
202 | rm -rf $RPM_BUILD_ROOT | |
16219ea0 | 203 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
5f694ea5 | 204 | |
16219ea0 JB |
205 | %{__make} install install-lib \ |
206 | DESTDIR=$RPM_BUILD_ROOT | |
207 | ||
208 | %{__make} -C applications install \ | |
13701c20 | 209 | DESTDIR=$RPM_BUILD_ROOT \ |
60486834 | 210 | MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir} |
5f694ea5 | 211 | |
5f694ea5 | 212 | %clean |
213 | rm -rf $RPM_BUILD_ROOT | |
214 | ||
215 | %post -p /sbin/ldconfig | |
216 | %postun -p /sbin/ldconfig | |
217 | ||
60486834 ER |
218 | %post -n browser-plugin-%{name} |
219 | %update_browser_plugins | |
84d02762 | 220 | |
60486834 ER |
221 | %postun -n browser-plugin-%{name} |
222 | if [ "$1" = 0 ]; then | |
223 | %update_browser_plugins | |
84d02762 | 224 | fi |
225 | ||
5f694ea5 | 226 | %files |
227 | %defattr(644,root,root,755) | |
e51b2790 | 228 | %doc AUTHORS BUGS Changelog README TODO |
13701c20 JB |
229 | %attr(755,root,root) %{_bindir}/MP4Box |
230 | %attr(755,root,root) %{_bindir}/MP4Client | |
16219ea0 JB |
231 | %attr(755,root,root) %{_libdir}/libgpac.so.*.*.* |
232 | %attr(755,root,root) %ghost %{_libdir}/libgpac.so.2 | |
4979ec52 | 233 | %dir %{_libdir}/gpac |
13701c20 JB |
234 | %attr(755,root,root) %{_libdir}/gpac/gm_*.so |
235 | %{_datadir}/gpac | |
236 | %{_mandir}/man1/gpac.1* | |
237 | %{_mandir}/man1/mp4box.1* | |
238 | %{_mandir}/man1/mp4client.1* | |
84d02762 | 239 | |
9cf5dcbc JB |
240 | %files devel |
241 | %defattr(644,root,root,755) | |
16219ea0 | 242 | %attr(755,root,root) %{_libdir}/libgpac.so |
9cf5dcbc | 243 | %{_includedir}/gpac |
16219ea0 JB |
244 | %{_pkgconfigdir}/gpac.pc |
245 | ||
246 | %files static | |
247 | %defattr(644,root,root,755) | |
248 | %{_libdir}/libgpac_static.a | |
9cf5dcbc | 249 | |
563c3d16 | 250 | %if %{with wx} |
0f42ec7c JB |
251 | %files gui |
252 | %defattr(644,root,root,755) | |
253 | %attr(755,root,root) %{_bindir}/Osmo4 | |
563c3d16 | 254 | %endif |
0f42ec7c | 255 | |
84d02762 | 256 | %files -n browser-plugin-%{name} |
257 | %defattr(644,root,root,755) | |
60486834 ER |
258 | %attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so |
259 | %{_browserpluginsdir}/nposmozilla.xpt |