48734b7
Name:       oidn
48734b7
Version:    1.2.2
48734b7
Release:    4%{?dist}
48734b7
Summary:    Library of denoising filters for images rendered with ray tracing
48734b7
License:    ASL 2.0
48734b7
URL:        https://openimagedenoise.github.io/
9fda191
48734b7
Source0:    https://github.com/OpenImageDenoise/%{name}/releases/download/v%{version}/%{name}-%{version}.src.tar.gz
9fda191
48734b7
# Library only available on x86_64
48734b7
ExclusiveArch:  x86_64
9fda191
48734b7
BuildRequires:  cmake >= 3.13.0
48734b7
BuildRequires:  gcc-c++
48734b7
BuildRequires:  ispc
af3b53f
BuildRequires:  pkgconfig(OpenImageIO)
48734b7
BuildRequires:  pkgconfig(python3)
48734b7
BuildRequires:  pkgconfig(tbb)
9fda191
9fda191
%description
48734b7
An open source library of high-performance, high-quality denoising filters for
48734b7
images rendered with ray tracing.
9fda191
48734b7
%package    libs
48734b7
Summary:    Libraries for %{name}
9fda191
48734b7
%description libs
9fda191
The %{name}-libs package contains shared library for %{name}.
9fda191
48734b7
%package    devel
48734b7
Summary:    Development files for %{name}
48734b7
Requires:   %{name}-libs%{?_isa} = %{version}-%{release}
9fda191
48734b7
%description devel
48734b7
The %{name}-devel package contains libraries and header files for developing
48734b7
applications that use %{name}.
9fda191
48734b7
%package    docs
48734b7
Summary:    Documentation for %{name}
48734b7
Requires:   %{name}-libs%{?_isa} = %{version}-%{release}
48734b7
BuildArch:  noarch
9fda191
48734b7
%description docs
9fda191
The %{name}-docs package contains documentation for %{name}.
9fda191
9fda191
%prep
9fda191
%autosetup
9fda191
9fda191
%build
af3b53f
%cmake \
48734b7
    -B build \
48734b7
    -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
48734b7
    .
48734b7
af3b53f
%make_build -C build
9fda191
9fda191
%install
af3b53f
%make_install -C build
9fda191
9fda191
# Remove duplicated documentation
9fda191
rm -rf %{buildroot}%{_docdir}/OpenImageDenoise
9fda191
9fda191
%files
9fda191
%license LICENSE.txt
9fda191
%doc CHANGELOG.md 
f002456
%{_bindir}/%{name}{Denoise,Test,Benchmark}
9fda191
9fda191
%files libs
9fda191
%{_libdir}/libOpenImageDenoise.so.*
9fda191
9fda191
%files docs
9fda191
%doc README.md readme.pdf 
9fda191
9fda191
%files devel
48734b7
%{_libdir}/cmake/OpenImageDenoise
9fda191
%{_includedir}/OpenImageDenoise
9fda191
%{_libdir}/libOpenImageDenoise.so
9fda191
9fda191
%changelog
48734b7
* Thu Aug 20 2020 Simone Caronni <negativo17@gmail.com> - 1.2.2-4
48734b7
- Move cmake files to devel subpackage.
48734b7
- rpmlint fixes.
48734b7
310f261
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
310f261
- Second attempt - Rebuilt for
310f261
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
310f261
f0b7606
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
f0b7606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f0b7606
af3b53f
* Mon Jul 13 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.2.2-1
af3b53f
- Update to 1.2.2 (#1855832)
af3b53f
- Add OpenImageIO dependency
af3b53f
f002456
* Tue Jun 16 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.2.1-1
f002456
- Update to 1.2.1
f002456
429f854
* Fri Apr 10 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 1.2.0-1
429f854
- Update to 1.2.0
429f854
- Add ispc and redhat-rpm-config depedencies
429f854
9b569d8
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
9b569d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9b569d8
addeb18
* Wed Oct 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.1.0-1
addeb18
- Update to 1.1.0
addeb18
8ab656b
* Sat Aug 17 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 1.0.0-1
8ab656b
- Update to 1.0.0
8ab656b
- Use pkgconfig for Python 3
8ab656b
d4386b7
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
d4386b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d4386b7
88de63f
* Thu May 09 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 0.9.0-1
88de63f
- Update to 0.9.0
88de63f
9fda191
* Tue Apr 02 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 0.8.2-4
9fda191
- Use spaces on line 47
9fda191
- Make -doc subpackage noarch
9fda191
- Make -doc subpackage requiring main package
9fda191
9fda191
* Mon Apr 01 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 0.8.2-3
9fda191
- Move versioned so-files to libs subpackage
9fda191
- Move unversioned so-files to devel subpackage
9fda191
9fda191
* Mon Apr 01 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 0.8.2-2
9fda191
- Add subpackage for large doc files
9fda191
- Move .so files to devel subpackage
9fda191
- Fix library path
9fda191
- Remove unneeded clearance
9fda191
9fda191
* Sun Mar 31 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 0.8.2-1
9fda191
- Initial packaging