* Changes + Update the OpenGL XML and header files. + EGL: Remove a few unused functions in egldispatchstubs.c. + GLdispatch: Add a version script for the TSD build. + Some fixes for "make dist" + GLdispatch: Use --version-script instead -export-symbols. + Merge branch 'freebsd-fixes' + Add a (void*) cast for the last parameter when calling mincore. + Use sh instead of bash for the test scripts. + configure: Recognize both "x86_64" and "amd64" for host_cpu. + configure: Check if linking against libdl is necessary. + GL: Expand glapi_gen_libglglxstubs in the makefile. + Move the glapi_gen_libglglxstubs function into the GL makefile. + vnd-glapi: Change glapi_gen_mapi to a makefile variable. + Move the glapi_gen_mapi function into the vnd-glapi makefile. + generate: Remove glapi_gen_libopengl_exports. + GL: Don't generate g_glapi_mapi_gl_tmp.h + Merge pull request #150 from aaronp24/work-around-xorgproto-api-break + Merge pull request #153 from RAOF/fix-egl-platform-detection-crash + Handle dlsym succeeding with info.dli_sname == NULL. + Merge pull request #152 from kbrenneman/fix-eglMakeCurrent-bad-display + Always return an error from eglMakeCurrent if the EGLDispaly is invalid + GLX: Work around 'X_GLXCreateContextAtrribsARB' typo fix API break + Merge pull request #148 from kbrenneman/bump-library-versions + Bump the version numbers in the library filenames. + Merge pull request #143 from kbrenneman/gldispatch-fix-execmem + GLdispatch: Fix the allocation size for the dynamic stubs. + GLdispatch: Remove obsolete #ifdefs from u_execmem.c. + Merge pull request #140 from kbrenneman/add-GLX_EXT_no_config_context + tests: Only use glXCreateContext in testglxmakecurrent. + tests: Add a test for creating GLX contexts. + tests/GLX_dummy: Add a vendor-provided create context function + tests: Add a dummy attribute for glXQueryContext. + tests: Add support for GLX_EXT_no_context_config to GLX_dummy + tests: Remove the vendor dispatch stub for glXCreateContextAttribsARB. + Add support for GLX_EXT_no_config_context. OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libglvnd?expand=0&rev=23
121 lines
3.3 KiB
RPMSpec
121 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package libglvnd
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: libglvnd
|
|
Version: 1.1.0
|
|
Release: 0
|
|
Summary: The GL Vendor-Neutral Dispatch library
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://github.com/NVIDIA/libglvnd
|
|
# Source is _service generated
|
|
Source: %name-%version.tar.gz
|
|
Source1: baselibs.conf
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-base
|
|
BuildRequires: python3-xml
|
|
BuildRequires: pkgconfig(glproto)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xext)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Provides: libglvnd0 = %version-%release
|
|
Obsoletes: libglvnd0 <= %version-%release
|
|
|
|
%description
|
|
Vendor-neutral dispatch layer for arbitrating OpenGL API calls between
|
|
multiple vendors on a per-screen basis, as described by Andy Ritger's
|
|
OpenGL ABI proposal.
|
|
|
|
%package devel
|
|
Summary: Development files for libglvnd
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %name = %version
|
|
Recommends: Mesa-libGL-devel >= 12.0.0
|
|
|
|
%description devel
|
|
Vendor-neutral dispatch layer for arbitrating OpenGL API calls between
|
|
multiple vendors on a per-screen basis, as described by Andy Ritger's
|
|
OpenGL ABI proposal. This package contains the required files for
|
|
development.
|
|
|
|
%prep
|
|
%setup -q
|
|
# fix env shebang to call py3 directly
|
|
sed -i -e "1s|#!.*|#!/usr/bin/python3|" src/generate/*.py
|
|
|
|
%build
|
|
./autogen.sh
|
|
%configure \
|
|
%if 0%{?suse_version} < 1330
|
|
--libdir=/usr/X11R6/%_lib \
|
|
%endif
|
|
--disable-static \
|
|
--disable-silent-rules
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find "%buildroot" -type f -name "*.la" -delete
|
|
>%_builddir/%name-%version/filelist.rpm
|
|
%if 0%{?suse_version} < 1330
|
|
mkdir -p %buildroot/%_libdir/pkgconfig
|
|
mv %buildroot/usr/X11R6/%_lib/pkgconfig/*.pc %buildroot/%_libdir/pkgconfig
|
|
if [ "%_lib" == "lib64" ]; then
|
|
mkdir -p %buildroot/%_sysconfdir/ld.so.conf.d
|
|
cat > %buildroot/%_sysconfdir/ld.so.conf.d/%name.conf << EOF
|
|
/usr/X11R6/%_lib
|
|
/usr/X11R6/lib
|
|
EOF
|
|
echo "%config %_sysconfdir/ld.so.conf.d/%name.conf" >%_builddir/%name-%version/filelist.rpm
|
|
fi
|
|
%endif
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files -f filelist.rpm
|
|
%defattr(-,root,root)
|
|
%doc README.md
|
|
%if 0%{?suse_version} < 1330
|
|
%dir /usr/X11R6
|
|
%dir /usr/X11R6/%_lib
|
|
/usr/X11R6/%_lib/lib*.so.*
|
|
%else
|
|
%_libdir/lib*.so.*
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%if 0%{?suse_version} < 1330
|
|
%dir /usr/X11R6
|
|
%dir /usr/X11R6/%_lib
|
|
/usr/X11R6/%_lib/lib*.so
|
|
%else
|
|
%_libdir/lib*.so
|
|
%endif
|
|
%_libdir/pkgconfig/*.pc
|
|
%_includedir/glvnd/
|
|
|
|
%changelog
|