File mingw64-glee.spec of Package mingw64-glee
#
# spec file for package mingw64-glee
#
# 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/
#
Name: mingw64-glee
Version: 5.4.0
Release: 0
Summary: OpenGL Easy Extension Library
License: BSD-3-Clause and GPL-2.0-only and Other uncritical OpenSource License
Group: System/Libraries
Url: http://elf-stone.com/glee.php
Source: GLee-%{version}-src.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires: dos2unix
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem >= 23
%_mingw64_package_header_debug
BuildArch: noarch
%description
GLee provides a simple interface for using extensions and core OpenGL
functionality beyond OpenGL version 1.1, and automates the otherwise tedious
process of linking function pointers. GLee works with both C and C++
compilers.
%package devel
Summary: OpenGL Easy Extension Library
Group: Development/Libraries/C and C++
%description devel
GLee provides a simple interface for using extensions and core OpenGL
functionality beyond OpenGL version 1.1, and automates the otherwise tedious
process of linking function pointers. GLee works with both C and C++
compilers.
%_mingw64_debug_package
%prep
%setup -q -c
chmod -x *
for FILE in *.txt *.h; do
dos2unix $FILE
done
%build
%{_mingw64_cc} -DWIN32 -shared -o libGLee.dll -Wl,-out-implib=libGLee.dll.a %{_mingw64_cflags} GLee.c -lopengl32
%install
mkdir -p %{buildroot}%{_mingw64_bindir} %{buildroot}%{_mingw64_libdir} %{buildroot}%{_mingw64_includedir}/GL
install -m 755 libGLee.dll %{buildroot}%{_mingw64_bindir}
install -m 644 libGLee.dll.a %{buildroot}%{_mingw64_libdir}
install -m 644 GLee.h %{buildroot}%{_mingw64_includedir}/GL
%files
%defattr(-,root,root)
%doc *.txt
%{_mingw64_bindir}/*.dll
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/GL/*.h
%{_mingw64_libdir}/*.dll.a
%changelog