8
0
forked from pool/tinyobjloader

Accepting request 627465 from home:mnhauke

Initial packge for tinyobjloader

OBS-URL: https://build.opensuse.org/request/show/627465
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tinyobjloader?expand=0&rev=1
This commit is contained in:
Ismail Dönmez
2018-08-06 13:38:44 +00:00
committed by Git OBS Bridge
commit c16a4b5b52
6 changed files with 132 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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:19ee82cd201761954dd833de551edb570e33b320d6027e0d91455faf7cd4c341
size 973418

View File

@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index acfcd3a..d696e22 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,7 +38,7 @@ set(tinyobjloader-examples-objsticher
#Install destinations
include(GNUInstallDirs)
-set(TINYOBJLOADER_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake)
+set(TINYOBJLOADER_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake)
set(TINYOBJLOADER_DOC_DIR ${CMAKE_INSTALL_DOCDIR})
set(TINYOBJLOADER_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR})
set(TINYOBJLOADER_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR})

4
tinyobjloader.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Aug 4 18:18:36 UTC 2018 - mardnh@gmx.de
- Initial package, version 1.0.6

88
tinyobjloader.spec Normal file
View File

@@ -0,0 +1,88 @@
#
# spec file for package tinyobjloader
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define sover 1
%define lname libtinyobjloader%{sover}
Name: tinyobjloader
Version: 1.0.6
Release: 0
Summary: Tiny wavefront obj loader
License: MIT
Group: Development/Languages/C and C++
URL: https://github.com/syoyo/tinyobjloader
Source: https://github.com/syoyo/tinyobjloader/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: tinyobjloader-fix-cmake-path.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
Tiny but powerful single file wavefront obj loader written in C++.
No dependency except for C++ STL. It can parse over 10M polygons with
moderate memory and time.
%package -n %{lname}
Summary: Tiny wavefront obj loader
Group: System/Libraries
%description -n %{lname}
Tiny but powerful single file wavefront obj loader written in C++.
No dependency except for C++ STL. It can parse over 10M polygons with
moderate memory and time.
%package devel
Summary: Development files for tinyobjloader
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
Tiny but powerful single file wavefront obj loader written in C++.
No dependency except for C++ STL. It can parse over 10M polygons with
moderate memory and time.
This subpackage contains libraries and header files for developing
applications that want to make use of tinyobjloader.
%prep
%setup -q
%patch0 -p1
%build
%cmake \
-DTINYOBJLOADER_COMPILATION_SHARED=ON
%make_jobs
%install
%cmake_install
rm -f %{buildroot}/%{_datadir}/doc/tinyobjloader/LICENSE
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%license LICENSE
%doc README.md
%{_libdir}/libtinyobjloader.so.%{sover}*
%files devel
%{_includedir}/tiny_obj_loader.h
%{_libdir}/libtinyobjloader.so
%{_libdir}/pkgconfig/tinyobjloader.pc
%{_libdir}/cmake/tinyobjloader-*.cmake
%changelog