File dri3proto.spec of Package dri3proto

#
# spec file for package dri3proto
#
# 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:           dri3proto
Version:        1.2
Release:        0
Url:            http://xorg.freedesktop.org/
Summary:        The X11 Protocol: Direct Rendering Infrastructure 3 extension
License:        MIT
Group:          Development/Libraries/X11

#Git-Clone:	git://anongit.freedesktop.org/xorg/proto/dri3proto
#Git-Web:	http://cgit.freedesktop.org/xorg/proto/dri3proto/
Source:         http://xorg.freedesktop.org/releases/individual/proto/%name-1.0.tar.bz2
Patch0:         n_dri3proto-1.2-2018.4.patch
#BuildRequires:  autoconf >= 2.60
#BuildRequires:  automake
#BuildRequires:  pkgconfig(xorg-macros) >= 1.3
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The DRI3 protocol headers for X11 development.
The DRI3 extension provides mechanisms to translate between direct
rendered buffers and X pixmaps. When combined with the Present
extension, a complete direct rendering solution for OpenGL is
provided.

%package devel
Summary:        The X11 Protocol: Direct Rendering Infrastructure 3 extension
Group:          Development/Libraries/X11

# Added within the 13.2 Development Cycle
Provides:       xorg-x11-proto-devel:%_libdir/pkgconfig/dri3proto.pc

%description devel
The DRI3 protocol headers for X11 development.
The DRI3 extension provides mechanisms to translate between direct
rendered buffers and X pixmaps. When combined with the Present
extension, a complete direct rendering solution for OpenGL is
provided.

The direct rendered buffers are passed across the protocol via
standard POSIX file descriptor passing mechanisms. On Linux, these
buffers are DMA-BUF objects.

DRI3 also includes a mechanism to translate between Linux Futexes and
X Sync extension fences. This provides a synchronization mechanism
which can be used to serialize access to shared render buffers.

%prep
%setup -q -n dri3proto-1.0
%patch0 -p1

%build
#autoreconf -fi
%configure
make %{?_smp_mflags}

%install
make install DESTDIR="%buildroot"

%files devel
%defattr(-,root,root)
%doc %_datadir/doc/*
%_includedir/X11/extensions/
%_libdir/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by