# # Conditional build: %bcond_with amr %bcond_without faad %bcond_without ffmpeg %bcond_without freetype %bcond_without jpeg %bcond_without js %bcond_without mad %bcond_without png %bcond_without xvid # Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) Summary(pl): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) Name: gpac Version: 0.2.1 Release: 1 License: GPL Group: Applications Source0: http://dl.sourceforge.net/gpac/%{name}-%{version}.tar.gz # Source0-md5: 3a3e193e805ab177f44514ca3289b461 Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1 URL: http://gpac.sourceforge.net/ BuildRequires: SDL-devel #BuildRequires: wxWidgets-devel %{?with_faad:BuildRequires: faad2-devel} %{?with_ffmpeg:BuildRequires: ffmpeg-devel} %{?with_freetype:BuildRequires: freetype-devel} %{?with_js:BuildRequires: js-devel} %{?with_jpeg:BuildRequires: libjpeg-devel} %{?with_mad:BuildRequires: libmad-devel} %{?with_png:BuildRequires: libpng-devel} %{?with_xvid:BuildRequires: xvid-devel} Requires: SDL #Requires: wxWidgets %{?with_faad:Requires: faad2} %{?with_ffmpeg:Requires: ffmpeg} %{?with_freetype:Requires: freetype} %{?with_js:Requires: js} %{?with_jpeg:Requires: libjpeg-6b} %{?with_png:Requires: libpng} %{?with_mad:Requires: libmad} %{?with_xvid:Requires: xvid} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) developed from scratch in ANSI C. The main development goal is to provide a clean (a.k.a. readable by as many people as possible), small and flexible alternative to the MPEG-4 Systems reference software (known as IM1 and distributed in ISO/IEC 14496-5). The MPEG-4 Reference software is indeed a very large piece of software, designed to verify the standard rather than provide a small, production-stable software. GPAC is written in ANSI C for portability reasons (embedded platforms and DSPs) with a simple goal: keep the memory footprint as low as possible. The project will at term provide player(s), systems encoders and publishing tools for content distribution. The current GPAC release (0.2.1) is far from being complete but already covers a very large part of the standard, and can probably be seen as the most advanced and robust 2D MPEG-4 Player available worldwide (its 3D side is not to be neglected though). %description -l pl GPAC to implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) stworzona od zera w ANSI C. Głównym celem tworzenia jej jest dostarczenie czystej (tzn. czytelnej dla jak największej liczby ludzi), małej i elastycznej alternatywy dla wzorcowego oprogramowania MPEG-4 Systems (znanego jako IM1 i rozprowadzanego w ISO/IEC 14496-5). Wzorcowe oprogramowanie MPEG-4 jest bardzo dużą porcją kodu, zaprojektowaną raczej do zweryfikowania standardu niż dostarczenia małej, stabilnej wersji produkcyjnej. GPAC jest pisany w ANSI C ze względu na przenośność (platformy wbudowane i DSP) z prostym celem: wymagać tak mało pamięci, jak to tylko możliwe. Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia do publikacji w celu dystrybucji materiałów. Aktualne wydanie GPAC (0.2.1) jest dalekie od ukończenia, ale już pokrywa bardzo dużą część standardu i prawdopodobnie można je traktować jako najbardziej zaawansowany i bogaty dwuwymiarowy odtwarzacz MPEG-4 (aspekt trójwymiarowy jednak nie ma pozostać zlekceważony). %prep %setup -q -n gpac %if %{with amr} mkdir -p Plugins/amr_dec/AMR_NB cd Plugins/amr_dec/AMR_NB # XXX: (conditional?) SourceN? unzip -j %{_sourcedir}/26073-530.zip unzip -j 26073-530_ANSI_C_source_code.zip %endif %build %configure \ --enable-oss-audio \ %{?with_amr: --enable-amr-nb} \ %{!?with_faad: --disable-faad} \ %{!?with_ffmpeg: --disable-ffmpeg} \ %{!?with_freetype: --disable-ft} \ %{!?with_jpeg: --disable-jpeg} \ %{!?with_js: --disable-js} \ %{!?with_mad: --disable-mad} \ %{!?with_png: --disable-png} \ %{!?with_xvid: --disable-xvid} %{__make} \ DESTDIR=$RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT %{__make} install \ bindir=$RPM_BUILD_ROOT%{_bindir} \ libdir=$RPM_BUILD_ROOT%{_libdir} \ mandir=$RPM_BUILD_ROOT%{_mandir} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS BUGS Changelog COPYING README TODO %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_libdir}/* %{_mandir}/man1/*