mirror of
https://github.com/gpac/gpac.git
synced 2026-01-12 00:05:22 +08:00
103 lines
3.7 KiB
RPMSpec
103 lines
3.7 KiB
RPMSpec
# $Id: gpac.spec,v 1.5 2008-12-02 18:04:42 jeanlf Exp $
|
|
Summary: GPAC is a multimedia framework covering MPEG-4, VRML/X3D and SVG.
|
|
Name: gpac
|
|
Version: 0.6.2-DEV
|
|
Release: 0.6.2-DEV
|
|
License: LGPL
|
|
Group: Applications/Multimedia
|
|
Source0: gpac-0.6.2-DEV.tar.gz%{?_with_amr:Source1:http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-700.zip}
|
|
URL: http://gpac.sourceforge.net/
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
Requires: SDL
|
|
%{!?_without_js:Requires: js}
|
|
%{!?_without_freetype:Requires: freetype}
|
|
%{!?_without_faad:Requires: faad2}
|
|
%{!?_without_jpeg:Requires: libjpeg-6b}
|
|
%{!?_without_png:Requires: libpng}
|
|
%{!?_without_mad:Requires: libmad}
|
|
%{!?_without_xvid:Requires: xvidcore}
|
|
%{!?_without_ffmpeg:Requires: ffmpeg}
|
|
%{!?_without_jack:Requires: libjack}
|
|
BuildRequires: SDL-devel
|
|
%{!?_without_js:BuildRequires: js-devel}
|
|
%{!?_without_freetype:BuildRequires: freetype-devel}
|
|
%{!?_without_faad:BuildRequires: faad2-devel}
|
|
%{!?_without_jpeg:BuildRequires: libjpeg-devel}
|
|
%{!?_without_png:BuildRequires: libpng-devel}
|
|
%{!?_without_mad:BuildRequires: libmad-devel}
|
|
%{!?_without_xvid:BuildRequires: xvidcore-devel}
|
|
%{!?_without_ffmpeg:BuildRequires: ffmpeg-devel}
|
|
%{!?_without_jack:BuildRequires: libjack-devel}
|
|
|
|
%description
|
|
GPAC is a multimedia framework for MPEG-4, VRML/X3D and SVG/SMIL. GPAC is built upon an implementation of the MPEG-4 Systems
|
|
standard (ISO/IEC 14496-1) developed from scratch in 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).
|
|
GPAC covers a very large part of the MPEG-4 standard, and features what can probably
|
|
be seen as the most advanced and robust 2D MPEG-4 Player available worldwide, as well as
|
|
a decent 3D MPEG-4/VRML player.
|
|
|
|
The second development goal is to achieve integration of recent multimedia
|
|
standards for content playback (SVG/SMIL, VRML, X3D, SWF, etc) and content delivery into a single framework.
|
|
GPAC features 2D and 3D multimedia playback, MPEG-4 Systems (BIFS and LASeR) encoders, multiplexers and
|
|
publishing tools for content distribution, such as RTP streamers, MPEG-2 TS muxers, ISO Base Media File (MP4 & 3GP a.k.a. ISO/IEC 14496-12)
|
|
and MPEG DASH muxers.
|
|
|
|
GPAC is licensed under the GNU Lesser General Public License.
|
|
|
|
|
|
Available rpmbuild rebuild options :
|
|
--without : js freetype faad a52 jpeg png mad xvid ffmpeg
|
|
--with : amr
|
|
|
|
To build with amr, download
|
|
http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-700.zip
|
|
and put it in the rpm source directory. Then invoke rpmbuild with the
|
|
"--with amr" option.
|
|
|
|
%prep
|
|
%setup -q -n gpac
|
|
%if %{?_with_amr:1}%{!?_with_amr:0}
|
|
mkdir -p modules/amr_dec/amr_nb
|
|
cd Plugins/amr_dec/AMR_NB
|
|
unzip -j /usr/src/redhat/SOURCES/26073-700.zip
|
|
unzip -j 26073-700_ANSI_C_source_code.zip
|
|
cd ../../..
|
|
%endif
|
|
|
|
%build
|
|
%configure --enable-oss-audio %{?_with_amr: --enable-amr-nb} %{?_without_js: --disable-js} %{?_without_freetype: --disable-ft} %{?_without_faad: --disable-faad} %{?_without_jpeg: --disable-jpeg} %{?_without_png: --disable-png} %{?_without_mad: --disable-mad} %{?_without_xvid: --disable-xvid} %{?_without_ffmpeg: --disable-ffmpeg} %{?_without_jack: --disable-jack}
|
|
make
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%makeinstall
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS BUGS Changelog COPYING README.md TODO
|
|
%{_bindir}/*
|
|
%{_libdir}/*
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Fri Jul 3 2015 Jean Le Feuvre
|
|
- Changed to README.md
|
|
* Wed Feb 13 2008 Pierre Souchay
|
|
- Added libjack
|
|
* Wed Jul 13 2005 Jean Le Feuvre
|
|
- Updated for GPAC LGPL release
|
|
* Mon Aug 09 2004 Sverker Abrahamsson <sverker@abrahamsson.com>
|
|
- Initial RPM release
|