File mingw64-glew.spec of Package mingw64-glew
#
# spec file for package mingw64-glew
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define realname glew
Name: mingw64-%{realname}
Version: 2.2.0
Release: 0
Summary: OpenGL Extension Wrangler Library
License: BSD-3-Clause AND GPL-2.0-or-later AND MIT
Group: System/Libraries
URL: https://github.com/nigels-com/glew
Source0: https://downloads.sourceforge.net/%{realname}/%{realname}-%{version}.tgz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch: noarch
%description
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.
%_mingw64_debug_package
%package devel
Summary: OpenGL Extension Wrangler Library
Group: Development/Libraries/C and C++
%description devel
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
open-source C/C++ extension loading library. GLEW provides efficient
run-time mechanisms for determining which OpenGL extensions are
supported on the target platform. OpenGL core and extension
functionality is exposed in a single header file.
%prep
%setup -qn glew-%{version}
# HACK: no need to require glu
sed -i 's|@requireslib@||g' glew.pc.in
%build
cd build/cmake
%_mingw64_cmake
%_mingw64_cmake_build
%install
cd build/cmake
%_mingw64_cmake_install
%files
%defattr(-,root,root)
%_mingw64_bindir/glew32.dll
%files devel
%defattr(-,root,root)
%license LICENSE.txt
%doc doc/* README.md
%_mingw64_includedir/GL/
%_mingw64_bindir/glewinfo.exe
%_mingw64_bindir/visualinfo.exe
%_mingw64_libdir/libglew32.dll.a
%_mingw64_libdir/cmake/glew
%_mingw64_libdir/pkgconfig/glew.pc
%changelog