## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?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: 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 %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 Apr 13 2022 Diego Herrera 1.0.1-1 - Initial release