oiio/oiio.spec

194 lines
6.5 KiB
RPMSpec
Raw Normal View History

Name: oiio
Version: 2.5.6.0
Release: 3mamba
Summary: Libraries and tools for VFX studios and developers of tools such as renderers, compositors, viewers
Group: Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.openimageio.org
Source: https://github.com/OpenImageIO/oiio.git/v%{version}/oiio-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libboost-devel
BuildRequires: libbzip2-devel
BuildRequires: libdcmtk-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgif-devel
BuildRequires: libglu-devel
BuildRequires: libglvnd-devel
BuildRequires: libheif-devel
BuildRequires: libimath-devel
BuildRequires: libjpeg-devel
BuildRequires: libopencolorio-devel
BuildRequires: libopencv-devel
BuildRequires: libopenexr-devel
BuildRequires: libopenjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libpython311-devel
BuildRequires: libraw-devel
BuildRequires: libstdc++6-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libtbb-devel
BuildRequires: libtiff-devel
BuildRequires: libwebp-devel
BuildRequires: libz-devel
BuildRequires: pugixml-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
BuildRequires: libopencv-devel >= 4.9.0-1mamba
BuildRequires: libopencolorio-devel >= 1:2.3.2-1mamba
BuildRequires: libdcmtk-devel >= 3.6.8
BuildRequires: python-pybind11-devel
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
The primary target audience for OIIO is VFX studios and developers of tools such as renderers, compositors, viewers, and other image-related software you'd find in a production pipeline.
%package -n openimageio-tools
Group: Applications/Graphics
Summary: OpenImageIO tools
Requires: libopenimageio = %{?epoch:%epoch:}%{version}-%{release}
%description -n openimageio-tools
The primary target audience for OIIO is VFX studios and developers of tools such as renderers, compositors, viewers, and other image-related software you'd find in a production pipeline.
This package contains tools provided by OpenImageIO.
%package -n python-OpenImageIO
Group: System/Libraries/Python
Summary: OpenImageIO tools
Requires: libopenimageio = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-OpenImageIO
The primary target audience for OIIO is VFX studios and developers of tools such as renderers, compositors, viewers, and other image-related software you'd find in a production pipeline.
This package contains the Python bindings to OpenImageIO.
%package -n ttf-openimageio
Group: System/Fonts
Summary: OpenImageIO fonts
%description -n ttf-openimageio
This package contains fonts provided by OpenImageIO.
%package -n libopenimageio
Group: System/Libraries
Summary: Shared libraries for OpenImageIO
Obsoletes: ttf-openimageio < 2.3.12.0
%description -n libopenimageio
The primary target audience for OIIO is VFX studios and developers of tools such as renderers, compositors, viewers, and other image-related software you'd find in a production pipeline.
This package contains shared libraries for OpenImageIO.
%package -n libopenimageio-devel
Group: Development/Libraries
Summary: Development files for OpenImageIO
Requires: libopenimageio = %{?epoch:%epoch:}%{version}-%{release}
%description -n libopenimageio-devel
This package contains libraries and header files for developing applications that use OpenImageIO.
%debug_package
%prep
%setup -q
%build
%cmake -d build \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_SKIP_RPATH:BOOL=TRUE \
-DPYTHON_VERSION=%{python3_version} \
-DBUILD_DOCS:BOOL=TRUE \
-DOIIO_BUILD_TESTS:BOOL=FALSE \
-DINSTALL_DOCS:BOOL=FALSE \
-DINSTALL_FONTS:BOOL=FALSE \
-DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
-DSTOP_ON_WARNING:BOOL=FALSE \
-DJPEG_INCLUDE_DIR=%{_includedir} \
-DOPENJPEG_INCLUDE_DIR=$(pkgconf --variable=includedir libopenjp2) \
-DOpenGL_GL_PREFERENCE=GLVND \
-DVERBOSE=TRUE
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libopenimageio -p /sbin/ldconfig
%postun -n libopenimageio -p /sbin/ldconfig
%files -n openimageio-tools
%defattr(-,root,root)
%{_bindir}/iconvert
%{_bindir}/idiff
%{_bindir}/igrep
%{_bindir}/iinfo
%{_bindir}/iv
%{_bindir}/maketx
%{_bindir}/oiiotool
%{_bindir}/testtex
%files -n libopenimageio
%defattr(-,root,root)
%{_libdir}/libOpenImageIO.so.*
%{_libdir}/libOpenImageIO_Util.so.*
%doc LICENSE.md
%files -n python-OpenImageIO
%defattr(-,root,root)
%dir %{python3_sitearch}/OpenImageIO
%{python3_sitearch}/OpenImageIO/OpenImageIO.cpython-*.so
%{python3_sitearch}/OpenImageIO/__init__.py
%files -n libopenimageio-devel
%defattr(-,root,root)
%dir %{_includedir}/OpenImageIO
%{_includedir}/OpenImageIO/*.h
%dir %{_includedir}/OpenImageIO/detail
%{_includedir}/OpenImageIO/detail/*.h
%dir %{_includedir}/OpenImageIO/detail/fmt
%{_includedir}/OpenImageIO/detail/fmt/*.h
%{_libdir}/libOpenImageIO.so
%{_libdir}/libOpenImageIO_Util.so
%{_libdir}/pkgconfig/OpenImageIO.pc
%dir %{_libdir}/cmake/OpenImageIO
%{_libdir}/cmake/OpenImageIO/OpenImageIO*.cmake
%doc README.md
%changelog
* Wed Feb 28 2024 Automatic Build System <autodist@mambasoft.it> 2.5.6.0-3mamba
- rebuilt by autoport with build requirements: libopencv-devel>=4.9.0-1mamba
* Mon Feb 05 2024 Automatic Build System <autodist@mambasoft.it> 2.5.6.0-2mamba
- rebuilt by autoport with build requirements: libopencolorio-devel>=2.3.2-1mamba
* Sun Feb 04 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.6.0-1mamba
- update to 2.5.6.0
* Sun May 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.12.0-2mamba
- rebuilt by autoport with build requirements: libopencv-devel>=4.5.5-1mamba
* Wed Feb 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.12.0-1mamba
- update to 2.3.12.0
* Wed Feb 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.20.0-1mamba
- update to 2.2.20.0
* Thu Jun 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.15.1-1mamba
- update to 2.2.15.1
* Mon Mar 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.11.2-2mamba
- openimageio-tools: fix requirement for libopenimageio
* Sun Mar 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.11.2-1mamba
- package created using the webbuild interface