f2945d
%global commit0 5baa1e5cfc422eb53e66f12ffb80c93d4a693cd9
f2945d
%global shortcommit0 %%(c=%%{commit0}; echo ${c:0:7})
f2945d
f2945d
#if 0%{?rhel} && 0%{?rhel} <= 7
f2945d
#global _without_mesa_glvnd_default 1
f2945d
#endif
f2945d
f2945d
Name:           libglvnd
f2945d
Version:        1.0.1
f2945d
Release:        0.8%{?commit0:.git%{shortcommit0}}%{?dist}
f2945d
# Provide an upgrade path from the negativo17.org pkgs which have Epoch 1
f2945d
Epoch:          1
f2945d
Summary:        The GL Vendor-Neutral Dispatch library
f2945d
f2945d
License:        MIT
f2945d
URL:            https://github.com/NVIDIA/libglvnd
f2945d
#Source0:        %%{url}/archive/v%%{version}/%%{name}-%%{version}.tar.gz
f2945d
Source0:        %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
f2945d
Patch0:         libglvnd-python3.patch
f2945d
Patch1:         0001-glx-Add-another-fallback-library-name.patch
f2945d
f2945d
BuildRequires:  libtool
f2945d
BuildRequires:  gcc
f2945d
BuildRequires:  python
f2945d
BuildRequires:  libxml2-python
f2945d
BuildRequires:  pkgconfig(glproto)
f2945d
BuildRequires:  pkgconfig(x11)
f2945d
BuildRequires:  pkgconfig(xext)
f2945d
BuildRequires:  xorg-x11-server-Xvfb
f2945d
f2945d
%if (0%{?rhel} && 0%{?rhel} <= 6)
f2945d
BuildRequires:  autoconf268
f2945d
%endif
f2945d
f2945d
%{?_without_mesa_glvnd_default:
f2945d
%if (0%{?rhel} && 0%{?rhel} <= 6)
f2945d
f2945d
%{?filter_setup:
f2945d
%filter_provides_in %{_libdir}/%{name}
f2945d
%filter_requires_in %{_libdir}/%{name}
f2945d
%filter_setup
f2945d
}
f2945d
f2945d
%else
f2945d
f2945d
%global __provides_exclude_from %{_libdir}/%{name}
f2945d
%global __requires_exclude_from %{_libdir}/%{name}
f2945d
f2945d
%endif
f2945d
}
f2945d
f2945d
%description
f2945d
libglvnd is an implementation of the vendor-neutral dispatch layer for
f2945d
arbitrating OpenGL API calls between multiple vendors on a per-screen basis.
f2945d
f2945d
f2945d
%package        devel
f2945d
Summary:        Development files for %{name}
f2945d
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
Requires:       %{name}-opengl%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
Requires:       %{name}-gles%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
Requires:       %{name}-glx%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
Requires:       %{name}-egl%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
Requires:       %{name}-core-devel%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
f2945d
%description    devel
f2945d
The %{name}-devel package contains libraries and header files for
f2945d
developing applications that use %{name}.
f2945d
f2945d
f2945d
%package        core-devel
f2945d
Summary:        Core development files for %{name}
f2945d
f2945d
%description core-devel
f2945d
The %{name}-core-devel package is a bootstrap trick for Mesa, which wants
f2945d
to build against the %{name} headers but does not link against any of
f2945d
its libraries (and, initially, has file conflicts with them). If you are
f2945d
not Mesa you almost certainly want %{name}-devel instead.
f2945d
f2945d
f2945d
%package        opengl
f2945d
Summary:        OpenGL support for libglvnd
f2945d
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
f2945d
%description    opengl
f2945d
libOpenGL is the common dispatch interface for the workstation OpenGL API.
f2945d
f2945d
f2945d
%package        gles
f2945d
Summary:        GLES support for libglvnd
f2945d
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
%{!?_without_mesa_glvnd_default:
f2945d
# mesa is the default EGL implementation provider
f2945d
Requires:       mesa-libEGL%{?_isa} >= 13.0.4-1
f2945d
Provides:       libGLES
f2945d
Provides:       libGLES%{?_isa}
f2945d
}
f2945d
f2945d
%description    gles
f2945d
libGLESv[12] are the common dispatch interface for the GLES API.
f2945d
f2945d
f2945d
%package        egl
f2945d
Summary:        EGL support for libglvnd
f2945d
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
%{!?_without_mesa_glvnd_default:
f2945d
# mesa is the default EGL implementation provider
f2945d
Requires:       mesa-libEGL%{?_isa} >= 13.0.4-1
f2945d
Provides:       libEGL
f2945d
Provides:       libEGL%{?_isa}
f2945d
}
f2945d
f2945d
%description    egl
f2945d
libEGL are the common dispatch interface for the EGL API.
f2945d
f2945d
f2945d
%package        glx
f2945d
Summary:        GLX support for libglvnd
f2945d
Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release}
f2945d
%{!?_without_mesa_glvnd_default:
f2945d
# mesa is the default GL implementation provider
f2945d
Requires:       mesa-libGL%{?_isa} >= 13.0.4-1
f2945d
Provides:       libGL
f2945d
Provides:       libGL%{?_isa}
f2945d
}
f2945d
f2945d
%description    glx
f2945d
libGL and libGLX are the common dispatch interface for the GLX API.
f2945d
f2945d
f2945d
%prep
f2945d
%autosetup -p1 -n %{name}-%{?commit0}%{?!commit0:%{version}}
f2945d
%if 0%{?rhel} == 6
f2945d
autoreconf268 -vif
f2945d
%else
f2945d
autoreconf -vif
f2945d
%endif
f2945d
f2945d
%build
f2945d
#Prefer asm and tls for x86* and ppc64*
f2945d
#armhfp and aarch64 fallback to asm and tsd
f2945d
#Others arches fallback to pure-c and tls.
f2945d
%configure \
f2945d
  --disable-static \
f2945d
  --enable-asm \
f2945d
  --enable-tls
f2945d
f2945d
%make_build V=1
f2945d
f2945d
f2945d
%install
f2945d
%make_install INSTALL="install -p"
f2945d
find %{buildroot} -name '*.la' -delete
f2945d
f2945d
%{?_without_mesa_glvnd_default:
f2945d
# Avoid conflict with mesa-libGL
f2945d
mkdir -p %{buildroot}%{_libdir}/%{name}/
f2945d
for l in libEGL libGL libGLESv1_CM libGLESv2 libGLX; do
f2945d
  mv %{buildroot}%{_libdir}/${l}.so* \
f2945d
    %{buildroot}%{_libdir}/%{name}/
f2945d
done
f2945d
}
f2945d
f2945d
# Create directory layout
f2945d
mkdir -p %{buildroot}%{_sysconfdir}/glvnd/egl_vendor.d/
f2945d
mkdir -p %{buildroot}%{_datadir}/glvnd/egl_vendor.d/
f2945d
mkdir -p %{buildroot}%{_sysconfdir}/egl/egl_external_platform.d/
f2945d
mkdir -p %{buildroot}%{_datadir}/egl/egl_external_platform.d/
f2945d
f2945d
f2945d
%check
f2945d
export DO_X11_TESTS=1
f2945d
xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || \
f2945d
%ifarch s390 s390x ppc ppc64 ppc64le
f2945d
    :
f2945d
%else
f2945d
    (cat `find . -name test-suite.log` ; exit 1)
f2945d
%endif
f2945d
f2945d
f2945d
%post -p /sbin/ldconfig
f2945d
%postun -p /sbin/ldconfig
f2945d
%files
f2945d
%doc README.md
f2945d
%dir %{_sysconfdir}/glvnd/
f2945d
%dir %{_datadir}/glvnd/
f2945d
%{_libdir}/libGLdispatch.so.0*
f2945d
f2945d
%post opengl -p /sbin/ldconfig
f2945d
%postun opengl -p /sbin/ldconfig
f2945d
%files opengl
f2945d
%{_libdir}/libOpenGL.so.0*
f2945d
f2945d
%post gles -p /sbin/ldconfig
f2945d
%postun gles -p /sbin/ldconfig
f2945d
%files gles
f2945d
%if 0%{?_without_mesa_glvnd_default}
f2945d
%{_libdir}/%{name}/libGLES*.so.*
f2945d
%else
f2945d
%{_libdir}/libGLES*.so.*
f2945d
%endif
f2945d
f2945d
%post glx -p /sbin/ldconfig
f2945d
%postun glx -p /sbin/ldconfig
f2945d
%files glx
f2945d
%if 0%{?_without_mesa_glvnd_default}
f2945d
%{_libdir}/%{name}/libGL.so.*
f2945d
%{_libdir}/%{name}/libGLX.so.*
f2945d
%else
f2945d
%{_libdir}/libGL.so.*
f2945d
%{_libdir}/libGLX.so.*
f2945d
%endif
f2945d
f2945d
%post egl -p /sbin/ldconfig
f2945d
%postun egl -p /sbin/ldconfig
f2945d
%files egl
f2945d
%dir %{_sysconfdir}/glvnd/egl_vendor.d/
f2945d
%dir %{_datadir}/glvnd/egl_vendor.d/
f2945d
%dir %{_sysconfdir}/egl/
f2945d
%dir %{_sysconfdir}/egl/egl_external_platform.d/
f2945d
%dir %{_datadir}/egl/
f2945d
%dir %{_datadir}/egl/egl_external_platform.d/
f2945d
%if 0%{?_without_mesa_glvnd_default}
f2945d
%{_libdir}/%{name}/libEGL*.so.*
f2945d
%else
f2945d
%{_libdir}/libEGL*.so.*
f2945d
%endif
f2945d
f2945d
%files core-devel
f2945d
%dir %{_includedir}/glvnd/
f2945d
%{_includedir}/glvnd/*.h
f2945d
%{_libdir}/pkgconfig/*.pc
f2945d
f2945d
%files devel
f2945d
%{_libdir}/lib*.so
f2945d
%if 0%{?_without_mesa_glvnd_default}
f2945d
%{_libdir}/%{name}/lib*.so
f2945d
%endif
f2945d
f2945d
f2945d
%changelog
f2945d
* Tue Jul 24 2018 Dave Airlie <airlied@redhat.com> - 1.0.1-0.8.git5baa1e5
f2945d
- rename fallback from fedora to system
f2945d
f2945d
* Thu Jun 14 2018 Adam Jackson <ajax@redhat.com> - 1.0.1-0.7.git5baa1e5
f2945d
- Add another fallback GLX library name
f2945d
f2945d
* Thu Apr 26 2018 Adam Jackson <ajax@redhat.com> - 1.0.1-0.6.git5baa1e5
f2945d
- Enable %%check for all but ppc64 and s390x, which has known but low-impact
f2945d
  failures
f2945d
- Simplify %%release
f2945d
f2945d
* Wed Apr 18 2018 Adam Jackson <ajax@redhat.com> - 1.0.1-0.5.20180327git5baa1e5
f2945d
- Go back to Requires: mesa-*, the fallout is too great (#1568881 etc)
f2945d
f2945d
* Fri Apr 13 2018 Leigh Scott <leigh123linux@googlemail.com> - 1:1.0.1-0.4.20180327git5baa1e5
f2945d
- Update snapshot to 20180327
f2945d
f2945d
* Thu Mar 15 2018 Adam Jackson <ajax@redhat.com> - 1.0.1-0.3.20180226gitb029c24
f2945d
- Use Recommends: mesa-* not Requires.
f2945d
- (Trivially) switch the build to python3
f2945d
f2945d
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:1.0.1-0.2.20180226gitb029c24
f2945d
- Update Python 2 dependency declarations to new packaging standards
f2945d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
f2945d
f2945d
* Wed Feb 28 2018 Leigh Scott <leigh123linux@googlemail.com> - 1:1.0.1-0.1.20180226gitb029c24
f2945d
- Update snapshot to 20180226
f2945d
- Update scriptlets
f2945d
f2945d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.0-2
f2945d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f2945d
f2945d
* Thu Nov 09 2017 Leigh Scott <leigh123linux@googlemail.com> - 1:1.0.0-1
f2945d
- Update to 1.0.0 release
f2945d
f2945d
* Wed Aug 23 2017 Nicolas Chauvet <kwizart@gmail.com> - 1:0.2.999-24.20170818git8d4d03f
f2945d
- Update snapshot to 20170818
f2945d
f2945d
* Mon Aug 14 2017 Ville Skyttä <ville.skytta@iki.fi> - 1:0.2.999-23.20170620gitd850cdd
f2945d
- Own %%{_sysconfdir}/egl and %%{_datadir}/egl dirs
f2945d
f2945d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.2.999-22.20170620gitd850cdd
f2945d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f2945d
f2945d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.2.999-21.20170620gitd850cdd
f2945d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f2945d
f2945d
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:0.2.999-20.20170620gitd850cdd
f2945d
- Rebuild due to bug in RPM (RHBZ #1468476)
f2945d
f2945d
* Thu Jul 06 2017 Nicolas Chauvet <kwizart@gmail.com> - 1:0.2.999-19.20170620gitd850cdd
f2945d
- Update snapshot to 20170620
f2945d
f2945d
* Tue Jun 13 2017 Nicolas Chauvet <kwizart@gmail.com> - 1:0.2.999-18.20170607git80d9a87
f2945d
- Update snapshot to 20170607
f2945d
- Default to asm and tls when available
f2945d
- Use the fixed tsd for armhfp and aarch64
f2945d
  fixed in https://github.com/NVIDIA/libglvnd/issues/116
f2945d
f2945d
* Tue Apr 04 2017 Björn Esser <besser82@fedoraproject.org> - 1:0.2.999-17.20170308git8e6e102
f2945d
- Add conditional to disable testsuite, when needed
f2945d
f2945d
* Tue Apr 04 2017 Björn Esser <besser82@fedoraproject.org> - 1:0.2.999-16.20170308git8e6e102
f2945d
- Rebuilt with testsuite again
f2945d
f2945d
* Tue Apr 04 2017 Björn Esser <besser82@fedoraproject.org> - 1:0.2.999-15.20170308git8e6e102
f2945d
- Rebuilt without testssuite
f2945d
f2945d
* Tue Apr 04 2017 Björn Esser <besser82@fedoraproject.org> - 1:0.2.999-14.20170308git8e6e102
f2945d
- Fix conditionals for _without_mesa_glvnd_default
f2945d
- Fix other RHEL-conditionals, too
f2945d
f2945d
* Tue Apr 04 2017 Simone Caronni <negativo17@gmail.com> - 1:0.2.999-13.20170308git8e6e102
f2945d
- Update RPM filters for private libraries (includes GLX, fixes RHEL 6).
f2945d
f2945d
* Mon Apr 03 2017 Simone Caronni <negativo17@gmail.com> - 1:0.2.999-12.20170308git8e6e102
f2945d
- Update to latest snapshot, remove upstreamed patches.
f2945d
- Update release to packaging guidelines format.
f2945d
- Make sure that for Fedora 24 and RHEL the libraries are always private.
f2945d
f2945d
* Thu Feb 23 2017 Nicolas Chauvet <kwizart@gmail.com> - 1:0.2.999-11.gitdc16f8c
f2945d
- asm enabled only for x86 - rhbz#1419944
f2945d
f2945d
* Mon Feb  6 2017 Hans de Goede <hdegoede@redhat.com> - 1:0.2.999-10.gitdc16f8c
f2945d
- Drop 0007-GLX-Add-GLX_SGIX_fbconfig-functions.patch the bug this works
f2945d
  around actually is in mesa
f2945d
f2945d
* Thu Feb  2 2017 Hans de Goede <hdegoede@redhat.com> - 1:0.2.999-9.gitdc16f8c
f2945d
- Add eglexternalplatform spec. config dirs to -egl subpackage (rhbz#1415143)
f2945d
f2945d
* Thu Feb  2 2017 Hans de Goede <hdegoede@redhat.com> - 1:0.2.999-8.gitdc16f8c
f2945d
- Fix GLX_SGIX_fbconfig extension, this fixes games such as "The Binding of
f2945d
  Isaac: Rebirth" and "Crypt of the NecroDancer" from Steam not working
f2945d
f2945d
* Wed Jan 11 2017 Hans de Goede <hdegoede@redhat.com> - 1:0.2.999-7.gitdc16f8c
f2945d
- Epoch:1 to provide upgrade path from negativo17.org rpms
f2945d
- New snapshot
f2945d
- Add patches to fix building on ARM (from Rob Clark)
f2945d
- Add BuildRequires: python
f2945d
- Add ldconfig scriptlets for library sub-packages
f2945d
f2945d
* Wed Jan 11 2017 Adam Jackson <ajax@redhat.com>
f2945d
- Don't hide libraries in a subdir (rhbz#1413579)
f2945d
- Split up libraries to appropriate subpackages
f2945d
- Make the req/prov filter catch more cases
f2945d
- Restore libGLESv1 for ABI compliance
f2945d
f2945d
* Wed Oct 26 2016 Leigh Scott <leigh123linux@googlemail.com> - 0.2.999-6.git28867bb
f2945d
- Update snapshot
f2945d
- Fix EGL crash for KDE/Plasma (rfbz#4303)
f2945d
f2945d
* Tue Oct 25 2016 Leigh Scott <leigh123linux@googlemail.com> - 0.2.999-5.git295e5e5
f2945d
- Fix EGL crash (rfbz#4303)
f2945d
f2945d
* Fri Oct 14 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.2.999-4.git295e5e5
f2945d
- Update snapshot
f2945d
f2945d
* Wed Oct 12 2016 Adam Jackson <ajax@redhat.com> - 0.2.999-3.git14f6283
f2945d
- Restore hardened build
f2945d
- Remove ExclusiveArch
f2945d
- Remove some pointless Provides/Obsoletes
f2945d
- BuildRequires pkgconfig(xext) not pkgconfig(xv)
f2945d
- Update description to be a bit more confident
f2945d
- Dump make check errors into the build log
f2945d
f2945d
* Wed Oct 05 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.2.999-2.git14f6283
f2945d
- Add the correct License: MIT
f2945d
f2945d
* Thu Sep 15 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.2.999-1.git14f6283
f2945d
- Update to 2.999 version
f2945d
- Add EGL
f2945d
f2945d
* Fri Sep 02 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.1-2.gitf7fbc4b
f2945d
- Update license
f2945d
- Fix Obsoletes/Provides to avoid self obsolete
f2945d
f2945d
* Tue Aug 30 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.1-1.gitf7fbc4b
f2945d
- Update to 1.1.gitf7fbc4b
f2945d
f2945d
* Tue Jun 14 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.0-4.git093f048
f2945d
- Update to 20160610 git commit
f2945d
f2945d
* Fri May 20 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.0-3.gita82982d
f2945d
- Update to current snapshot
f2945d
f2945d
* Fri May 13 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.0-2.git509de0d
f2945d
- Update to current snapshot
f2945d
- Remove unused dt-auxiliary
f2945d
- Add support for graphical make test
f2945d
- Undefine hardened build for xorg
f2945d
f2945d
* Wed May 04 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.1.0-1.git8277115
f2945d
- Update to lastest snapshot
f2945d
f2945d
* Thu Feb 18 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-9.git4d977ea
f2945d
- Remove patch to enable by default
f2945d
f2945d
* Wed Feb 17 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-8git20160217
f2945d
- Update to git20160217
f2945d
- Introduce --with mesa-libglvnd-default build conditional
f2945d
- Avoid error on make check - testglxqueryversion.sh stil fails in mock
f2945d
- Filter on provided libGL until glvnd support is in upstream mesa
f2945d
- Use upstream tarball and use autoreconf
f2945d
f2945d
* Fri Jan 15 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-7git20160115
f2945d
- Bump for 20160115
f2945d
- Enable make check
f2945d
- Description improvements
f2945d
- Enable libglvnd by default
f2945d
- Enable devel sub-package
f2945d
f2945d
* Wed Jan 06 2016 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-6git20160106
f2945d
- Update to 20160106 snapshot
f2945d
- Remove 10-x11glvnd
f2945d
f2945d
* Sat Nov 21 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-5git20151121
f2945d
- Update to 20151121 snapshot
f2945d
- Avoid conflicts with mesa-libGL{,ES}
f2945d
- Disable libGLESv1_CM
f2945d
f2945d
* Tue Nov 10 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-4git20151110
f2945d
- Update to today snapshot
f2945d
- Fix license
f2945d
f2945d
* Tue Sep 01 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-3git20150901
f2945d
- Update to snapshot 20150901
f2945d
f2945d
* Fri Aug 07 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-2
f2945d
- Update to today snapshoot
f2945d
f2945d
* Fri Feb  6 2015 Nicolas Chauvet <kwizart@gmail.com> - 0.0.0-1
f2945d
- Initial spec file