## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: openpgl Version: 0.4.1 Release: %autorelease -p -e beta Summary: Open Path Guiding Library License: Apache-2.0 URL: https://github.com/OpenPathGuidingLibrary/%{name} Source0: %{url}/archive/refs/tags/v%{version}-beta.tar.gz#/%{name}-%{version}-beta.tar.gz BuildRequires: cmake BuildRequires: embree-devel BuildRequires: gcc-c++ BuildRequires: pkgconfig(tbb) # Upstream only supports x86_64 architecture ExclusiveArch: x86_64 %description The Intel Open Path Guiding Library (Intel Open PGL) implements a set of representations and training algorithms needed to integrate path guiding into a renderer. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{name}-%{version}-beta %build %cmake %cmake_build %install %cmake_install find %{buildroot} -name '*.la' -exec rm -f {} ';' # Remove duplicated license file rm %{buildroot}%{_datadir}/doc/%{name}/LICENSE.txt %files %license LICENSE.txt %doc CHANGELOG.md README.md third-party-programs*.txt %{_libdir}/lib%{name}.so.* %files devel %{_includedir}/%{name} %{_libdir}/cmake/%{name}-%{version} %{_libdir}/lib%{name}.so %changelog * Fri Dec 09 2022 Luya Tshimbalanga 0.4.1-0.1.beta - New package