123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- #% global svndate 20111217
- %define with_static 1
- Name: gpac
- Summary: MPEG-4 multimedia framework
- Version: 0.5.2
- Release: 3%{?svndate:.svn%svndate}%{?_dist_release}
- License: LGPLv2+
- Group: System Environment/Libraries
- URL: http://gpac.sourceforge.net/
- Source0: https://github.com/gpac/gpac/archive/v%{version}.tar.gz
- #Source0: gpac-%{svndate}.tar.bz2
- #Source9: gpac-snapshot-vine.sh
- Patch2: gpac-0.4.6-amr.patch
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
- Obsoletes: %{name} < %{version}, %{name}-libs < %{version}
- Obsoletes: %{name}-devel < %{version}
- Obsoletes: %{name}-devel-static < %{version}
- Requires: %{name}-libs = %{version}-%{release}
- BuildRequires: ImageMagick
- BuildRequires: SDL-devel
- BuildRequires: librsvg2-devel >= 2.5.0
- BuildRequires: libGLU-devel
- BuildRequires: freeglut-devel
- BuildRequires: freetype2-devel >= 2.1.4
- BuildRequires: libjpeg-devel
- BuildRequires: libpng-devel >= 1.2.5
- BuildRequires: libxml2-devel
- BuildRequires: openssl-devel
- #BuildRequires: openjpeg-devel
- BuildRequires: pulseaudio-libs-devel
- BuildRequires: zlib-devel
- BuildRequires: libogg-devel libvorbis-devel libtheora-devel
- BuildRequires: libXt-devel
- BuildRequires: libXpm-devel
- BuildRequires: libXv-devel
- #BuildRequires: wxGTK-devel
- %{?_with_mozilla:BuildRequires: gecko-devel}
- #BuildRequires: doxygen
- BuildRequires: desktop-file-utils
- %{?_with_amr:BuildRequires: amrnb-devel amrwb-devel}
- # *-devel packages provided by other self-build-* should only be listed
- # in self-build-%{name}.spec as PreReq.
- #BuildRequires: a52dec-devel
- #BuildRequires: faad2-devel
- #BuildRequires: libmad-devel
- #BuildRequires: xvidcore-devel >= 1.0.0
- ##BuildRequires: ffmpeg-devel
- %description
- GPAC is a multimedia framework based on the MPEG-4 Systems standard developed
- from scratch in ANSI C. The original development goal is to provide a clean,
- small and flexible alternative to the MPEG-4 Systems reference software.
- GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML,
- X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features
- MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution
- for MP4 and 3GPP(2) files and many tools for scene descriptions
- (MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc).
- %package libs
- Summary: Library for %{name}
- Group: System Environment/Libraries
- %description libs
- The %{name}-libs package contains library for %{name}.
- %package devel
- Summary: Development libraries and files for %{name}
- Group: Development/Libraries
- Requires: %{name}-libs = %{version}-%{release}
- %description devel
- Development libraries and files for gpac.
- %if %{with_static}
- %package devel-static
- Summary: Development libraries and files for %{name}
- Group: Development/Libraries
- Requires: %{name}-devel = %{version}-%{release}
- %description devel-static
- Static library for gpac.
- %endif
- %prep
- %setup -q
- ## remove extra_libs directory
- %__rm -rf extra_libs
- %patch2 -p1 -b .amr
- ## kwizart - enable dynamic mode - hardcoded with patch2
- # define SONAME number from the first number of gpac version.
- #define soname libgpac.so.0
- #sed -i.soname -e 's|EXTRALIBS+=$(GPAC_SH_FLAGS)|EXTRALIBS+=$(GPAC_SH_FLAGS)\nLDFLAGS+="-Wl,-soname,%{soname}"|' src/Makefile
- # Fix encoding warnings
- %__cp -p Changelog Changelog.origine
- iconv -f ISO-8859-1 -t UTF8 Changelog.origine > Changelog
- touch -r Changelog.origine Changelog
- %__rm -rf Changelog.origine
- %__cp -p doc/ipmpx_syntax.bt doc/ipmpx_syntax.bt.origine
- iconv -f ISO-8859-1 -t UTF8 doc/ipmpx_syntax.bt.origine > doc/ipmpx_syntax.bt
- touch -r doc/ipmpx_syntax.bt.origine doc/ipmpx_syntax.bt
- %__rm -rf doc/ipmpx_syntax.bt.origine
- # executable ./configure
- chmod +x configure
- %build
- %configure \
- --extra-cflags="$RPM_OPT_FLAGS -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1" \
- --X11-path=%{_prefix} \
- --libdir=%{_lib} \
- --disable-oss-audio \
- %{?_with_mozilla:--mozdir=%{_libdir}/mozilla/plugins} \
- %{?_with_amr:--enable-amr} \
- --disable-static \
- --use-js=no \
- \
- --disable-wx \
- ;
- #Avoid mess with setup.h
- %__cp -p config.h include/gpac
- # Parallele build will fail
- %__make all
- %__make sggen
- # ## kwizart - build doxygen doc for devel
- # pushd doc
- # doxygen
- # popd
- %install
- %__rm -rf $RPM_BUILD_ROOT
- %__make DESTDIR=$RPM_BUILD_ROOT install install-lib INSTFLAGS="-p"
- #Install generated sggen binaries
- #MPEG4 SVG X3D
- for b in MPEG4 X3D; do
- pushd applications/generators/${b}
- %__install -pm 0755 ${b}Gen $RPM_BUILD_ROOT%{_bindir} || exit 1
- popd
- done
- #config.h like but not only
- #Usual multilib bug https://bugzilla.rpmfusion.org/show_bug.cgi?id=270
- %__sed -i -e '/GPAC_CONFIGURATION/d' $RPM_BUILD_ROOT%{_includedir}/gpac/configuration.h || exit 1
- touch -r Changelog $RPM_BUILD_ROOT%{_includedir}/gpac/*.h || exit 1
- touch -r Changelog $RPM_BUILD_ROOT%{_includedir}/gpac/internal/*.h || exit 1
- touch -r Changelog $RPM_BUILD_ROOT%{_includedir}/gpac/modules/*.h || exit 1
- %__rm $RPM_BUILD_ROOT%{_includedir}/gpac/config.h || exit 1
- %clean
- %__rm -rf $RPM_BUILD_ROOT
- %post libs -p /sbin/ldconfig
- %postun libs -p /sbin/ldconfig
- %files
- %defattr(-,root,root,-)
- %doc AUTHORS BUGS Changelog COPYING README TODO
- %{_bindir}/MP4*
- %{_bindir}/*Gen
- %{_datadir}/gpac/
- %{_mandir}/man1/*.1.*
- %files libs
- %defattr(-,root,root)
- %{_libdir}/libgpac.so.*
- %{_libdir}/gpac/
- %files devel
- %doc doc/CODING_STYLE doc/ipmpx_syntax.bt
- %defattr(-,root,root)
- %{_includedir}/gpac/
- %{_libdir}/libgpac.so
- %if %{with_static}
- %files devel-static
- %defattr(-,root,root,-)
- %{_libdir}/libgpac_static.a
- %else
- %exclude %{_libdir}/libgpac_static.a
- %endif
- %changelog
- * Sat Jan 23 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.2-3
- - rebuilt
- * Sat Jul 11 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.2-2
- - rebuilt
- * Mon Mar 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.2-1
- - new upstream release
- - remove Patch1 (gpac-0.5.0-libdir.patch)
- * Fri Jan 2 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.0-5
- - rebuilt
- * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.0-4
- - remove BuildRequires: xmlrpc-epi-devel
- * Wed Oct 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.0-3
- - added Obsoletes: %{name} < %{version} and so on.
- * Sun Sep 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.0-2
- - rebuild
- * Sat Jan 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.0-1
- - new upstream release
- * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.6-2.svn20111217
- - rebuild
- * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.6-1.svn20111217
- - update snapshot svn20111217
- - removed upstreamed/obsolated patches
- * Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-11
- - rebuilt with internal openjpeg
- - added --use-openjpeg=local in configure options
- - added --enable-pic in configure options
- * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-10
- - rebuild
- * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-9
- - removed doxygen support
- * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-8
- - change release to sync with self-build-gpac
- * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-7
- - rebuild
- * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-6
- - added --use-js=no in configure
- - added devel-static subpackage
- * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.7.4-5
- - change release to sync with self-build-gpac
- * Thu May 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-4
- - change release to sync with self-build-gpac
- * Thu Mar 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-3
- - applied gpac-0.4.5-ffmpeg.patch (RPM Fusion #454)
- - corrected default %%defattr
- * Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-2
- - dropped BuildRequires: ffmpeg-devel as self-build-ffmpeg
- - rebuilt with ffmpeg-devel by self-build-ffmpeg
- * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-1
- - initial build based on RPM Fusion
- - without Osmo4 and its plugins for Mozilla browsers
- - added --disable-wx in configure options
- - included %%{_libdir}/libgpac_static.a in devel subpackage
- * Sun Dec 28 2008 kwizart < kwizart at gmail.com > - 0.4.5-3
- - Fix -devel doc timestamp which leads to multilib conflict
- ( RPM Fusion #270 )
- * Thu Dec 18 2008 kwizart < kwizart at gmail.com > - 0.4.5-2
- - Fix for ppc64
- * Wed Dec 17 2008 kwizart < kwizart at gmail.com > - 0.4.5-1
- - Update to 0.4.5 (final)
- - Drop upstreamed patches - Rewrite some
- - Add More BR.
- - Conditionalize --with mozilla amr
- * Mon Sep 8 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.5.20080217cvs
- - Fix for Large File Support (was livna #2075 )
- * Mon Feb 25 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.3.20080217cvs
- - Enable devel-static
- - Conditionalize Osmo4 (buggy).
- - Clean the spec
- * Sun Feb 17 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.2.20080217cvs
- - Update to 20080217.
- - Split libs.
- - Use the new amr nosrc scheme (need an end-users rebuilt to add support to it).
- - Add openjpeg-devel missing BR
- - Static patching instead of dyn patch when possible.
- - Disable %%{smp_mflags} (it tries to build the bin before the lib is ready)
- - Define soname as libgpac.so.0 (instead of libgpac.so.%%version )
- - Exclude static lib
- * Mon Feb 11 2008 Stewart Adam < s.adam at diffingo.com > - 0.4.5-0.1.20080211cvs
- - Use %%{smp_mflags}
- - Oops, we're actually 0.4.5
- - Fix gpac so filenames
- - Only install nposmozilla when %%{with_firefox} is set
- * Mon Feb 11 2008 Stewart Adam < s.adam at diffingo.com > - 0.4.4-3.20080211cvs
- - Update to 20080211cvs
- - Disable osmozilla, doesn't build with xulrunner
- - Fix builds with gcc 4.3
- * Sat Dec 15 2007 Stewart Adam < s.adam at diffingo.com > - 0.4.4-2
- - Rebuild for rawhide
- * Tue Oct 16 2007 Stewart Adam < s.adam at diffingo.com > - 0.4.4-1
- - Update to v4.4
- * Sat May 26 2007 kwizart < kwizart at gmail.com > - 0.4.3-0.1cvs20070526
- - Update to cvs 20070526
- - Enable conditional build ( 3gpp firefox )
- * Wed Apr 11 2007 kwizart < kwizart at gmail.com > - 0.4.3-0.1cvs20070411
- - Update to cvs 20070411
- * Thu Dec 08 2006 kwizart < kwizart at gmail.com > - 0.4.3-cvs20061208.1.kwizart.fc6
- - Update to 20061208
- - Uses firefox-devel (since fc6!)
- - Drop tutorial
- - Use version-DEV-date with libgpac.so
- - Disabled osmozilla
- - Fix soname
- - Enabled gprof
- * Tue Oct 17 2006 kwizart < kwizart at gmail.com > - 0.4.3-cvs20061017.1_FC5
- - gpac snapshot.sh
- - Revert Patch osmozilla.cpp (v1.17 - build error from gpac/internal/terminal_dev.h)
- - TODO: - no-soname make option for libgpac.so
- - static lib in devel - needed ?
- - osmozilla - xpt link problem.
- - Osmo4: segmentation fault on exit.
- - MP4Client: segmentation fault on launch.
- - The program 'Osmo4' received an X Window System error:
- "The error was 'BadMatch (invalid parameter attributes)'.
- (Details: serial 37 error_code 8 request_code 42 minor_code 0)"
- - MP4Box -version display: GPAC version 0.4.3-DEV (try to display cvs )
- * Sat Oct 15 2006 kwizart < kwizart at gmail.com > - 0.4.2-rc2.1_FC5
- - Update to 0.4.2cvs20061017
- - Use DESTDIR=RPM_BUILD_ROOT in various Makefile.
- - Enable mozilla plugin: osmozilla.
- - Enable AMR_NB_FLOAT and AMR_WB_FLOAT / bundle AMR_NB_FIXED (but not used by default).
- - Provide documentation html in doc .
- - Provide tutorial from http://www.wildamerica.com/pages/Marty.html
- - Various corrections.
- * Fri Sep 01 2006 Anssi Hannula <anssi@zarb.org> 0.4.1-0.20060630.2plf2007.0
- - lib64 fixes
- * Fri Jan 30 2006 Austin Acton <austin@mandriva.org> 0.4.1-0.20060630.1plf2007.0
- - initial package
|