[9108] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: A library for handling OpenGL function pointer management |
---|
| 4 | Name: libepoxy |
---|
[12396] | 5 | Version: 1.5.4 |
---|
[12451] | 6 | Release: 2%{?_dist_release} |
---|
| 7 | Group: system |
---|
[12396] | 8 | Vendor: Project Vine |
---|
| 9 | Distribution: Vine Linux |
---|
| 10 | |
---|
[9108] | 11 | License: MIT |
---|
| 12 | URL: https://github.com/anholt/libepoxy |
---|
[12396] | 13 | Source0: https://github.com/anholt/libepoxy/releases/download/%{version}/%{name}-%{version}.tar.xz |
---|
[9108] | 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 16 | |
---|
[12396] | 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 |
---|
[9108] | 26 | |
---|
| 27 | %description |
---|
| 28 | Epoxy is a library for handling OpenGL function pointer management for you. |
---|
| 29 | |
---|
[12396] | 30 | |
---|
[9108] | 31 | %package devel |
---|
| 32 | Summary: Development tools for %{name} |
---|
| 33 | Summary(ja): %{name} の開発環境 |
---|
[12451] | 34 | Group: programming |
---|
[9108] | 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 | |
---|
[12396] | 41 | |
---|
[9108] | 42 | # compat32 |
---|
| 43 | %package -n compat32-%{name} |
---|
| 44 | Summary: A library for handling OpenGL function pointer management |
---|
[12451] | 45 | Group: system |
---|
[9108] | 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 | |
---|
[12396] | 51 | |
---|
[9108] | 52 | %package -n compat32-%{name}-devel |
---|
| 53 | Summary: Development tools for compat32-%{name} |
---|
| 54 | Summary(ja): compat32-%{name} の開発環境 |
---|
[12451] | 55 | Group: programming |
---|
[9108] | 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 | |
---|
[12396] | 62 | |
---|
[9108] | 63 | %prep |
---|
| 64 | %setup -q |
---|
| 65 | |
---|
[12396] | 66 | |
---|
[9108] | 67 | %build |
---|
[12451] | 68 | %meson -Degl=yes |
---|
[12396] | 69 | %meson_build |
---|
[9108] | 70 | |
---|
[12396] | 71 | |
---|
[9108] | 72 | %install |
---|
| 73 | rm -rf $RPM_BUILD_ROOT |
---|
[12396] | 74 | %meson_install |
---|
[9108] | 75 | |
---|
| 76 | |
---|
| 77 | %clean |
---|
| 78 | rm -rf $RPM_BUILD_ROOT |
---|
| 79 | |
---|
[12396] | 80 | %if 0 |
---|
[9108] | 81 | %check |
---|
[12396] | 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 |
---|
[9108] | 87 | |
---|
[12396] | 88 | |
---|
[9108] | 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,-) |
---|
[12396] | 97 | %license COPYING |
---|
[9108] | 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 |
---|
[12451] | 119 | * Fri Aug 07 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-2 |
---|
| 120 | - enabled egl. |
---|
| 121 | |
---|
[12396] | 122 | * Tue May 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.4-1 |
---|
| 123 | - new upstream release. |
---|
| 124 | |
---|
[9791] | 125 | * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.1-1 |
---|
| 126 | - new upstream release |
---|
| 127 | |
---|
[9108] | 128 | * Sat Nov 22 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2-1 |
---|
| 129 | - initial build |
---|
| 130 | |
---|