libglvnd/libglvnd.spec

135 lines
4.2 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:56:15 -04:00
Name: libglvnd
2020-10-13 15:20:15 +08:00
Version: 1.3.2
Release: 2
2019-09-30 10:56:15 -04:00
Epoch: 1
Summary: The GL Vendor-Neutral Dispatch library
License: MIT
URL: https://github.com/NVIDIA/libglvnd
Source0: https://github.com/NVIDIA/libglvnd/archive/v%{version}/%{name}-%{version}.tar.gz
Patch6000: backport-0001-glx-Add-another-fallback-library-name.patch
2019-09-30 10:56:15 -04:00
BuildRequires: libtool xorg-x11-server-Xvfb pkgconfig(xext) pkgconfig(x11)
BuildRequires: gcc python3-rpm-macros python3-libxml2 pkgconfig(glproto)
Requires: mesa-libEGL%{?_isa} >= 13.0.4-1
Requires: mesa-libGL%{?_isa} >= 13.0.4-1
Provides: %{name}-egl %{name}-egl%{?_isa} %{name}-gles %{name}-gles%{?_isa} %{name}-glx
2020-01-14 21:36:08 +08:00
Obsoletes: %{name}-egl %{name}-gles %{name}-glx
2019-09-30 10:56:15 -04:00
Provides: %{name}-glx%{?_isa} %{name}-opengl %{name}-opengl%{?_isa} libGLES libGLES%{?_isa}
2020-01-14 21:36:08 +08:00
Obsoletes: %{name}-opengl libGLES
2020-01-14 21:43:37 +08:00
Provides: libEG libEGL libEGL%{?_isa} libGL libGL%{?_isa}
2020-01-14 21:36:08 +08:00
Obsoletes: libEG libEGL libGL
2020-10-13 15:20:15 +08:00
Obsoletes: mesa-libGLES < 19.3.0~rc1
Provides: mesa-libGLES
Provides: mesa-libGLES%{?_isa}
2019-09-30 10:56:15 -04:00
%description
libglvnd is a vendor-neutral dispatch layer for arbitrating OpenGL API calls between multiple vendors.
It allows multiple drivers from different vendors to coexist on the same filesystem, and determines
which vendor to dispatch each API call to at runtime.
%package devel
Summary: Development files for %{name}
2020-10-13 15:20:15 +08:00
Requires: %{name} = %{epoch}:%{version}-%{release}
2019-11-06 19:38:31 +08:00
Provides: libglvnd-core-devel = %{epoch}:%{version}-%{release}
Obsoletes: libglvnd-core-devel < %{epoch}:%{version}-%{release}
2020-10-13 15:20:15 +08:00
Requires: libX11-devel%{?_isa}
Obsoletes: mesa-libGLES-devel < %{epoch}:%{version}-%{release}
Provides: mesa-libGLES-devel = %{epoch}:%{version}-%{release}
Provides: mesa-libGLES-devel%{?_isa} = %{epoch}:%{version}-%{release}
Obsoletes: mesa-khr-devel < %{epoch}:%{version}-%{release}
Provides: mesa-khr-devel = %{epoch}:%{version}-%{release}
Provides: mesa-khr-devel%{?_isa} = %{epoch}:%{version}-%{release}
Provides: libGLES-devel = %{epoch}:%{version}-%{release}
Provides: libGLES-devel%{?_isa} = %{epoch}:%{version}-%{release}
2019-09-30 10:56:15 -04:00
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{name}-%{version} -p1
autoreconf -vif
%build
export PYTHON=%{__python3}
%configure --enable-asm --enable-tls
%make_build V=1
%install
%make_install
%delete_la
mkdir -p %{buildroot}%{_sysconfdir}/glvnd/egl_vendor.d/
mkdir -p %{buildroot}%{_datadir}/glvnd/egl_vendor.d/
mkdir -p %{buildroot}%{_sysconfdir}/egl/egl_external_platform.d/
mkdir -p %{buildroot}%{_datadir}/egl/egl_external_platform.d/
%check
export DO_X11_TESTS=1
xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || (cat `find . -name test-suite.log` ; exit 1)
%ldconfig_scriptlets
%files
%defattr(-,root,root)
%doc README.md
%{_libdir}/*.so.*
%dir %{_sysconfdir}/glvnd/egl_vendor.d/
%dir %{_sysconfdir}/egl/egl_external_platform.d/
%dir %{_datadir}/glvnd/egl_vendor.d/
%dir %{_datadir}/egl/egl_external_platform.d/
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
2020-01-14 16:49:15 +08:00
%{_libdir}/pkgconfig/libglvnd.pc
2020-01-14 16:36:56 +08:00
%{_includedir}/glvnd/*
2020-10-13 15:20:15 +08:00
%{_includedir}/*G*
%{_includedir}/KHR
%{_libdir}/pkgconfig/g*.pc
%{_libdir}/pkgconfig/*gl.pc
2019-09-30 10:56:15 -04:00
%changelog
* Tue Feb 22 2022 xingxing <xingxing9@h-partners.com> - 1:1.3.2-2
- fix coredump
2020-10-13 15:20:15 +08:00
* Tue Oct 13 2020 hanhui <hanhui15@huawei.com> - 1:1.3.2-1
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:upgrade to 1.3.2
2020-06-03 10:22:48 +08:00
* Wed Jun 03 2020 songnannan <songnannan2@huawei.com> - 1:1.2.0-4
- rebuild for mesa
2020-01-14 21:36:08 +08:00
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:1.2.0-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:delete the arch in obsoletes
2020-01-14 16:36:56 +08:00
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:1.2.0-2
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:optimization the spec
2020-01-10 16:50:19 +08:00
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:1.2.0-1
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:updtae to 1.2.0
2019-11-06 19:38:31 +08:00
* Tue Oct 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.1.0-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:change the provides of libglvnd-core-devel
2019-09-30 10:56:15 -04:00
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.1.0-3
- Package init