Projects
Extra
chromium-ffmpeg-extra
chromium-ffmpeg-extra.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-ffmpeg-extra.spec of Package chromium-ffmpeg-extra (Revision 17)
Currently displaying revision
17
,
Show latest
# # spec file for package chromium-ffmpeg-extra # # Copyright (c) 2018 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/ # Name: chromium-ffmpeg-extra Version: 69.0.3497.100 Release: 0 Summary: Extra ffmpeg codecs for browsers based on Chromium License: GPL-2.0 Group: Productivity/Networking/Web/Browsers URL: http://code.google.com/p/chromium/ Source0: http://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz Source1: BUILD.gn Patch0: fix_building_widevinecdm_with_chromium.patch Patch1: chromium-dma-buf.patch Patch2: chromium-non-void-return.patch Patch3: chromium-system-icu.patch Patch4: chromium-skia-system-fontconfig.patch Patch5: chromium-old-glibc.patch BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: python-xml BuildRequires: pkgconfig(dri) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(libpci) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(nss) BuildRequires: pkgconfig(python) BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(xscrnsaver) BuildRequires: pkgconfig(xtst) ExclusiveArch: %{ix86} x86_64 %if %{?suse_version} >= 1330 BuildRequires: gcc >= 6.0 BuildRequires: gcc-c++ >= 6.0 %else BuildRequires: gcc7 BuildRequires: gcc7-c++ %endif %description This package contains proprietary codecs needed for the HTML5 (audio and video tags). %prep %setup -q -n chromium-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 mkdir toolchain cp %{SOURCE1} toolchain/BUILD.gn if [ ! -f chrome/test/data/webui/i18n_process_css_test.html ]; then touch chrome/test/data/webui/i18n_process_css_test.html fi %build ARCH_FLAGS="`echo %{optflags} | sed -e 's/^-g / /g' -e 's/ -g / /g' -e 's/ -g$//g'`" export CFLAGS="${ARCH_FLAGS} -fpermissive" export CXXFLAGS="${ARCH_FLAGS} -fpermissive" %if 0%{?suse_version} < 1330 export CC=gcc-7 export CXX=g++-7 # some still call gcc/g++ mkdir -p "$HOME/bin/" ln -sfn %{_bindir}/$CC $HOME/bin/gcc ln -sfn %{_bindir}/$CXX $HOME/bin/g++ export PATH="$HOME/bin/:$PATH" %else export CC=gcc export CXX=g++ %endif myconf_gn="" myconf_gn+=" custom_toolchain=\"./toolchain:default\"" myconf_gn+=" ffmpeg_branding=\"ChromeOS\"" myconf_gn+=" proprietary_codecs=true" myconf_gn+=" enable_swiftshader=false" myconf_gn+=" enable_hevc_demuxing=true" myconf_gn+=" use_custom_libcxx=false" myconf_gn+=" use_gio=false" myconf_gn+=" use_gnome_keyring=false" myconf_gn+=" use_kerberos=false" myconf_gn+=" use_cups=false" myconf_gn+=" use_sysroot=false" myconf_gn+=" use_gold=false" myconf_gn+=" linux_use_bundled_binutils=false" myconf_gn+=" fatal_linker_warnings=false" myconf_gn+=" treat_warnings_as_errors=false" myconf_gn+=" is_clang=false" myconf_gn+=" is_component_build=true" myconf_gn+=" is_debug=false" myconf_gn+=" symbol_level=0" myconf_gn+=" enable_vulkan=true" myconf_gn+=" use_system_freetype=true" myconf_gn+=" is_component_ffmpeg=true" tools/gn/bootstrap/bootstrap.py --gn-gen-args "${myconf_gn}" out/Release/gn gen --args="${myconf_gn}" out/Release out/Release/gn args --list out/Release/ ninja %{?_smp_mflags} -C out/Release media/ffmpeg %install install -Dm0644 out/Release/libffmpeg.so %{buildroot}%{_libdir}/%{name}/libffmpeg.so # make it available for opera too mkdir -p %{buildroot}%{_libdir}/opera/lib_extra cd %{buildroot}%{_libdir}/opera/lib_extra ln -s ../../%{name}/libffmpeg.so . %files %doc AUTHORS LICENSE %dir %{_libdir}/%{name} %{_libdir}/%{name}/libffmpeg.so %dir %{_libdir}/opera %dir %{_libdir}/opera/lib_extra %{_libdir}/opera/lib_extra/libffmpeg.so %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
.