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