Projects
Multimedia
omxplayer
omxplayer.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File omxplayer.spec of Package omxplayer
# # spec file for package omxplayer # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 Guillaume GARDET <guillaume@opensuse.org> # # 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/ # %bcond_with external_ffmpeg Name: omxplayer Version: 2018.09.04 Release: 0 Summary: omxplayer for Raspberry Pi License: GPL-2.0+ Group: Productivity/Multimedia/Video/Editors and Convertors Url: https://github.com/popcornmix/omxplayer Source: omxplayer-%{version}.tar.gz Patch1: Makefile.ffmpeg.diff Patch2: Makefile.diff Patch3: omxplayer.cpp.diff Patch4: fix_aarch64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: alsa-devel BuildRequires: dbus-1-devel BuildRequires: freetype-devel BuildRequires: freetype2-devel BuildRequires: gcc-c++ BuildRequires: libboost_headers-devel BuildRequires: pcre-devel BuildRequires: pkg-config BuildRequires: raspberrypi-userland-devel %if %{with external_ffmpeg} BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavutil) %else # Internal ffmpeg enables openssl and libsmbclient %if 0%{?suse_version} < 1500 # Leap 42.3 and before BuildRequires: libopenssl-devel %else # Leap 15.0+ and Tumbleweed BuildRequires: libopenssl-1_0_0-devel %endif BuildRequires: libsmbclient-devel BuildRequires: libssh-devel %endif Requires: gnu-free-fonts ExclusiveArch: armv6l armv6hl %arm aarch64 %description omxplayer is a player for Raspberry Pi. %prep %setup -q %if !%{with external_ffmpeg} %patch1 -p1 %endif %patch2 -p1 %patch3 -p1 %ifarch aarch64 %patch4 -p1 sed -i 's#/usr/lib/arm-linux-gnueabihf/dbus-1.0/include#/usr/lib64/dbus-1.0/include/#g;s#LDFLAGS+=-L./#LDFLAGS+=-L./ -L/usr/lib64/ #g' Makefile sed -i 's/-mfpu=vfp//g;s/-mfloat-abi=hard//g;s/-mno-apcs-stack-check//g;s/-mno-apcs-stack-check//g;s/-mstructure-size-boundary=32//g;s/-mno-sched-prolog//g;s/-mtune=arm1176jzf-s//g;s/-mabi=aapcs-linux//g;s/-mcpu=arm1176jzf-s//g' Makefile sed -i 's/--extra-cflags="-mfpu=vfp -mfloat-abi=hard -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog"//g' Makefile.ffmpeg sed -i 's/arch=arm/arch=aarch64/g' Makefile.ffmpeg sed -i 's/--cpu=arm1176jzf-s//g' Makefile.ffmpeg %endif %build # TMP: disable smbclient as it is not found anymore for an unknown reason sed -i 's/--enable-libsmbclient/--disable-libsmbclient/' Makefile.ffmpeg %if !%{with external_ffmpeg} make -f Makefile.ffmpeg configure make -f Makefile.ffmpeg compile make -f Makefile.ffmpeg install %endif # Workaround for latest firmwares export INCLUDES="$INCLUDES -I/opt/vc/include/interface/vmcs_host/linux" # Add missing include path (freetype2 and dbus) export INCLUDES="$INCLUDES -I/usr/include/freetype2" export INCLUDES="$INCLUDES -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include" make %{?_smp_mflags} make dist %install tar -xzf omxplayer-dist.tgz rm -rf omxplayer-dist/usr/share mv omxplayer-dist/* %{buildroot}/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %dir %{_libdir}/omxplayer %{_bindir}/omxplayer %{_bindir}/omxplayer.bin %if !%{with external_ffmpeg} %{_libdir}/omxplayer/libavcodec.so %{_libdir}/omxplayer/libavcodec.so.* %{_libdir}/omxplayer/libavdevice.so %{_libdir}/omxplayer/libavdevice.so.* %{_libdir}/omxplayer/libavfilter.so %{_libdir}/omxplayer/libavfilter.so.* %{_libdir}/omxplayer/libavformat.so %{_libdir}/omxplayer/libavformat.so.* %{_libdir}/omxplayer/libavutil.so %{_libdir}/omxplayer/libavutil.so.* %{_libdir}/omxplayer/libswresample.so %{_libdir}/omxplayer/libswresample.so.* %{_libdir}/omxplayer/libswscale.so %{_libdir}/omxplayer/libswscale.so.* %endif %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
.