1 Star 0 Fork 9

孟文华/glew

forked from src-openEuler/glew 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
glew.spec 2.59 KB
一键复制 编辑 原始数据 按行查看 历史
Name: glew
Version: 2.1.0
Release: 8
Summary: The OpenGL Extension Wrangler Library
License: BSD-3-Clause and MIT
URL: http://glew.sourceforge.net
Source0: https://sourceforge.net/projects/glew/files/glew/%{version}/glew-%{version}.tgz
Patch0000: glew-2.1.0-install.patch
BuildRequires: libGLU-devel gcc
Provides: libGLEW = %{version}-%{release}
Obsoletes: libGLEW < %{version}-%{release}
Patch6000: backport-0001-Include-description-of-glew-in-README.md.patch
Patch6001: backport-0001-Fixed-compilation-with-current-mesa-versions.patch
Patch6002: backport-0001-Fix-for-issue-169-glew-cmake-project-requires-a-c-co.patch
%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
* Sat Jan 7 2023 mengwenhua <mengwenhua@xfusion.com> - 2.1.0-8
- glew cmake project requires a c++ compiler
* Fri Jan 6 2023 mengwenhua<mengwenhua@xfusion.com> - 2.1.0-7
- Fixed compilation with current mesa versions.
* 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
* Tue May 10 2022 xu_ping<xuping33@h-partners.com> - 2.1.0-5
- License compliance rectification
* Wed Jun 2 2021 baizhonggui <baizhonggui@huawei.com> - 2.1.0-4
- Fixed make: cc: No such file or directory
- Add gcc in BuildRequires
* Wed Nov 20 2019 yangjian<yangjian79@huawei.com> - 2.1.0-3
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/meng-wenhua/glew.git
git@gitee.com:meng-wenhua/glew.git
meng-wenhua
glew
glew
master

搜索帮助