2 # - soname for libm4systems(?)
3 # - use system mozilla includes
4 # - ./configure[692]: wx-config: not found
5 # - ./configure[693]: wx-config: not found
13 %bcond_without freetype
21 Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1)
22 Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
28 Source0: http://dl.sourceforge.net/gpac/%{name}-%{version}.tar.gz
29 # Source0-md5: a8b4b3206cabda946850240f1e7aea93
30 Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip
31 # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1
32 Patch0: %{name}-install.patch
33 Patch1: %{name}-wxWidgets.patch
34 Patch2: %{name}-amd64.patch
35 Patch3: %{name}-libdir.patch
36 URL: http://gpac.sourceforge.net/
37 BuildRequires: SDL-devel
38 %{?with_faad:BuildRequires: faad2-devel}
39 %{?with_ffmpeg:BuildRequires: ffmpeg-devel}
40 %{?with_freetype:BuildRequires: freetype-devel}
41 %{?with_js:BuildRequires: js-devel}
42 %{?with_jpeg:BuildRequires: libjpeg-devel}
43 %{?with_mad:BuildRequires: libmad-devel}
44 %{?with_png:BuildRequires: libpng-devel}
45 BuildRequires: libxml2-devel
46 BuildRequires: rpmbuild(macros) >= 1.357
47 %{?with_wx:BuildRequires: wxGTK2-devel >= 2.5.4}
48 %{?with_xvid:BuildRequires: xvid-devel}
50 %{?with_faad:Requires: faad2}
51 %{?with_ffmpeg:Requires: ffmpeg}
52 %{?with_freetype:Requires: freetype}
53 %{?with_js:Requires: js}
54 %{?with_jpeg:Requires: libjpeg}
55 %{?with_mad:Requires: libmad}
56 %{?with_png:Requires: libpng}
57 %{?with_xvid:Requires: xvid}
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 %define _noautoreq libm4systems.so
63 GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC
64 14496-1) developed from scratch in ANSI C.
66 The main development goal is to provide a clean (a.k.a. readable by as
67 many people as possible), small and flexible alternative to the MPEG-4
68 Systems reference software (known as IM1 and distributed in ISO/IEC
69 14496-5). The MPEG-4 Reference software is indeed a very large piece
70 of software, designed to verify the standard rather than provide a
71 small, production-stable software. GPAC is written in ANSI C for
72 portability reasons (embedded platforms and DSPs) with a simple goal:
73 keep the memory footprint as low as possible. The project will at term
74 provide player(s), systems encoders and publishing tools for content
77 %description -l pl.UTF-8
78 GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
79 stworzona od zera w ANSI C.
81 Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej
82 dla jak największej liczby ludzi), małej i elastycznej alternatywy dla
83 wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i
84 rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4
85 jest bardzo dużą porcją kodu, zaprojektowaną raczej do zweryfikowania
86 standardu niż dostarczenia małej, stabilnej wersji produkcyjnej. GPAC
87 jest pisany w ANSI C ze względu na przenośność (platformy wbudowane i
88 DSP) z prostym celem: wymagać tak mało pamięci, jak to tylko możliwe.
89 Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia
90 do publikacji w celu dystrybucji materiałów.
92 %package -n browser-plugin-%{name}
93 Summary: GPAC browser plugin
94 Summary(pl.UTF-8): Wtyczka GPAC do przegląderek WWW
96 Requires: %{name} = %{version}-%{release}
97 Requires: browser-plugins >= 2.0
98 Requires: browser-plugins(%{_target_base_arch})
100 %description -n browser-plugin-%{name}
101 GPAC plugin for Netscape-compatible WWW browsers.
103 %description -n browser-plugin-%{name} -l pl.UTF-8
104 Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape.
109 %{?with_wx:%patch1 -p1}
113 mkdir -p Plugins/amr_dec/AMR_NB
114 cd Plugins/amr_dec/AMR_NB
116 unzip -j 26073-530_ANSI_C_source_code.zip
121 # files for w32 and Linux were swapped
122 rm -rf applications/osmozilla/nsIOsmozilla.xpt_linux
123 mv applications/osmozilla/nsIOsmozilla.xpt_w32 applications/osmozilla/nsIOsmozilla.xpt_linux
127 --extra-cflags="-fPIC" \
128 --extra-ldflags="-fPIC" \
130 %{?with_amr:--enable-amr-nb} \
131 %{!?with_faad:--disable-faad} \
132 %{!?with_ffmpeg:--disable-ffmpeg} \
133 %{!?with_freetype:--disable-ft} \
134 %{!?with_jpeg:--disable-jpeg} \
135 %{!?with_js:--disable-js} \
136 %{!?with_mad:--disable-mad} \
137 %{!?with_png:--disable-png} \
138 %{!?with_xvid:--disable-xvid}
141 XLIBDIR="/usr/X11R6/%{_lib}" \
142 DESTDIR=$RPM_BUILD_ROOT
145 rm -rf $RPM_BUILD_ROOT
148 bindir=$RPM_BUILD_ROOT%{_bindir} \
149 libdir=$RPM_BUILD_ROOT%{_libdir} \
150 mandir=$RPM_BUILD_ROOT%{_mandir} \
151 plugdir=$RPM_BUILD_ROOT%{_libdir}/gpac \
152 real_plugdir=%{_libdir}/gpac \
153 prefix=$RPM_BUILD_ROOT%{_prefix} \
154 MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir}
157 rm -rf $RPM_BUILD_ROOT
159 %post -p /sbin/ldconfig
160 %postun -p /sbin/ldconfig
162 %post -n browser-plugin-%{name}
163 %update_browser_plugins
165 %postun -n browser-plugin-%{name}
166 if [ "$1" = 0 ]; then
167 %update_browser_plugins
171 %defattr(644,root,root,755)
172 %doc AUTHORS BUGS Changelog README TODO
173 %attr(755,root,root) %{_bindir}/*
174 %attr(755,root,root) %{_libdir}/lib*.so
176 %attr(755,root,root) %{_libdir}/gpac/*.so
179 %files -n browser-plugin-%{name}
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so
182 %{_browserpluginsdir}/nposmozilla.xpt