Projects
Essentials
gpac
gpac.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gpac.spec of Package gpac (Revision 27)
Currently displaying revision
27
,
Show latest
# # spec file for package gpac # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define soname 6 Name: gpac Version: 0.6.1 Release: 0 Summary: A multimedia framework covering MPEG-4, VRML/X3D and SVG License: LGPL-2.1+ Group: Productivity/Multimedia/Video/Editors and Convertors Url: http://gpac.io Source: http://github.com/gpac/%{name}/archive/v%{version}.tar.gz Source90: %{name}-rpmlintrc #PATCH-FIX-UPSTREAM i@marguerite.su - enable osmozilla and osmo4_wx Patch1: gpac-0.6.1-enable_V4Studio.patch #PATCH-FIX-UPSTREAM i@marguerite.su - fix SVGGen ldflags Patch2: gpac-0.5.0-SVGGen_abuild.patch #PATCH-FIX-UPSTREAM wengxuetian@gmail.com - fix E: 64bit-portability-issue Patch3: gpac-0.6.1-64bit-portability.patch #PATCH-FIX-OPENSUSE marguerite@opensuse.org - libpng include dir fix Patch4: gpac-0.6.1-libpng-version-detection.patch #PATCH-FIX-UPSTREAM marguerite@opensuse.org - use system amrnb/amrwb Patch5: gpac-0.5.0-system-amr.patch #PATCH-FIX-UPSTREAM marguerite@opensuse.org - no gpac.pc in devel package Patch6: gpac-0.6.1-no-pc.patch #PATCH-FIX-UPSTREAM marguerite@opensuse.org - fix gf_isom_set_pixel_aspect_ratio # not available to the public Patch9: gpac-0.6.1-x264-export.patch #PATCH-FIX-UPSTREAM marguerite@opensuse.org - fix u32 count redelaration Patch10: gpac-0.5.1-u32-count-redeclaration.patch Patch11: gpac.wx.patch Patch12: gpac.ssl.patch BuildRequires: ImageMagick BuildRequires: Mesa-devel BuildRequires: alsa-devel BuildRequires: dos2unix BuildRequires: doxygen BuildRequires: fdupes BuildRequires: freeglut-devel BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: graphviz BuildRequires: liba52-devel BuildRequires: libfaad-devel BuildRequires: pkgconfig(libavcodec) = 57.107.100 BuildRequires: pkgconfig(libavformat) = 57.83.100 BuildRequires: pkgconfig(libswscale) = 4.8.100 BuildRequires: pkgconfig(libavdevice) = 57.10.100 BuildRequires: pkgconfig(libavutil) = 55.78.100 BuildRequires: libjpeg-devel BuildRequires: libmad-devel BuildRequires: libogg-devel BuildRequires: libopenssl-devel BuildRequires: libpng-devel BuildRequires: libpulse-devel BuildRequires: librsvg-devel >= 2.5.0 BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: libxvidcore-devel BuildRequires: unzip BuildRequires: update-desktop-files BuildRequires: xz BuildRequires: zlib-devel BuildRequires: pkgconfig(libxml-2.0) BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libSDL-devel BuildRequires: pkgconfig(mozjs185) BuildRequires: pkgconfig(libopenjpeg) %if 1 BuildRequires: wxWidgets-wxcontainer-devel %define _use_internal_dependency_generator 0 %define __find_requires %wx_requires %else BuildRequires: wxWidgets-devel %endif %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). The second development goal is to achieve integration of recent multimedia standards (SVG/SMIL, VRML, X3D, SWF, etc) into a single framework. This stage is still under drafting but GPAC already supports most of VRML97, some X3D as well as very simple SVG. GPAC already features 2D and 3D multimedia playback, MPEG-4 Systems encoders/multiplexers and publishing tools for content distribution. GPAC is licensed under the GNU Lesser General Public License. The current GPAC release (0.4.5) already 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. Author: Jean Le Feuvre <jeanlf at users.sourceforge.net> %package -n libgpac%{soname} Summary: Shared libraries for gpac Group: System/Libraries %description -n libgpac%{soname} Shared libraries for package gpac. %package -n libgpac-devel Summary: Development files for gpac Group: Development/Languages/C and C++ Requires: libgpac%{soname} = %{version} # old name Provides: gpac-devel = %{version} Obsoletes: gpac-devel < %{version} %description -n libgpac-devel Development files for gpac. Author: Jean Le Feuvre <jeanlf@users.sourceforge.net> %package -n Osmo4 Summary: MPEG-4 Media player based on gpac Group: Productivity/Multimedia/Video/Players Requires: %{name} = %{version} %description -n Osmo4 Osmo4 is an MPEG-4 player with the following features: * MPEG-4 Systems player: * Optimized 2D graphics renderer compliant with the Complete2D Scene Graph and Graphics profiles. * Video and audio presentation achieved through plugins * Multimedia player features: * Timeline controls: play, pause, step. * Graphics features: antialising, zoom and pan, scalable resizing of rendering area * Support for Advanced Text and Graphics extension of MPEG-4 Systems * Frame export to JPG, PNG, BMP. Osmo4 enables the use of MPEG-4 Systems in a vast aplication domain, among which: * downloaded or streamed cartoons * synchronized, interactive mixes of graphics, text, video and audio * applications benefiting from MPEG-7 and MPEG-21 advances: meta-data, encryption, watermarking, rights management %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %build # 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 sed -i~ '1 {s@^.*$@/*@}' src/utils/xml_parser.c ### corrects typo sed -e 's|nb_droped|nb_dropped|g' -i applications/osmo4_wx/fileprops.cpp # configure the beast ./configure \ --prefix=%{_prefix} \ --libdir="%{_lib}" \ --mandir=%{_mandir} \ --extra-cflags="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DXP_UNIX -fPIC" # make the beast (NO parallel build possible ...) # fix I: File is compiled without RPM_OPT_FLAGS gpac doesn't respect any flags at all cp config.h include/gpac/configuration.h make %{?_smp_mflags} all CFLAG="%{optflags}" make %{?_smp_mflags} sggen make %{?_smp_mflags} -C applications/generators/SVG make %{?_smp_mflags} -C applications/udptsseg # create dev-docs pushd doc doxygen -u doxygen popd %install %make_install # header files make install-lib \ DESTDIR=%{buildroot} # generated sggen binaries for i in MPEG4 SVG X3D; do install -m 755 applications/generators/$i/${i}Gen \ %{buildroot}%{_bindir} done # udptsseg install -m 755 bin/gcc/udptsseg \ %{buildroot}%{_bindir} # Osmo4 install -m 755 bin/gcc/Osmo4 \ %{buildroot}%{_bindir} # icon install -dm 755 %{buildroot}%{_datadir}/pixmaps convert -size 48x48 applications/osmo4_wx/osmo4.xpm \ Osmo4.png install -m 644 Osmo4.png \ %{buildroot}%{_datadir}/pixmaps # menu-entry install -dm 755 %{buildroot}%{_datadir}/applications cat > Osmo4.desktop << EOF [Desktop Entry] Comment=MPEG-4 Media player based on gpac Name=Osmo4 GenericName=MPEG-4 Media player based on gpac Type=Application Exec=Osmo4 Icon=Osmo4 Terminal=false EOF %suse_update_desktop_file -i Osmo4 AudioVideo Player # static lib rm -rf %{buildroot}%{_libdir}/*.a %fdupes %{buildroot} %post -n libgpac%{soname} -p /sbin/ldconfig %postun -n libgpac%{soname} -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS BUGS Changelog COPYING README.md TODO %doc doc/configuration.html %{_bindir}/DashCast %{_bindir}/MP42TS %{_bindir}/MP4Box %{_bindir}/MP4Client %{_bindir}/MPEG4Gen %{_bindir}/X3DGen %{_bindir}/SVGGen %{_bindir}/udptsseg %{_libdir}/%{name}/ %{_datadir}/%{name}/ %{_mandir}/man1/* %files -n libgpac%{soname} %defattr(-,root,root) %{_libdir}/libgpac.so.%{soname} %{_libdir}/libgpac.so.%{soname}.* %files -n libgpac-devel %defattr(-,root,root) %doc doc/CODING_STYLE doc/ipmpx_syntax.bt %{_includedir}/%{name}/ %{_libdir}/libgpac.so %{_libdir}/pkgconfig/%{name}.pc %files -n Osmo4 %defattr(-,root,root) %{_bindir}/Osmo4 %{_datadir}/pixmaps/Osmo4.png %{_datadir}/applications/Osmo4.desktop %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.