2019-11-29 14:56:56 +08:00
|
|
|
Name: glew
|
|
|
|
|
Version: 2.1.0
|
2023-01-06 18:15:06 +08:00
|
|
|
Release: 7
|
2019-11-29 14:56:56 +08:00
|
|
|
Summary: The OpenGL Extension Wrangler Library
|
2022-05-10 19:17:04 +08:00
|
|
|
License: BSD-3-Clause and MIT
|
2019-11-29 14:56:56 +08:00
|
|
|
URL: http://glew.sourceforge.net
|
|
|
|
|
|
|
|
|
|
Source0: https://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz
|
|
|
|
|
Patch0000: glew-2.1.0-install.patch
|
2021-06-08 14:32:43 +08:00
|
|
|
BuildRequires: libGLU-devel gcc
|
2019-11-29 14:56:56 +08:00
|
|
|
|
|
|
|
|
Provides: libGLEW = %{version}-%{release}
|
|
|
|
|
Obsoletes: libGLEW < %{version}-%{release}
|
|
|
|
|
|
2023-01-05 15:30:57 +08:00
|
|
|
Patch6000: backport-0001-Include-description-of-glew-in-README.md.patch
|
2023-01-06 18:15:06 +08:00
|
|
|
Patch6001: backport-0001-Fixed-compilation-with-current-mesa-versions.patch
|
2023-01-05 15:30:57 +08:00
|
|
|
|
2019-11-29 14:56:56 +08:00
|
|
|
%description
|
|
|
|
|
OpenGL Extension Wrangler Library (GLEW) is a cross-platform
|
|
|
|
|
extension loading library for c / c ++.
|
|
|
|
|
GLEW provides a runtime mechanism for determining
|
|
|
|
|
which OpenGL extensions are supported on the platform.
|
|
|
|
|
The OpenGL core and extensions are exposed in a single header file.
|
|
|
|
|
GLEW can be used on a variety of operating systems,
|
|
|
|
|
including Windows, Linux, Irix, Solaris, Mac OS X, FreeBSD.
|
|
|
|
|
This package contains the demo GLEW program.
|
|
|
|
|
The libraries themselves are in libGLEW
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for glew
|
|
|
|
|
Requires: %{name} = %{version}-%{release} mesa-libGLU-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Development files for glew
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
cp /usr/lib/rpm/%{_vendor}/config.guess config/
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%make_build CFLAGS.EXTRA="$RPM_OPT_FLAGS -fPIC" includedir=%{_includedir} STRIP= LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install.all DESTDIR="$RPM_BUILD_ROOT" LIBDIR=%{_libdir} PKGDIR=%{_libdir}/pkgconfig
|
|
|
|
|
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/*.so*
|
|
|
|
|
%delete_la_and_a
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libdir}/libGLEW.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_libdir}/libGLEW.so
|
|
|
|
|
%{_libdir}/pkgconfig//glew.pc
|
|
|
|
|
%{_includedir}/GL/*.h
|
|
|
|
|
%doc doc/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-01-06 18:15:06 +08:00
|
|
|
* Fri Jan 6 2023 mengwenhua<mengwenhua@xfusion.com> - 2.1.0-7
|
|
|
|
|
- Fixed compilation with current mesa versions.
|
|
|
|
|
|
2023-01-05 15:30:57 +08:00
|
|
|
* Thu Jan 5 2023 mengwenhua<mengwenhua@xfusion.com> - 2.1.0-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Include description of glew in README.md
|
|
|
|
|
|
2022-05-10 19:17:04 +08:00
|
|
|
* Tue May 10 2022 xu_ping<xuping33@h-partners.com> - 2.1.0-5
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
2021-06-08 14:32:43 +08:00
|
|
|
* Wed Jun 2 2021 baizhonggui <baizhonggui@huawei.com> - 2.1.0-4
|
|
|
|
|
- Fixed make: cc: No such file or directory
|
|
|
|
|
- Add gcc in BuildRequires
|
|
|
|
|
|
2019-11-29 14:56:56 +08:00
|
|
|
* Wed Nov 20 2019 yangjian<yangjian79@huawei.com> - 2.1.0-3
|
|
|
|
|
- Package init
|