File xf86-video-hwcomposer.spec of Package xf86-video-hwcomposer
#
# spec file for package xf86-video-hwcomposer
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: xf86-video-hwcomposer
Version: 0.3.9
Release: 0
Summary: Virtual/offscreen frame buffer video driver for the Xorg X server
License: MIT
Group: System/X11/Servers/XF86_4
URL: http://xorg.freedesktop.org/
Source0: http://xorg.freedesktop.org/releases/individual/driver/xserver-xorg-video-hwcomposer-%{version}.tar.xz
Source1: hwcomposer_drv.so
Patch0: 0001-change-include-android-headers-path.patch
BuildRequires: android-headers-9.0-devel
BuildRequires: android-tools
BuildRequires: drihybris
BuildRequires: git
BuildRequires: libepoxy-devel
BuildRequires: libhybris-devel
BuildRequires: libhybris-libEGL-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(fontsproto)
BuildRequires: pkgconfig(randrproto)
BuildRequires: pkgconfig(renderproto)
BuildRequires: pkgconfig(videoproto)
BuildRequires: pkgconfig(xf86dgaproto)
BuildRequires: pkgconfig(xorg-macros) >= 1.3
BuildRequires: pkgconfig(xorg-server) >= 1.0.99.901
BuildRequires: pkgconfig(xproto)
# This was part of the xorg-x11-driver-video package up to version 7.6
Conflicts: xorg-x11-driver-video <= 7.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExcludeArch: s390 s390x
%x11_abi_videodrv_req
%description
hwcomposer is an Xorg driver for virtual/offscreen frame buffer.
%prep
%autosetup -p1 -n xserver-xorg-video-hwcomposer-%{version}
#[ -f configure ] || ./autogen.sh --enable-drihybris --enable-glamor-hybris --libdir=%{_libdir}
%build
#export CPLUS_INCLUDE_PATH=/usr/include/android:/usr/include/hybris
#export C_INCLUDE_PATH=/usr/include/android:/usr/include/hybris
#configure
#make %{?_smp_mflags} CPPFLAGS+="-I/usr/include/android -DMESA_EGL_NO_X11_HEADERS"
%install
#%make_install
#find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
mkdir -p %{buildroot}%{_libdir}/xorg/modules/drivers
%{__install} -Dm0644 -t %{buildroot}%{_libdir}/xorg/modules/drivers/ %{SOURCE1}
%files
%defattr(-,root,root)
#%doc ChangeLog COPYING README
%dir %{_libdir}/xorg/modules/drivers
%{_libdir}/xorg/modules/drivers/hwcomposer_drv.so
%changelog