diff --git a/glesv2.pc b/glesv2.pc new file mode 100644 index 0000000..7af1555 --- /dev/null +++ b/glesv2.pc @@ -0,0 +1,10 @@ +prefix=/usr +libdir=${prefix}/lib64 +includedir=${prefix}/include + +Name: glesv2 +Description: Mesa OpenGL ES 2.0 library +Version: 19.1.0 +Libs: -L${libdir} -lGLESv2 +Libs.private: -lpthread -pthread -lm -ldl +Cflags: -I${includedir} diff --git a/mesa.spec b/mesa.spec index 3fd53c9..03aa961 100644 --- a/mesa.spec +++ b/mesa.spec @@ -50,7 +50,7 @@ Name: mesa Summary: Mesa graphics libraries %global ver 19.1.0-rc1 Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)} -Release: 3%{?dist} +Release: 4%{?dist} License: MIT URL: http://www.mesa3d.org @@ -60,6 +60,8 @@ Source0: https://mesa.freedesktop.org/archive/%{name}-%{ver}.tar.xz # Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD. Source1: Mesa-MLAA-License-Clarification-Email.txt +Source2: glesv2.pc + # sent upstream should be in rc2 Patch1: 0001-kmsro-add-_dri.so-to-two-of-the-kmsro-drivers.patch @@ -355,6 +357,8 @@ Headers for development with the Vulkan API. %autosetup -n %{name}-%{ver} -p1 cp %{SOURCE1} docs/ +cp %{SOURCE2} . + %build %meson -Dcpp_std=gnu++11 \ @@ -395,6 +399,8 @@ cp %{SOURCE1} docs/ %install %meson_install +install glesv2.pc %{buildroot}%{_libdir}/pkgconfig/ + # libvdpau opens the versioned name, don't bother including the unversioned rm -vf %{buildroot}%{_libdir}/vdpau/*.so # likewise glvnd @@ -469,6 +475,7 @@ popd %{_includedir}/GLES3/gl3ext.h %{_includedir}/GLES3/gl31.h %{_includedir}/GLES3/gl32.h +%{_libdir}/pkgconfig/glesv2.pc %ldconfig_scriptlets libglapi %files libglapi @@ -634,6 +641,9 @@ popd %endif %changelog +* Wed May 15 2019 Dave Airlie - 19.1.0~rc1-4 +- Bring back glesv2.pc for now + * Fri May 10 2019 Peter Robinson 19.1.0~rc1-3 - Enable panfrost