%define deb_file %{name}_%{version}_amd64.deb Summary: Opera Stable Name: opera-stable Version: 45.0.2552.881 Release: %mkrel 2 License: Proprietary Group: Networking/WWW URL: http://get.geo.opera.com/pub/opera-developer/ # https://launchpad.net/ubuntu/xenial/+package/chromium-codecs-ffmpeg-extra # https://launchpad.net/ubuntu/xenial/amd64/chromium-codecs-ffmpeg-extra/58.0.3029.81-0ubuntu0.16.04.1277 Source1: http://launchpadlibrarian.net/316841707/chromium-codecs-ffmpeg-extra_58.0.3029.81-0ubuntu0.16.04.1277_amd64.deb Vendor: Opera Software ASA BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: binutils xz tar Conflicts: opera AutoReqProv: no %description Opera Stable with chromium-codecs-ffmpeg-extra to provide streaming H.264/MP4 support (used by videos on Netflix). You can confirm that it is installed and working correctly by going to [1] and checking that the first video listed plays. After adding/enabling libwidevinecdm.so [3] you can confirm that DRM'd H.264/MP4 content is now playable by going to [2] and trying some of the demos. Check first with opera://components/ to see if Widevine is detected. [1] http://www.quirksmode.org/html5/tests/video.html [2] http://demo.castlabs.com/ [3] https://gist.github.com/ruario/3c873d43eb20553d5014bd4d29fe37f1 %prep %setup -T -n %{name} -c %build %install rm -rf %buildroot mkdir %buildroot mkdir %buildroot/ffmpeg-extra cd $RPM_SOURCE_DIR wget -nc https://deb.opera.com/opera/pool/non-free/o/opera-stable/%{deb_file} # extract data from the deb package ar p $RPM_SOURCE_DIR/%{deb_file} data.tar.xz | xz -d -9 | tar x -C %buildroot # extract data from the chromium-codecs-ffmpeg-extra deb package ar p %SOURCE1 data.tar.xz | xz -d -9 | tar x -C %buildroot/ffmpeg-extra # rename libdir %ifarch %{ix86} mv %buildroot/usr/lib/i386-linux-gnu/opera %buildroot/usr/lib/ rm -rf %buildroot/usr/lib/i386-linux-gnu %else mv %buildroot/usr/lib/x86_64-linux-gnu/opera %buildroot/usr/lib/ rm -rf %buildroot/usr/lib/x86_64-linux-gnu mv %buildroot/usr/lib %buildroot%{_libdir} %endif # create new symlink rm -f %buildroot%{_bindir}/opera pushd %buildroot%{_bindir} ln -s %{_libdir}/opera/opera opera popd # delete some directories that is not needed on Fedora rm -rf %buildroot%{_datadir}/{lintian,menu} # correct opera_sandbox permission # FATAL:setuid_sandbox_client.cc(283)] The SUID sandbox helper binary was found # but is not configured correctly. chmod 4755 %buildroot%{_libdir}/opera/opera_sandbox # create symlink to libudev.so pushd %buildroot%{_libdir}/opera ln -s /lib64/libudev.so.0 libudev.so.0 popd # add libffmpeg.so from chromium-codecs-ffmpeg-extra (ubuntu 16.04/amd64) mkdir -p %buildroot/usr/lib/chromium-browser pushd %buildroot/ffmpeg-extra/usr/lib/chromium-browser/ cp -p libffmpeg.so %buildroot/usr/lib/chromium-browser/libffmpeg.so popd rm -rf %buildroot/ffmpeg-extra %clean rm -rf %buildroot %files %defattr(-,root,root) %{_bindir}/opera %{_libdir}/opera %{_datadir} /usr/lib/chromium-browser/libffmpeg.so %changelog * Fri May 26 2017 R.M. Stockmann - 45.0.2552.881-2mdv2011 - added chromium-codecs-ffmpeg-extra_58.0.3029.81-0ubuntu0.16.04.1277_amd64.deb to enable streaming H.264/MP4 support. * Thu May 11 2017 R.M. Stockmann - 45.0.2552.635-2mdv2011 - added chromium-codecs-ffmpeg-extra_58.0.3029.81-0ubuntu0.16.04.1277_amd64.deb to enable streaming H.264/MP4 support. * Thu May 11 2017 R.M. Stockmann - 45.0.2552.635-1mdv2011 - New release * Thu Apr 27 2017 R.M. Stockmann - 44.0.2510.1449-2mdv2011 - added chromium-codecs-ffmpeg-extra_58.0.3029.81-0ubuntu0.16.04.1277_amd64.deb to enable streaming H.264/MP4 support. * Fri Apr 14 2017 R.M. Stockmann - 44.0.2510.857-2mdv2011 - added chromium-codecs-ffmpeg-extra_57.0.2987.98-0ubuntu0.16.04.1276_amd64.deb to enable streaming H.264/MP4 support. * Fri Apr 14 2017 R.M. Stockmann - 44.0.2510.857-2mdv2011 - added chromium-codecs-ffmpeg-extra_57.0.2987.98-0ubuntu0.16.04.1276_amd64.deb to enable streaming H.264/MP4 support. * Sun Apr 2 2017 R.M. Stockmann - 44.0.2510.857-1mdv2011 - new release * Wed Mar 22 2017 bb2 - 44.0.2510.857-1pclos2017 - new version * Wed Mar 01 2017 bb2 - 43.0.2442.1144-1pclos2017 - new version * Wed Feb 22 2017 tex - 43.0.2442.991-1pclos2017 - new version * Tue Feb 07 2017 bb - 43.0.2442.806-1pclos2017 - new version * Fri Jan 27 2017 bb - 42.0.2393.517-1pclos2017 - new version * Thu Dec 22 2016 bb - 42.0.2393.94-1pclos2017 - new version