forked from pool/tinyobjloader
Accepting request 1255211 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1255211 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tinyobjloader?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 22 01:04:15 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
|
||||
|
||||
- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
|
||||
- Add %check section
|
||||
- Remove Group: declarations, no longer used
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 26 14:56:21 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package tinyobjloader
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2018-2021, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -24,11 +24,10 @@ Version: 2.0.0rc9
|
||||
Release: 0
|
||||
Summary: Wavefront .obj file loader
|
||||
License: MIT
|
||||
Group: Development/Languages/C and C++
|
||||
URL: https://github.com/tinyobjloader/tinyobjloader
|
||||
Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch0: tinyobjloader-fix-cmake-path.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cmake >= 3.5
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
@@ -38,7 +37,6 @@ It can parse over 10M polygons with moderate memory and time.
|
||||
|
||||
%package -n %{lname}
|
||||
Summary: Wavefront .obj file loader
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{lname}
|
||||
A single-file Wavefront .obj loader written in C++.
|
||||
@@ -46,7 +44,6 @@ 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
|
||||
@@ -62,13 +59,17 @@ applications that want to make use of tinyobjloader.
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DTINYOBJLOADER_COMPILATION_SHARED=ON
|
||||
-DTINYOBJLOADER_COMPILATION_SHARED=ON \
|
||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
rm -f %{buildroot}/%{_datadir}/doc/packages/tinyobjloader/LICENSE
|
||||
|
||||
%check
|
||||
%ctest
|
||||
|
||||
%post -n %{lname} -p /sbin/ldconfig
|
||||
%postun -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
|
||||
Reference in New Issue
Block a user