From 8f108d89f8ad8b370481f8b29158f6273e0e7aed Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 6 May 2024 10:27:29 +0200 Subject: [PATCH] package created using the webbuild interface [release 2.2.2-1mamba;Mon May 06 2024] --- README.md | 2 ++ oidn.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 oidn.spec diff --git a/README.md b/README.md index e646ea4..aec68f2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # oidn +Open Image Denoise library. + diff --git a/oidn.spec b/oidn.spec new file mode 100644 index 0000000..2684743 --- /dev/null +++ b/oidn.spec @@ -0,0 +1,85 @@ +Name: oidn +Version: 2.2.2 +Release: 1mamba +Summary: Open Image Denoise library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.openimagedenoise.org/ +Source: https://github.com/OpenImageDenoise/oidn.git/v%{version}/oidn-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +BuildRequires: libtbb-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Open Image Denoise library. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/oidnBenchmark +%{_bindir}/oidnDenoise +%{_bindir}/oidnTest + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libOpenImageDenoise.so.* +%{_libdir}/libOpenImageDenoise_core.so.* +%{_libdir}/libOpenImageDenoise_device_cpu.so.* +%doc LICENSE.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/OpenImageDenoise +%{_includedir}/OpenImageDenoise/* +%{_libdir}/libOpenImageDenoise.so +%dir %{_libdir}/cmake/OpenImageDenoise-%{version} +%{_libdir}/cmake/OpenImageDenoise-2.2.2/OpenImageDenoise*.cmake +%dir %{_docdir}/OpenImageDenoise +%{_docdir}/OpenImageDenoise/* +%doc README.md + +%changelog +* Mon May 06 2024 Silvan Calarco 2.2.2-1mamba +- package created using the webbuild interface