Пакет glm: Specfile

Name: glm
Version: 0.9.9.6
Release: alt1
License: MIT
Summary: GLM is a header only C++ mathematics library for graphics software based on the GLSL specification
Group: Development/C++
Url: http://glm.g-truc.net/
BuildRequires: gcc-c++ cmake ctest

Source: %version.tar.gz
Patch1: glm-0.9.9.6-install.patch

%package -n lib%name-devel
Summary: GLM is a header only C++ mathematics library for graphics software based on the GLSL specification
Group: Development/C++
BuildArch: noarch

%package -n lib%name-devel-doc
Summary: Documentation for OpenGL Mathematics (GLM) library
Group: Development/Documentation
BuildArch: noarch
Requires: lib%name-devel = %version-%release

%description
C++ library for OpenGL GLSL type-based mathematics 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 as GLSL, so that when a
programmer knows GLSL, he knows GLM as well, which makes it easy to use.

This project isn't limited to GLSL features. An extension system, based
on the GLSL extension conventions, provides extended capabilities:
matrix transformations, quaternions, half-based types, random nums, etc.

%description -n lib%name-devel
C++ library for OpenGL GLSL type-based mathematics 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 as GLSL, so that when a
programmer knows GLSL, he knows GLM as well, which makes it easy to use.

This project isn't limited to GLSL features. An extension system, based
on the GLSL extension conventions, provides extended capabilities:
matrix transformations, quaternions, half-based types, random nums, etc.

Header files for GLM library.

%description -n lib%name-devel-doc
Documentation for the OpenGL Mathematics (GLM) library.
OpenGL Mathematics (GLM) is a header only C++ mathematics library for
graphics software based on the OpenGL Shading Language (GLSL) specs.

This package contains the GLM in HTML and PDF formats.

%prep
%setup
%patch1 -p1

%build
%cmake -DGLM_TEST_ENABLE=True -DGLM_TEST_ENABLE_CXX_11=True -DCMAKE_CXX_FLAGS="-std=c++11" -DCMAKE_VERBOSE_MAKEFILE=True
%cmake_build

%install
%cmakeinstall_std

find %buildroot -name '*.la' -exec rm -f {} ';'
find %buildroot -name CMakeLists.txt -exec rm -f {} ';'

# The cmake config files seem architecture independent and since
# also glm-devel is otherwise noarch, it is desired to ship the
# cmake configuration files under /usr/share.
mkdir -pv %buildroot%_datadir
mv %buildroot%_libdir/cmake %buildroot%_datadir/cmake
mv %buildroot%_pkgconfigdir %buildroot%_datadir/pkgconfig
rmdir %buildroot%_libdir

%check
%make_build -C BUILD test

%files -n lib%name-devel
%_includedir/%name/
%_datadir/cmake/*
%_datadir/pkgconfig/*
%doc copying.txt readme.md

%files -n lib%name-devel-doc
%doc doc/manual.pdf
%doc doc/api/

%changelog
* Tue Mar 24 2020 Anton Midyukov <antohami@altlinux.org> 0.9.9.6-alt1
- new version 0.9.9.6

* Thu Feb 22 2018 Fr. Br. George <george@altlinux.ru> 0.9.8.5-alt2
- Fix build with GCC7

* Fri Aug 25 2017 Fr. Br. George <george@altlinux.ru> 0.9.8.5-alt1
- Autobuild version bump to 0.9.8.5

* Mon Mar 13 2017 Fr. Br. George <george@altlinux.ru> 0.9.8.4-alt1
- Autobuild version bump to 0.9.8.4

* Mon Oct 31 2016 Fr. Br. George <george@altlinux.ru> 0.9.8.1-alt1
- Autobuild version bump to 0.9.8.1

* Tue Jul 26 2016 Fr. Br. George <george@altlinux.ru> 0.9.7.6-alt1
- Autobuild version bump to 0.9.7.6

* Thu Jul 14 2016 Fr. Br. George <george@altlinux.ru> 0.9.7.5-alt1
- Autobuild version bump to 0.9.7.5

* Wed Sep 16 2015 Fr. Br. George <george@altlinux.ru> 0.9.7.1-alt1
- Autobuild version bump to 0.9.7.1
- Provide tests

* Mon Jul 30 2012 Ivan Ovcherenko <asdus@altlinux.org> 0.9.3.4-alt1
- initial build for ALT Linux Sisyphus