File mingw32-glee.spec of Package mingw32-glee

#
# spec file for package mingw32-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:           mingw32-glee
Version:        5.4.0
Release:        0
Summary:        OpenGL Easy Extension Library
License:        BSD-3-Clause AND GPL-2.0-only
Group:          System/Libraries
Url:            http://elf-stone.com/glee.php
Source:         GLee-%{version}-src.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires:  dos2unix
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-filesystem >= 23
%_mingw32_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.

%_mingw32_debug_package

%prep
%setup -q -c

chmod -x *
for FILE in *.txt *.h; do
	dos2unix $FILE
done

%build
%{_mingw32_cc} -DWIN32 -shared -o libGLee.dll -Wl,-out-implib=libGLee.dll.a %{_mingw32_cflags} GLee.c -lopengl32

%install
mkdir -p %{buildroot}%{_mingw32_bindir} %{buildroot}%{_mingw32_libdir} %{buildroot}%{_mingw32_includedir}/GL
install -m 755 libGLee.dll %{buildroot}%{_mingw32_bindir}
install -m 644 libGLee.dll.a %{buildroot}%{_mingw32_libdir}
install -m 644 GLee.h %{buildroot}%{_mingw32_includedir}/GL

%files
%defattr(-,root,root)
%doc *.txt
%{_mingw32_bindir}/*.dll

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/GL/*.h
%{_mingw32_libdir}/*.dll.a

%changelog
openSUSE Build Service is sponsored by