File mingw64-glm.spec of Package mingw64-glm

#
# spec file for package mingw64-glm
#
# Copyright (c) 2016 SUSE LINUX 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-glm
Version:        0.9.9.8
Release:        0
Summary:        Header only C++ mathematics library for graphics
License:        MIT
Group:          Development/Libraries/C and C++
Url:            http://glm.g-truc.net/
Source0:        https://github.com/g-truc/glm/releases/download/%{version}/glm-%{version}.zip
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  mingw64-filesystem
BuildRequires:  unzip
%_mingw64_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics
software based on the OpenGL Shading Language (GLSL) specification.

GLM provides classes and functions designed and implemented with the same naming
conventions and functionalities than GLSL so that when a programmer knows GLSL,
he knows GLM as well which makes it really easy to use.

%package        devel
Summary:        Header only C++ mathematics library for graphics
Group:          Development/Libraries/C and C++

%description    devel
OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics
software based on the OpenGL Shading Language (GLSL) specification.

GLM provides classes and functions designed and implemented with the same naming
conventions and functionalities than GLSL so that when a programmer knows GLSL,
he knows GLM as well which makes it really easy to use.

%prep
%setup -q -n glm
# Fix wrong-file-end-of-line-encoding
find ./ -type f -print0 |xargs -0 dos2unix -q

%build

%install
for i in `find glm -name \*.h*`; do install -D -m 644 $i %{buildroot}%{_mingw64_includedir}/$i; done
for i in `find glm -name \*.inl`; do install -D -m 644 $i %{buildroot}%{_mingw64_includedir}/$i; done
%fdupes -s %{buildroot}

%files devel
%defattr(-,root,root,-)
%{_mingw64_includedir}/glm

%changelog
openSUSE Build Service is sponsored by