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