|
|
|
@ -2,17 +2,13 @@
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: glm
|
|
|
|
|
Version: 0.9.8.5
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 0.9.9.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: C++ mathematics library for graphics programming
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://glm.g-truc.net/
|
|
|
|
|
Source0: https://github.com/g-truc/glm/releases/download/%{version}/%{name}-%{version}.zip
|
|
|
|
|
Patch0: glm-0.9.6.1-ulp.patch
|
|
|
|
|
|
|
|
|
|
# https://github.com/g-truc/glm/commit/dd48b56e44d699a022c69155c8672caacafd9e8a
|
|
|
|
|
Patch1: glm-0.9.8.5-compiler-list.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
@ -65,7 +61,7 @@ a programming manual for the %{name}-devel package.
|
|
|
|
|
# Also it looks like some versions get shipped with a common
|
|
|
|
|
# directory in archive root, but with an unusual name for the
|
|
|
|
|
# directory. In this case, use the -n option of the setup macro.
|
|
|
|
|
%setup -q -n glm
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
# A couple of files had CRLF line-ends in them.
|
|
|
|
|
# Check with rpmlint after updating the package that we are not
|
|
|
|
@ -73,7 +69,6 @@ a programming manual for the %{name}-devel package.
|
|
|
|
|
#
|
|
|
|
|
# This release of glm seems to have shipped with no CRLF file
|
|
|
|
|
# endings at all, so these are commented out.
|
|
|
|
|
sed -i 's/\r//' copying.txt
|
|
|
|
|
sed -i 's/\r//' readme.md
|
|
|
|
|
sed -i 's/\r//' doc/api/doxygen.css
|
|
|
|
|
sed -i 's/\r//' doc/api/dynsections.js
|
|
|
|
@ -87,10 +82,6 @@ sed -i 's/\r//' glm/simd/platform.h
|
|
|
|
|
sed -i 's/\r//' test/core/core_setup_message.cpp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%patch0 -p1 -b .ulp
|
|
|
|
|
%patch1 -p1 -b .compiler-list
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
|
|
|
@ -123,17 +114,19 @@ rmdir $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
|
# as an alternative to having glm-devel depending on cmake and pkg-config
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#The_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function
|
|
|
|
|
%files devel
|
|
|
|
|
%doc copying.txt readme.md
|
|
|
|
|
%doc readme.md
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_datadir}/cmake
|
|
|
|
|
%{_datadir}/pkgconfig/
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc copying.txt
|
|
|
|
|
%doc doc/%{name}.pdf
|
|
|
|
|
%doc doc/manual.pdf
|
|
|
|
|
%doc doc/api/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Oct 11 2018 Joonas Sarajärvi <muep@iki.fi> - 0.9.9.2-1
|
|
|
|
|
- Update to upstream GLM version 0.9.9.2
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|