Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:AndnoVember:test
OpenUSD
OpenUSD.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File OpenUSD.spec of Package OpenUSD
# # spec file for package OpenUSD # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: OpenUSD Version: 23.11 Release: 0 Summary: Universal Scene Description License: Apache-2.0 URL: https://www.openusd.org/ Source0: https://github.com/PixarAnimationStudios/OpenUSD/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source2: https://openusd.org/images/USDLogoUnsized.svg Source3: org.openusd.usdview.desktop Patch01: fix-build.patch Patch02: usd-tbb.patch Patch03: 2651.patch Patch04: usd-defaultfonts.patch BuildRequires: OpenSubdiv-devel BuildRequires: boost-devel BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: hdf5-devel BuildRequires: libboost_python3-devel BuildRequires: openvdb-devel BuildRequires: pkgconfig BuildRequires: python3-Jinja2 BuildRequires: python3-devel BuildRequires: python3-opengl BuildRequires: python3-pyside6-devel BuildRequires: qt6-base-common-devel BuildRequires: (pkgconfig(tbb) >= 2020 with pkgconfig(tbb) < 2024) BuildRequires: cmake(Alembic) BuildRequires: cmake(OSL) BuildRequires: cmake(embree) BuildRequires: pkgconfig(OpenColorIO) BuildRequires: pkgconfig(OpenEXR) BuildRequires: pkgconfig(OpenImageIO) # fix requires in pkgconfig(OpenImageIO) # TODO: should be a requires in OpenImageIO # cmake files reference /usr/bin/iconvert BuildRequires: OpenImageIO # cmake files reference imath cmake files. BuildRequires: pkgconfig(Imath) # /fix requires in pkgconfig(OpenImageIO) BuildRequires: pkgconfig(draco) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glx) %if %{with vulkan} BuildRequires: vulkan-headers BuildRequires: pkgconfig(vulkan) %endif %description Universal Scene Description (USD) is an efficient, scalable system for authoring, reading, and streaming time-sampled scene description for interchange between graphics applications. %package devel Summary: Development files for OpenUSD %description devel Universal Scene Description (USD) is an efficient, scalable system for authoring, reading, and streaming time-sampled scene description for interchange between graphics applications. This package holds the development files for OpenUSD. %prep %autosetup -p1 %build # Change directories to standard sed -i 's|plugin/usd|%{_lib}/usd/plugin|g' \ cmake/macros/{Private,Public}.cmake sed -i 's|/python|/python'$_pyver'/site-packages|g' \ cmake/macros/Private.cmake sed -i 's|lib/python|%{python3_sitearch}|' \ cmake/macros/{Private,Public}.cmake pxr/usdImaging/usdviewq/CMakeLists.txt sed -i 's|/pxrConfig.cmake|/%{_lib}/cmake/pxr/pxrConfig.cmake|g' \ pxr/CMakeLists.txt sed -i 's|${CMAKE_INSTALL_PREFIX}|${CMAKE_INSTALL_PREFIX}/%{_lib}/cmake/pxr|g' \ pxr/CMakeLists.txt sed -i 's|"cmake"|"%{_lib}/cmake/pxr"|g' \ pxr/CMakeLists.txt sed -i 's|${PXR_CMAKE_DIR}/cmake|${PXR_CMAKE_DIR}|g' \ pxr/pxrConfig.cmake.in sed -i 's|${PXR_CMAKE_DIR}/include|/usr/include|g' \ pxr/pxrConfig.cmake.in # Further drop shebangs line for some py files sed -r -i '1{/^#!/d}' \ pxr/usd/sdr/shaderParserTestUtils.py \ pxr/usd/usdUtils/updateSchemaWithSdrNode.py \ pxr/usdImaging/usdviewq/usdviewApi.py # Remove Google Roboto fonts rm -rf pxr/usdImaging/usdviewq/fonts %cmake \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DPXR_BUILD_USDVIEW:BOOL=ON \ -DPXR_ENABLE_PYTHON_SUPPORT:BOOL=ON \ -DPXR_BUILD_DOCUMENTATION=OFF \ -DPXR_BUILD_EXAMPLES=OFF \ -DPXR_BUILD_IMAGING=ON \ -DPXR_BUILD_MONOLITHIC=ON \ -DPXR_BUILD_TESTS=OFF \ -DPXR_BUILD_TUTORIALS=OFF \ -DPXR_BUILD_USD_IMAGING=ON \ -DPXR_BUILD_USD_TOOLS=ON \ -DPYSIDE_AVAILABLE=ON \ -DPYSIDEUICBINARY=/usr/libexec/qt6/uic \ -DPXR_INSTALL_LOCATION=%{_libexecdir}/usd/plugin \ -DPXR_LIB_PREFIX=%{_libdir}/usd/ \ -DPXR_BUILD_ALEMBIC_PLUGIN:BOOL=ON \ %if %{with vulkan} -DPXR_ENABLE_VULKAN_SUPPORT:BOOL=ON \ %else -DPXR_ENABLE_VULKAN_SUPPORT:BOOL=OFF \ %endif -DPXR_BUILD_EMBREE_PLUGIN=ON \ -DPXR_ENABLE_HDF5_SUPPORT:BOOL=ON \ %if %{with materialx} -DPXR_ENABLE_MATERIALX_SUPPORT:BOOL=ON \ %endif -DPXR_BUILD_OPENCOLORIO_PLUGIN:BOOL=ON \ -DPXR_BUILD_OPENIMAGEIO_PLUGIN:BOOL=ON \ -DPXR_BUILD_DRACO_PLUGIN:BOOL=ON \ -DPXR_ENABLE_OPENVDB_SUPPORT:BOOL=ON \ -DPXR_ENABLE_OSL_SUPPORT:BOOL=ON \ %{nil} %cmake_build %install %cmake_install rm -rv %{buildroot}/usr/share/usd/examples/ %files %license LICENSE.txt %{_bindir}/sdfdump %{_bindir}/sdffilter %{_bindir}/testusdview %{_bindir}/usdGenSchema %{_bindir}/usdcat %{_bindir}/usdchecker %{_bindir}/usdcompress %{_bindir}/usddiff %{_bindir}/usddumpcrate %{_bindir}/usdedit %{_bindir}/usdfixbrokenpixarschemas %{_bindir}/usdgenschemafromsdr %{_bindir}/usdrecord %{_bindir}/usdresolve %{_bindir}/usdstitch %{_bindir}/usdstitchclips %{_bindir}/usdtree %{_bindir}/usdview %{_bindir}/usdzip %{python3_sitearch}/pxr/ %{_libdir}/usd/ %files devel %license LICENSE.txt %{_includedir}/pxr/ %{_libdir}/cmake/pxr/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor