From ffb0ceb856ef2bdc288bed894077f9b3be0f3f5c15b65c764f4a87b244b8f729 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Mon, 27 Mar 2017 13:12:57 +0000 Subject: [PATCH] osc copypac from project:X11:XOrg:libglvnd package:libglvnd revision:5 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libglvnd?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + _service | 14 +++ _servicedata | 4 + baselibs.conf | 1 + libglvnd-0.1.1~20161222~dc16f8c.tar.gz | 3 + libglvnd.changes | 105 ++++++++++++++++++++ libglvnd.spec | 128 +++++++++++++++++++++++++ rpmlintrc | 5 + 9 files changed, 284 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 baselibs.conf create mode 100644 libglvnd-0.1.1~20161222~dc16f8c.tar.gz create mode 100644 libglvnd.changes create mode 100644 libglvnd.spec create mode 100644 rpmlintrc diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..302b55c --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://github.com/NVIDIA/libglvnd.git + git + 0.1.1~%cd~%h + enable + + + *.tar + gz + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..f4b3ad2 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/NVIDIA/libglvnd.git + 7067ba11c58f6f95a3b1bc1a3ebe342ce806fcde \ No newline at end of file diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..7577595 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libglvnd0 diff --git a/libglvnd-0.1.1~20161222~dc16f8c.tar.gz b/libglvnd-0.1.1~20161222~dc16f8c.tar.gz new file mode 100644 index 0000000..af5d557 --- /dev/null +++ b/libglvnd-0.1.1~20161222~dc16f8c.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62de70a03bd5c6399861e13e500be6d53e4c82f65b9a7dfbae8744a9eae8cd65 +size 824019 diff --git a/libglvnd.changes b/libglvnd.changes new file mode 100644 index 0000000..3f3bf2a --- /dev/null +++ b/libglvnd.changes @@ -0,0 +1,105 @@ +------------------------------------------------------------------- +Fri Jan 20 13:15:07 UTC 2017 - zaitor@opensuse.org + +- Update to version 0.1.1~20161222~dc16f8c: + * Update the README file. + * util: Add a local implementation of vsprintf(3). + * tests: Fix testpatchentrypoints. + * util: Add functions for splitting a string into tokens. + * Checked in the EGL headers. + * Checked in a copy of the cJSON library. + * EGL: Initial implementation of libEGL. + * EGL: Implement EGL_KHR_debug. + * GLdispatch: Remove an incorrect assert. + * util: Add trylock functions to glnvd_pthread. + * GLX: Fix a deadlock in teardown + * EGL: Rework the current rendering API. + * EGL: Fix a crash in __eglGetVendorFromDevice. + * EGL: Improve eglGetDisplay platform guessing. + * EGL: Check for some client extensions when loading the vendors. + * EGL: Check the version number in the JSON files. + * EGL: Trim the dispatch stub list. + * Change the package version to 0.1.999. + * GLX: Keep track of the displays passed to glXMakeCurrent. + * EGL: Fix a few errors in EGL_KHR_debug. + * EGL: Change __EGLapiImports to use (void *) for function + pointers. + * EGL: Add -Wno-misleading-indentation for cJSON. + * utils: Add cJSON.h to noinst_HEADERS. + * EGL: Change the vendor config search paths. + * EGL: Fix a couple of typos. + * Increment the package version to 0.2. + * Don't use 'xrange' because Python 3 doesn't have it. + * EGL: Fix an uninitialized variable. + * Factor out some common extension string functions. + * tests: Some minor cleanup + * tests: Rename GLX_dummy directory. + * tests: Move the entrypoint patching code into a helper library. + * tests: Add a more extensive test for entrypoint patching. + * GLX: Add an environment variable to specify a vendor for a + single screen. + * tests: Rewrite testglxgetprocaddress. + * tests: Add a test for generated GLX entrypoints. + * Change the assembly templates for ARMv7 to use uint16_t. + * Fix a crash in process termination when EGL and GLX are both + loaded. + * chmod -x files that aren't scripts + * GLdispatch: Don't call into the vendor from + __glDispatchForceUnpatch. + * EGL: Don't call into the vendor library from __eglFini. + * EGL: Better wayland detection in eglGetDisplay + * EGL: Add display detection for X11. + * EGL: Fix an unitialized variable in IsX11Display. + * tests: Skip testglxqueryversion if the server doesn't support + GLX. + * EGL: Fix the python command line. + * tests: Remove init_test_env.sh and fini_test_env.sh. + * tests: Add a basic test for eglGetPlatformDisplay. + * tests: Add a test for eglGetProcAddress. + * tests: Add a test for EGL device functions. + * tests: Add a test for eglMakeCurrent. + * tests: Add a test for eglGetError. + * tests: Add a test for EGL_KHR_debug. + * Add support for aarch64. + * GLdispatch: Fix the x86 TLS stubs. + * GLdispatch: Fix TEXTREL in the x86 TSD stubs. + * GLdispatch: Remove public_string_pool. + * GLdispatch: Remove _glapi_init_table_from_callback. + * GLdispatch: Remove the __GLdispatchProcEntry list. + * tests: Clean up tests makefile. + * Add configure options for the EGL, GLX, and GLES libraries. + * configure: Change the description for --disable-gles. + +------------------------------------------------------------------- +Fri Jan 20 12:35:16 UTC 2017 - zaitor@opensuse.org + +- Update to version 0.1.1: + * GLX: Some additional cleanup for the GLX dispatch table. + * Remove uneeded xorg-server dependency + * tests: Add more GLX functions to GLX_dummy. + * tests: Clean up the function arrays in GLX_dummy. + * tests: Implement glXCreateContextAttribsARB in GLX_dummy. + * tests: Expand the MakeCurrent tests to the GLXFBConfig-based + functions. + * tests: Merge the dummy and patchentry libraries. + * GLX: Fix a couple of errors. + * GLdispatch: Don't unpatch entrypoints in + __glDispatchLoseCurrent. +- Add _service and use it to update to current relase. +- Replace autoreconf for autogen.sh call ref info in README. + +------------------------------------------------------------------- +Tue Jul 12 11:56:23 UTC 2016 - sndirsch@suse.com + +- added Recommends to Mesa-libGL1/Mesa-libGL-devel + +------------------------------------------------------------------- +Fri Jun 3 09:20:28 UTC 2016 - sndirsch@suse.com + +- fixed build on 32bit with SUSE < 1330 + +------------------------------------------------------------------- +Thu Jun 2 15:43:46 UTC 2016 - sndirsch@suse.com + +- created libglvnd package + diff --git a/libglvnd.spec b/libglvnd.spec new file mode 100644 index 0000000..497467a --- /dev/null +++ b/libglvnd.spec @@ -0,0 +1,128 @@ +# +# spec file for package libglvnd +# +# Copyright (c) 2016 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: libglvnd +%define sonum 0 +Version: 0.1.1~20161222~dc16f8c +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: pkgconfig(x11) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(glproto) +BuildRequires: python3-base +BuildRequires: python-xml +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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 -n %{name}%{sonum} +Summary: The GL Vendor-Neutral Dispatch library +Group: Development/Libraries/C and C++ +Recommends: Mesa-libGL1 >= 12.0.0 + +%description -n %{name}%{sonum} +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 libepoxy +Group: Development/Libraries/C and C++ +Requires: %{name}%{sonum} = %{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. Development files. + +%prep +%setup -q -n %{name}-%{version} + +%build +./autogen.sh +%configure \ +%if 0%{?suse_version} < 1330 +--libdir=/usr/X11R6/%{_lib} \ +%endif +--disable-static + +make %{?_smp_mflags} + +%install +make install DESTDIR="%buildroot"; +> $RPM_BUILD_DIR/%name-%{version}/filelist.rpm +%if 0%{?suse_version} < 1330 +rm -f "%buildroot/usr/X11R6/%{_lib}"/*.la +mkdir -p %buildroot/%{_libdir}/pkgconfig +mv %buildroot/usr/X11R6/%{_lib}/pkgconfig/*.pc %buildroot/%{_libdir}/pkgconfig +rm -rf %buildroot/usr/X11R6/pkgconfig +if [ "%_libdir" == "/usr/lib64" ]; then + mkdir -p %buildroot/etc/ld.so.conf.d + cat > %buildroot/etc/ld.so.conf.d/%name.conf << EOF +/usr/X11R6/%{_lib} +/usr/X11R6/lib +EOF + echo "%config /etc/ld.so.conf.d/%name.conf" > $RPM_BUILD_DIR/%name-%{version}/filelist.rpm +fi +%else +rm -f "%buildroot/%{_libdir}"/*.la +%endif + +%post -n %{name}%{sonum} -p /sbin/ldconfig + +%postun -n %{name}%{sonum} -p /sbin/ldconfig + +%files -n %{name}%{sonum} -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) +%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 +%{_libdir}/pkgconfig/*.pc +%{_includedir}/glvnd/ + +%changelog diff --git a/rpmlintrc b/rpmlintrc new file mode 100644 index 0000000..b82d40a --- /dev/null +++ b/rpmlintrc @@ -0,0 +1,5 @@ +# This line is mandatory to access the configuration functions +from Config import * + +addFilter("libglvnd.*suse-filelist-forbidden-xorg") +