8
0
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:
2025-03-24 12:29:31 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 6 deletions

View File

@@ -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 Mon Feb 26 14:56:21 UTC 2024 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package tinyobjloader # spec file for package tinyobjloader
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# Copyright (c) 2018-2021, Martin Hauke <mardnh@gmx.de> # Copyright (c) 2018-2021, Martin Hauke <mardnh@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@@ -24,11 +24,10 @@ Version: 2.0.0rc9
Release: 0 Release: 0
Summary: Wavefront .obj file loader Summary: Wavefront .obj file loader
License: MIT License: MIT
Group: Development/Languages/C and C++
URL: https://github.com/tinyobjloader/tinyobjloader URL: https://github.com/tinyobjloader/tinyobjloader
Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: tinyobjloader-fix-cmake-path.patch Patch0: tinyobjloader-fix-cmake-path.patch
BuildRequires: cmake BuildRequires: cmake >= 3.5
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkgconfig BuildRequires: pkgconfig
@@ -38,7 +37,6 @@ It can parse over 10M polygons with moderate memory and time.
%package -n %{lname} %package -n %{lname}
Summary: Wavefront .obj file loader Summary: Wavefront .obj file loader
Group: System/Libraries
%description -n %{lname} %description -n %{lname}
A single-file Wavefront .obj loader written in C++. 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 %package devel
Summary: Development files for tinyobjloader Summary: Development files for tinyobjloader
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version} Requires: %{lname} = %{version}
%description devel %description devel
@@ -62,13 +59,17 @@ applications that want to make use of tinyobjloader.
%build %build
%cmake \ %cmake \
-DTINYOBJLOADER_COMPILATION_SHARED=ON -DTINYOBJLOADER_COMPILATION_SHARED=ON \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
%make_jobs %make_jobs
%install %install
%cmake_install %cmake_install
rm -f %{buildroot}/%{_datadir}/doc/packages/tinyobjloader/LICENSE rm -f %{buildroot}/%{_datadir}/doc/packages/tinyobjloader/LICENSE
%check
%ctest
%post -n %{lname} -p /sbin/ldconfig %post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig