!12 split opengl core-devel subpackages from devel package
From: @kerongw Reviewed-by: @yanan-rock Signed-off-by: @yanan-rock
This commit is contained in:
commit
571a3b7b8d
@ -1,6 +1,6 @@
|
|||||||
Name: libglvnd
|
Name: libglvnd
|
||||||
Version: 1.3.2
|
Version: 1.3.2
|
||||||
Release: 2
|
Release: 3
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: The GL Vendor-Neutral Dispatch library
|
Summary: The GL Vendor-Neutral Dispatch library
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -47,6 +47,22 @@ Provides: libGLES-devel%{?_isa} = %{epoch}:%{version}-%{release}
|
|||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%package core-devel
|
||||||
|
Summary: Core development files for %{name}
|
||||||
|
|
||||||
|
%description core-devel
|
||||||
|
The %{name}-core-devel package is a bootstrap trick for Mesa, which wants
|
||||||
|
to build against the %{name} headers but does not link against any of
|
||||||
|
its libraries (and, initially, has file conflicts with them). If you are
|
||||||
|
not Mesa you almost certainly want %{name}-devel instead.
|
||||||
|
|
||||||
|
%package opengl
|
||||||
|
Summary: OpenGL support for libglvnd
|
||||||
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
%description opengl
|
||||||
|
libOpenGL is the common dispatch interface for the workstation OpenGL API.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
@ -59,7 +75,7 @@ export PYTHON=%{__python3}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
%delete_la
|
%delete_la
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/glvnd/egl_vendor.d/
|
mkdir -p %{buildroot}%{_sysconfdir}/glvnd/egl_vendor.d/
|
||||||
mkdir -p %{buildroot}%{_datadir}/glvnd/egl_vendor.d/
|
mkdir -p %{buildroot}%{_datadir}/glvnd/egl_vendor.d/
|
||||||
@ -75,16 +91,30 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || (cat `find . -name test-
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/libGLdispatch.so.0*
|
||||||
|
%{_libdir}/libGLES*.so.*
|
||||||
|
%{_libdir}/libGL.so.*
|
||||||
|
%{_libdir}/libGLX.so.*
|
||||||
|
%{_libdir}/libEGL*.so.*
|
||||||
|
|
||||||
%dir %{_sysconfdir}/glvnd/egl_vendor.d/
|
%dir %{_sysconfdir}/glvnd/egl_vendor.d/
|
||||||
%dir %{_sysconfdir}/egl/egl_external_platform.d/
|
%dir %{_sysconfdir}/egl/egl_external_platform.d/
|
||||||
%dir %{_datadir}/glvnd/egl_vendor.d/
|
%dir %{_datadir}/glvnd/egl_vendor.d/
|
||||||
%dir %{_datadir}/egl/egl_external_platform.d/
|
%dir %{_datadir}/egl/egl_external_platform.d/
|
||||||
|
|
||||||
|
%ldconfig_scriptlets opengl
|
||||||
|
%files opengl
|
||||||
|
%{_libdir}/libOpenGL.so.0*
|
||||||
|
|
||||||
|
|
||||||
|
%files core-devel
|
||||||
|
%dir %{_includedir}/glvnd/
|
||||||
|
%{_includedir}/glvnd/*.h
|
||||||
|
%{_libdir}/pkgconfig/libglvnd.pc
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
%{_libdir}/pkgconfig/libglvnd.pc
|
|
||||||
%{_includedir}/glvnd/*
|
%{_includedir}/glvnd/*
|
||||||
%{_includedir}/*G*
|
%{_includedir}/*G*
|
||||||
%{_includedir}/KHR
|
%{_includedir}/KHR
|
||||||
@ -92,6 +122,9 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || (cat `find . -name test-
|
|||||||
%{_libdir}/pkgconfig/*gl.pc
|
%{_libdir}/pkgconfig/*gl.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 13 2021 wangkerong <wangkerong@huawei.com> - 1:1.3.2-3
|
||||||
|
- split opengl core-devel subpackages from devel package
|
||||||
|
|
||||||
* Mon Aug 03 2020 orange-snn <songnannan2@huawei.cpm> - 1:1.3.2-2
|
* Mon Aug 03 2020 orange-snn <songnannan2@huawei.cpm> - 1:1.3.2-2
|
||||||
- add mesa-libGLES-devel and mesa-khr-devel in provides
|
- add mesa-libGLES-devel and mesa-khr-devel in provides
|
||||||
|
|
||||||
@ -126,4 +159,4 @@ xvfb-run -s '-screen 0 640x480x24' -d make check V=1 || (cat `find . -name test-
|
|||||||
- DESC:change the provides of libglvnd-core-devel
|
- DESC:change the provides of libglvnd-core-devel
|
||||||
|
|
||||||
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.1.0-3
|
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:1.1.0-3
|
||||||
- Package init
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user