|
|
|
@ -5,32 +5,20 @@
|
|
|
|
|
# - Fix unused-direct-shlib-dependency on libgpac
|
|
|
|
|
|
|
|
|
|
#global git 20150924
|
|
|
|
|
#global commit 413cd94f24ebf09668cc90434af81729a01e6306
|
|
|
|
|
#global date 20211104
|
|
|
|
|
#global shortcommit0 %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
|
|
%if 0%{?el9}
|
|
|
|
|
%global _without_jack 1
|
|
|
|
|
%global _without_freenect 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: gpac
|
|
|
|
|
Summary: MPEG-4 multimedia framework
|
|
|
|
|
Version: 2.0.0
|
|
|
|
|
Release: 1%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist}
|
|
|
|
|
Version: 0.8.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: http://gpac.sourceforge.net/
|
|
|
|
|
Source0: https://github.com/gpac/gpac/archive/v%{version}/gpac-%{version}.tar.gz
|
|
|
|
|
#Source0: https://github.com/gpac/gpac/archive/%{commit}/gpac-%{commit}.tar.gz
|
|
|
|
|
#Source9: gpac-snapshot.sh
|
|
|
|
|
#Debian dependencies provide by gpac
|
|
|
|
|
#Build-Depends: debhelper (>= 6), libc6, libc6-dev, libx11-dev (>= 1.3), zlib1g-dev (>= 1), libfreetype6-dev, libjpeg62-dev | libjpeg62-turbo-dev, libpng-dev, libmad0-dev, libfaad-dev, libogg-dev, libvorbis-dev, libtheora-dev, liba52-dev | liba52-0.7.4-dev, libavcodec-dev, libavformat-dev, libavutil-dev, libswscale-dev, libavdevice-dev, libavfilter-dev, libxv-dev, x11proto-video-dev, libgl1-mesa-dev, x11proto-gl-dev, libxvidcore-dev, libssl-dev (>= 0.9.8), libjack-dev (>= 0.118), libasound2-dev (>= 1.0), libpulse-dev (>= 0.9), libsdl-dev (>= 1.2) | libsdl2-dev, ccache
|
|
|
|
|
#BuildRequires: ImageMagick
|
|
|
|
|
#BuildRequires: SDL-devel
|
|
|
|
|
|
|
|
|
|
BuildRequires: SDL2-devel
|
|
|
|
|
BuildRequires: a52dec-devel
|
|
|
|
|
BuildRequires: librsvg2-devel >= 2.5.0
|
|
|
|
|
BuildRequires: libGLU-devel
|
|
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
|
BuildRequires: freetype-devel >= 2.1.4
|
|
|
|
|
BuildRequires: faad2-devel
|
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
@ -40,7 +28,6 @@ BuildRequires: xvidcore-devel >= 1.0.0
|
|
|
|
|
BuildRequires: ffmpeg-devel
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: openjpeg2-devel
|
|
|
|
|
BuildRequires: pulseaudio-libs-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: libogg-devel
|
|
|
|
@ -49,14 +36,9 @@ BuildRequires: libtheora-devel
|
|
|
|
|
BuildRequires: libXt-devel
|
|
|
|
|
BuildRequires: libXpm-devel
|
|
|
|
|
BuildRequires: libXv-devel
|
|
|
|
|
%{!?_without_jack:BuildRequires: jack-audio-connection-kit-devel}
|
|
|
|
|
# Disable optional freenect for i686 multilibs gpac usage
|
|
|
|
|
%ifnarch i686
|
|
|
|
|
%{!?_without_freenect:BuildRequires: libfreenect-devel}
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: xmlrpc-c-devel
|
|
|
|
|
BuildRequires: doxygen graphviz
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
%{?_with_amr:BuildRequires: amrnb-devel
|
|
|
|
|
BuildRequires: amrwb-devel}
|
|
|
|
|
|
|
|
|
@ -105,14 +87,11 @@ Static library for gpac.
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
rm -r extra_lib/
|
|
|
|
|
pushd share/doc
|
|
|
|
|
# Fix encoding warnings
|
|
|
|
|
cp -p ipmpx_syntax.bt ipmpx_syntax.bt.origine
|
|
|
|
|
iconv -f ISO-8859-1 -t UTF8 ipmpx_syntax.bt.origine > ipmpx_syntax.bt
|
|
|
|
|
touch -r ipmpx_syntax.bt.origine ipmpx_syntax.bt
|
|
|
|
|
rm -rf share/doc/ipmpx_syntax.bt.origine
|
|
|
|
|
popd
|
|
|
|
|
sed -i 's/dh_link/ln -s -r/' Makefile
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -124,8 +103,7 @@ sed -i 's/dh_link/ln -s -r/' Makefile
|
|
|
|
|
--disable-oss-audio \
|
|
|
|
|
%{?_with_amr:--enable-amr} \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--use-js=no \
|
|
|
|
|
--verbose
|
|
|
|
|
--use-js=no
|
|
|
|
|
|
|
|
|
|
#Avoid mess with setup.h
|
|
|
|
|
cp -p config.h include/gpac
|
|
|
|
@ -134,7 +112,7 @@ cp -p config.h include/gpac
|
|
|
|
|
%{make_build} sggen
|
|
|
|
|
|
|
|
|
|
## kwizart - build doxygen doc for devel
|
|
|
|
|
pushd share/doc
|
|
|
|
|
pushd doc
|
|
|
|
|
doxygen
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
@ -151,7 +129,7 @@ for b in MPEG4 X3D; do
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
#Fix doxygen timestamp
|
|
|
|
|
touch -r Changelog share/doc/html-libgpac/*
|
|
|
|
|
touch -r Changelog doc/html-libgpac/*
|
|
|
|
|
|
|
|
|
|
#config.h like but not only
|
|
|
|
|
#Usual multilib bug https://bugzilla.rpmfusion.org/show_bug.cgi?id=270
|
|
|
|
@ -160,18 +138,17 @@ touch -r Changelog %{buildroot}%{_includedir}/gpac/*.h
|
|
|
|
|
touch -r Changelog %{buildroot}%{_includedir}/gpac/internal/*.h
|
|
|
|
|
touch -r Changelog %{buildroot}%{_includedir}/gpac/modules/*.h
|
|
|
|
|
rm %{buildroot}%{_includedir}/gpac/config.h
|
|
|
|
|
#rm %{buildroot}%{_includedir}/win32/*
|
|
|
|
|
#rm %{buildroot}%{_includedir}/wince/errno.h
|
|
|
|
|
rm %{buildroot}%{_includedir}/win32/*
|
|
|
|
|
rm %{buildroot}%{_includedir}/wince/errno.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changelog README.md
|
|
|
|
|
%doc AUTHORS BUGS Changelog README.md TODO
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_bindir}/gpac
|
|
|
|
|
#{_bindir}/DashCast
|
|
|
|
|
#{_bindir}/MP42TS
|
|
|
|
|
%{_bindir}/DashCast
|
|
|
|
|
%{_bindir}/MP42TS
|
|
|
|
|
%{_bindir}/MP4Box
|
|
|
|
|
%{_bindir}/MP4Client
|
|
|
|
|
%{_bindir}/MPEG4Gen
|
|
|
|
@ -179,74 +156,26 @@ rm %{buildroot}%{_includedir}/gpac/config.h
|
|
|
|
|
%{_bindir}/X3DGen
|
|
|
|
|
%{_datadir}/gpac/
|
|
|
|
|
%{_mandir}/man1/*.1.*
|
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/gpac.png
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%{_libdir}/libgpac.so.*
|
|
|
|
|
%{_libdir}/gpac/
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc share/doc/html-libgpac/*
|
|
|
|
|
%doc doc/html-libgpac/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc share/doc/CODING_STYLE share/doc/ipmpx_syntax.bt
|
|
|
|
|
%doc doc/CODING_STYLE doc/ipmpx_syntax.bt
|
|
|
|
|
%{_includedir}/gpac/
|
|
|
|
|
%{_libdir}/libgpac.so
|
|
|
|
|
%{_libdir}/pkgconfig/gpac.pc
|
|
|
|
|
|
|
|
|
|
%files static
|
|
|
|
|
%{_libdir}/libgpac_static.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Feb 26 2022 Leigh Scott <leigh123linux@gmail.com> - 2.0.0-1
|
|
|
|
|
- Update to 2.0.0
|
|
|
|
|
|
|
|
|
|
* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 1.0.2-0.2.20211104git413cd94
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Nov 09 2021 Leigh Scott <leigh123linux@gmail.com> - 1.0.2-0.1.20211104git413cd94
|
|
|
|
|
- Use git snapshot
|
|
|
|
|
|
|
|
|
|
* Tue Nov 09 2021 Leigh Scott <leigh123linux@gmail.com> - 1.0.1-5
|
|
|
|
|
- Rebuilt for new ffmpeg snapshot
|
|
|
|
|
|
|
|
|
|
* Mon Aug 02 2021 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.0.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2021 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.0.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 1 2021 Leigh Scott <leigh123linux@gmail.com> - 1.0.1-2
|
|
|
|
|
- Rebuilt for new ffmpeg snapshot
|
|
|
|
|
|
|
|
|
|
* Sun Nov 22 2020 Sérgio Basto <sergio@serjux.com> - 1.0.1-1
|
|
|
|
|
- Update to 1.0.1
|
|
|
|
|
|
|
|
|
|
* Mon Aug 17 2020 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 1.0.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 06 2020 Nicolas Chauvet <kwizart@gmail.com> - 1.0.0-2
|
|
|
|
|
- Adjust BR
|
|
|
|
|
|
|
|
|
|
* Fri Jul 03 2020 Sérgio Basto <sergio@serjux.com> - 1.0.0-1
|
|
|
|
|
- Update to 1.0.0
|
|
|
|
|
- BR SDL2-devel instead SDL-devel
|
|
|
|
|
- Add BR jack-audio-connection-kit-devel and libfreenect-devel
|
|
|
|
|
- Remove BR js-devel, wxGTK3-devel, gtk+-devel and gtk2-devel
|
|
|
|
|
|
|
|
|
|
* Thu Mar 12 2020 Leigh Scott <leigh123linux@gmail.com> - 0.8.0-5
|
|
|
|
|
- Rebuilt for i686
|
|
|
|
|
|
|
|
|
|
* Sat Feb 22 2020 Leigh Scott <leigh123linux@googlemail.com> - 0.8.0-4
|
|
|
|
|
- Rebuild for ffmpeg-4.3 git
|
|
|
|
|
|
|
|
|
|
* Tue Feb 04 2020 RPM Fusion Release Engineering <leigh123linux@gmail.com> - 0.8.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Dec 17 2019 Leigh Scott <leigh123linux@googlemail.com> - 0.8.0-2
|
|
|
|
|
- Mass rebuild for x264
|
|
|
|
|
* Wed Dec 01 2021 Nicolas Chauvet <kwizart@gmail.com> - 0.8.0-2
|
|
|
|
|
- Rebuilt
|
|
|
|
|
|
|
|
|
|
* Tue Aug 06 2019 Sérgio Basto <sergio@serjux.com> - 0.8.0-1
|
|
|
|
|
- Update GPAC to 0.8.0
|
|
|
|
|