|
|
|
# The library consists of headers only
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
Name: glm
|
|
|
|
Version: 0.9.3.2
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: C++ mathematics library for graphics programming
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: http://glm.g-truc.net/
|
|
|
|
Source0: http://downloads.sourceforge.net/ogl-math/%{name}-%{version}/%{name}-%{version}.zip
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
%description
|
|
|
|
GLM is a C++ library for doing mathematics operations
|
|
|
|
required in many OpenGL based applications. Its interface
|
|
|
|
has been designed to resemble the built-in matrix and vector
|
|
|
|
types of the OpenGL shading language.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: C++ mathematics library for graphics programming
|
|
|
|
|
|
|
|
# As required in
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries_2
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
GLM is a C++ library for doing mathematics operations
|
|
|
|
required in many OpenGL based applications. Its interface
|
|
|
|
has been designed to resemble the built-in matrix and vector
|
|
|
|
types of the OpenGL shading language.
|
|
|
|
|
|
|
|
%{name}-devel is only required for building software that uses
|
|
|
|
the GLM library. Because GLM currently is a header-only library,
|
|
|
|
there is no matching run time package.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}-devel
|
|
|
|
Group: Documentation
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The %{name}-doc package contains reference documentation and
|
|
|
|
a programming manual for the %{name}-devel package.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
# Some glm releases, like version 0.9.3.1, place contents of
|
|
|
|
# the source archive directly into the archive root. Others,
|
|
|
|
# like glm 0.9.3.2, place them into a single subdirectory.
|
|
|
|
# The former case is inconvenient, but it can be be
|
|
|
|
# compensated for with the -c option of the setup macro.
|
|
|
|
#
|
|
|
|
# When updating this package, take care to check if -c is
|
|
|
|
# needed for the particular version.
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
# Remove some unnecessary binary files shipped in upstream
|
|
|
|
# sources
|
|
|
|
rm -r doc/build/
|
|
|
|
|
|
|
|
# A couple of files had CRLF line-ends in them.
|
|
|
|
sed -i 's/\r//' copying.txt
|
|
|
|
sed -i 's/\r//' readme.txt
|
|
|
|
sed -i 's/\r//' doc/api-0.9.3/tabs.css
|
|
|
|
sed -i 's/\r//' doc/api-0.9.3/doxygen.css
|
|
|
|
sed -i 's/\r//' doc/api-0.9.3/jquery.js
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
%{cmake} -DGLM_TEST_MODE=ON ..
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
cd build
|
|
|
|
|
|
|
|
# Remove the -E ^test-gtx_integer$ option when issue at
|
|
|
|
# https://github.com/Groovounet/glm/issues/12
|
|
|
|
# is resolved.
|
|
|
|
ctest -E ^test-gtx_integer$ --output-on-failure
|
|
|
|
|
|
|
|
%install
|
|
|
|
cd build
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -name CMakeLists.txt -exec rm -f {} ';'
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc copying.txt readme.txt
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc doc/%{name}-0.9.3.pdf
|
|
|
|
%doc doc/api-0.9.3
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sat Sep 01 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.2-3
|
|
|
|
- Skip gtx_integer test that is known as broken
|
|
|
|
|
|
|
|
* Sat Sep 01 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.2-2
|
|
|
|
- Remove prebuilt binaries shipped in upstream source archive
|
|
|
|
|
|
|
|
* Fri May 04 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.2-1
|
|
|
|
- Update to upstream version 0.9.3.2
|
|
|
|
|
|
|
|
* Mon Feb 13 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.1-5
|
|
|
|
- Use global instead of define
|
|
|
|
- Clarify the comment about GLM zip archives
|
|
|
|
- Remove the unnecessary rm command from install section
|
|
|
|
- Remove misleading reference to non-existing glm package
|
|
|
|
|
|
|
|
* Mon Feb 06 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.1-4
|
|
|
|
- Add virtual Provides: that is required for static-only libraries
|
|
|
|
- Make descriptions in devel and doc packages more accurate
|
|
|
|
|
|
|
|
* Mon Feb 06 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.1-3
|
|
|
|
- Fix items pointed out in Comment 2 of #787510
|
|
|
|
|
|
|
|
* Mon Feb 06 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.1-2
|
|
|
|
- Build and run the self-test suite shipped with glm
|
|
|
|
- Add subpackage for manual and reference docs
|
|
|
|
|
|
|
|
* Sun Feb 05 2012 Joonas Sarajärvi <muep@iki.fi> - 0.9.3.1-1
|
|
|
|
- Initial RPM packaging
|