libepoxy-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library for handling OpenGL function pointer management
  3. Name: libepoxy
  4. Version: 1.5.4
  5. Release: 2%{?_dist_release}
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: MIT
  10. URL: https://github.com/anholt/libepoxy
  11. Source0: https://github.com/anholt/libepoxy/releases/download/%{version}/%{name}-%{version}.tar.xz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13. BuildRequires: meson
  14. BuildRequires: gcc
  15. BuildRequires: pkgconfig(gl)
  16. BuildRequires: pkgconfig(egl)
  17. BuildRequires: libGL-devel
  18. BuildRequires: libX11-devel
  19. BuildRequires: pkgconfig(glesv2)
  20. BuildRequires: python3
  21. BuildRequires: xorg-x11-server-Xvfb mesa-dri-drivers xorg-x11-xauth
  22. %description
  23. Epoxy is a library for handling OpenGL function pointer management for you.
  24. %package devel
  25. Summary: Development tools for %{name}
  26. Summary(ja): %{name} の開発環境
  27. Group: programming
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: pkgconfig
  30. %description devel
  31. Header files and libraries for building a extension library for the %{name}.
  32. # compat32
  33. %package -n compat32-%{name}
  34. Summary: A library for handling OpenGL function pointer management
  35. Group: system
  36. Requires: %{name} = %{version}-%{release}
  37. %description -n compat32-%{name}
  38. Epoxy is a library for handling OpenGL function pointer management for you.
  39. %package -n compat32-%{name}-devel
  40. Summary: Development tools for compat32-%{name}
  41. Summary(ja): compat32-%{name} の開発環境
  42. Group: programming
  43. Requires: compat32-%{name} = %{version}-%{release}
  44. Requires: %{name}-devel = %{version}-%{release}
  45. %description -n compat32-%{name}-devel
  46. Header files and libraries for building a extension library for the compat32-%{name}.
  47. %prep
  48. %setup -q
  49. %build
  50. %meson -Degl=yes
  51. %meson_build
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. %meson_install
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %if 0
  58. %check
  59. # this should be %%meson_test but the macro expands with a bajillion
  60. # embedded newlines for no obvious reason
  61. xvfb-run -d -s "-screen 0 640x480x24" ninja -C %{_vpath_builddir} test || \
  62. (cat %{_vpath_builddir}/meson-logs/testlog.txt ; exit 1)
  63. %endif
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %post -n compat32-%{name} -p /sbin/ldconfig
  67. %postun -n compat32-%{name} -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root,-)
  70. %license COPYING
  71. %doc README.md
  72. %{_libdir}/libepoxy.so.*
  73. %files devel
  74. %defattr(-,root,root,-)
  75. %{_includedir}/epoxy
  76. %{_libdir}/libepoxy.so
  77. %{_libdir}/pkgconfig/epoxy.pc
  78. # compat32
  79. %if %{build_compat32}
  80. %files -n compat32-%{name}
  81. %defattr(-,root,root,-)
  82. %{_libdir}/libepoxy.so.*
  83. %files -n compat32-%{name}-devel
  84. %defattr(-,root,root,-)
  85. %{_libdir}/libepoxy.so
  86. %endif
  87. %changelog
  88. * Fri Aug 07 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-2
  89. - enabled egl.
  90. * Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-1
  91. - new upstream release.
  92. * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.1-1
  93. - new upstream release
  94. * Sat Nov 22 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2-1
  95. - initial build