Accepting request 183934 from devel:libraries:c_c++

required by gource, sr#182604
replace of sr#182978

OBS-URL: https://build.opensuse.org/request/show/183934
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glm?expand=0&rev=1
This commit is contained in:
Stephan Kulow 2013-07-22 10:59:26 +00:00 committed by Git OBS Bridge
commit c08ac22588
5 changed files with 190 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
glm-0.9.4.4.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:434245b4495c0d87eb6bb80ff5a4d5d0babc37a9804e8999bad8a5b0a20a5a2b
size 5190773

63
glm.changes Normal file
View File

@ -0,0 +1,63 @@
-------------------------------------------------------------------
Thu Jul 18 14:21:38 UTC 2013 - cfarrell@suse.com
- license update: MIT and GPL-2.0+
glm-0.9.4.4/test/external/gli/core/shared_ptr.inl is GPL licensed
-------------------------------------------------------------------
Wed Jul 10 17:02:31 UTC 2013 - dmitry_r@opensuse.org
- Update to version 0.9.4.4
* Promoted GTC_espilon extension
* Promoted GTC_ulp extension
* Removed GLM website from the source repository
* Added GLM_FORCE_RADIANS so that all functions takes radians for arguments
-------------------------------------------------------------------
Sun Mar 3 22:52:32 UTC 2013 - jengelh@inai.de
- Add missing BuildRoot directive (resolve SLE build failure)
-------------------------------------------------------------------
Tue Sep 4 21:41:59 UTC 2012 - adam@mizerski.pl
- update to 0.9.3.4
- A lot happend since last update.
Changelog available at http://glm.g-truc.net/
-------------------------------------------------------------------
Sun Feb 5 16:24:30 UTC 2012 - jengelh@medozas.de
- Remove redundant tags/sections
-------------------------------------------------------------------
Fri Sep 16 20:54:46 UTC 2011 - adam@mizerski.pl
- update to 0.9.2.4
- Fixed extensions bugs
-------------------------------------------------------------------
Mon Jun 27 09:22:25 UTC 2011 - adam@mizerski.pl
- update to 0.9.2.3
- Fixed build issues
- update to 0.9.2.2
- Expend matrix constructors flexibility
- Improved quaternion implementation
- Fixed many warnings across platforms and compilers
-------------------------------------------------------------------
Thu May 26 20:20:28 UTC 2011 - adam@mizerski.pl
- update to 0.9.2.1
- Automatically detect CUDA support
- Improved compiler detection
- Fixed errors and warnings in VC with C++ extensions disabled
- Fixed and tested GLM_GTX_vector_angle
- Fixed and tested GLM_GTX_rotate_vector
-------------------------------------------------------------------
Sat May 14 22:15:06 UTC 2011 - adam@mizerski.pl
- new package

100
glm.spec Normal file
View File

@ -0,0 +1,100 @@
#
# spec file for package glm
#
# Copyright (c) 2013 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: glm
Version: 0.9.4.4
Release: 0
Summary: Header only C++ mathematics library for graphics
License: MIT and GPL-2.0+
Group: Development/Libraries/C and C++
Url: http://glm.g-truc.net/
Source0: http://downloads.sourceforge.net/ogl-math/%{name}-%{version}/%{name}-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: unzip
%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.
%package doc
Summary: Documentation for GLM library
Group: Documentation/Other
%description doc
This package provides the documentation for GLM library.
%prep
%setup -q
# Fix wrong-file-end-of-line-encoding
sed -i 's/\r$//' copying.txt
sed -i 's/\r$//' readme.txt
sed -i 's/\r$//' doc/api/{tabs.css,jquery.js,dynsections.js,doxygen.css}
%build
mkdir build
cd build
cmake \
-DGLM_TEST_ENABLE=ON \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
..
make %{?_smp_mflags}
%install
cd build
make install DESTDIR="%buildroot"
cd ..
install -D -m 644 util/FindGLM.cmake %{buildroot}%{_datadir}/cmake/Modules/FindGLM.cmake
%check
cd build
ctest %{_smp_mflags} --output-on-failure
%files devel
%defattr(-,root,root,-)
%{_includedir}/glm
%{_datadir}/cmake/Modules/FindGLM.cmake
%doc copying.txt
%files doc
%defattr(-,root,root,-)
%doc doc/api
%doc doc/glm.pdf
%doc readme.txt
%changelog