libepoxy/libepoxy.spec

97 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:55:52 -04:00
Name: libepoxy
2023-02-02 11:09:20 +00:00
Version: 1.5.10
2024-08-01 11:14:50 +00:00
Release: 3
2019-09-30 10:55:52 -04:00
Summary: library work with epoxy runtime
License: MIT
URL: https://github.com/anholt/%{name}
2023-02-02 11:09:20 +00:00
Source0: https://download.gnome.org/sources/%name/1.5/%{name}-%{version}.tar.xz
Patch0001: add-GLIBC_2.27-to-test-versions-for-riscv.patch
2019-09-30 10:55:52 -04:00
2020-06-12 18:14:10 +08:00
BuildRequires: meson gcc libGL-devel libEGL-devel libX11-devel
2019-09-30 10:55:52 -04:00
BuildRequires: python3 xorg-x11-server-Xvfb mesa-dri-drivers
2021-12-01 16:50:48 +08:00
BuildRequires: pkgconfig(glesv2) pkgconfig(gl) pkgconfig(egl)
2019-09-30 10:55:52 -04:00
%description
A library for handling OpenGL function pointer management.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
%{name}-devel contains the header files for developing
applications that want to make use of %{name}.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
2024-08-01 11:14:50 +00:00
%if 0%{?build_cross} == 1
%meson -Degl=no -Dtests=false
%else
2019-09-30 10:55:52 -04:00
%meson
2024-08-01 11:14:50 +00:00
%endif
2019-09-30 10:55:52 -04:00
%meson_build
%install
%meson_install
%check
2023-01-31 11:20:00 +08:00
%ifarch loongarch64
%meson_test
%else
2019-09-30 10:55:52 -04:00
xvfb-run -d -s "-screen 0 640x480x24" ninja -C %{_vpath_builddir} test || \
(cat %{_vpath_builddir}/meson-logs/testlog.txt ; exit 1)
2023-01-31 11:20:00 +08:00
%endif
2019-09-30 10:55:52 -04:00
%files
%defattr(-,root,root)
%license COPYING
%{_libdir}/%{name}.so.0*
%files devel
%defattr(-,root,root)
%{_includedir}/epoxy/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/epoxy.pc
%files help
%defattr(-,root,root)
%doc README.md
%changelog
2024-08-01 11:14:50 +00:00
* Thu Aug 1 2024 zhangpan <zhangpan103@h-partners.com> - 1.5.10-3
- add options for i686
* Mon Mar 06 2023 laokz <zhangkai@iscas.ac.cn> - 1.5.10-2
- add GLIBC_2.27 to test/dlwrap.c for riscv
2023-02-02 11:09:20 +00:00
* Thu Feb 02 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 1.5.10-1
- update to 1.5.10
2023-01-31 11:20:00 +08:00
* Mon Jan 30 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.5.9-3
- fix build error for loongarch64
* Wed Oct 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.5.9-2
- Rebuild for next release
2021-12-01 16:50:48 +08:00
* Thu Dec 02 2021 xingxing <xingxing9@huawei.com> - 1.5.9-1
- update to 1.5.9
2021-01-29 16:27:45 +08:00
* Fri Jan 29 2021 zhanzhimin <zhanzhimin@huawei.com> - 1.5.5-1
- update to 1.5.5
* Mon Aug 03 2020 orange-snn <songnannan2@huawei.com> - 1.5.4-2
- change the buildrequires form mesa to libglvnd
* Mon Jun 22 2020 xinghe<xinghe1@huawei.com> - 1.5.4-1
2020-06-12 18:14:10 +08:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update to 1.5.4
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.3-2
2019-09-30 10:55:52 -04:00
- Package init