## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: tinyexr Version: 1.0.1 Release: %autorelease Summary: Small library to load and save OpenEXR images License: BSD URL: https://github.com/syoyo/%{name} Source0: https://github.com/syoyo/%{name}/archive/refs/tags/v%{version}.tar.gz Source1: LICENSE # Import Timo Röhling build patches from Debian. Patch0: 0001-Use-zlib-instead-of-embedded-miniz.patch Patch1: 0002-Explicitly-export-required-symbols.patch Patch2: 0003-Fix-CMake-build-system.patch Patch3: 0004-Add-test-executable-for-CTest.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: sed BuildRequires: zlib-devel %description TinyEXR is a small library to load and save OpenEXR images. It supports the version 1 format and version 2 multi-part images, and it has partial support for version 2 deep images. %package devel Requires: %{name}%{?_isa} = %{version}-%{release} Summary: Development files for %{name} %description devel %{summary}. %prep %autosetup -p1 cp %{SOURCE1} LICENSE # Remove all thirdparty libraries rm -rf deps %build %cmake %cmake_build # Remove static declarations from headers sed -i '/^#ifdef TINYEXR_IMPLEMENTATION$/,/^#endif \/\/ TINYEXR_IMPLEMENTATION$/d' tinyexr.h %install %cmake_install %files %doc README.md %license LICENSE %{_libdir}/libtinyexr.so.1{,.*} %files devel %{_includedir}/tinyexr.h %{_libdir}/libtinyexr.so %{_libdir}/cmake/tinyexr/ %changelog * Wed Oct 19 2022 Diego Herrera 1.0.1-4 - Use sed instead of unifdef * Sat Jul 23 2022 Fedora Release Engineering 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Apr 28 2022 Diego Herrera 1.0.1-2 - Remove static declarations from headers * Wed Apr 13 2022 Diego Herrera 1.0.1-1 - Initial release