Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:frispete:blender
MaterialX
MaterialX.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File MaterialX.spec of Package MaterialX
# # spec file for package MaterialX # # 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/ # %global matrix_datadir %{_datadir}/materialx Name: MaterialX Version: 1.38.8 Release: 0 Summary: An open standard for the exchange of rich material and look-development content across applications and renderers License: Apache-2.0 URL: http://www.materialx.org/ Source: https://github.com/AcademySoftwareFoundation/MaterialX/archive/refs/tags/v1.38.8.tar.gz#/MaterialX-1.38.8.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: pkgconfig(glfw3) BuildRequires: cmake(OpenColorIO) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(xrandr) BuildRequires: pkgconfig(xinerama) BuildRequires: pkgconfig(xcursor) BuildRequires: pkgconfig(xi) BuildRequires: python3-pybind11-devel BuildRequires: python3-devel BuildRequires: pkgconfig(wayland-client) >= 0.2.7 BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(wayland-protocols) >= 1.15 BuildRequires: hicolor-icon-theme BuildRequires: chrpath %description MaterialX is an open standard for representing rich material and look-development content in computer graphics, enabling its platform-independent description and exchange across applications and renderers. Launched at Industrial Light & Magic in 2012, MaterialX has been a key technology in their feature films and real-time experiences since Star Wars: The Force Awakens and Millennium Falcon: Smugglers Run. The project was released as open source in 2017, with companies including Sony Pictures Imageworks, Pixar, Autodesk, Adobe, and SideFX contributing to its ongoing development. In 2021, MaterialX became the seventh hosted project of the Academy Software Foundation. %package devel Summary: Development files for MaterialX Requires: %{name} = %{version} %description devel MaterialX is an open standard for representing rich material and look-development content in computer graphics, enabling its platform-independent description and exchange across applications and renderers. Launched at Industrial Light & Magic in 2012, MaterialX has been a key technology in their feature films and real-time experiences since Star Wars: The Force Awakens and Millennium Falcon: Smugglers Run. The project was released as open source in 2017, with companies including Sony Pictures Imageworks, Pixar, Autodesk, Adobe, and SideFX contributing to its ongoing development. In 2021, MaterialX became the seventh hosted project of the Academy Software Foundation. This package holds the development files %prep %autosetup -p1 %build sed -i 's|CMAKE_INSTALL_PREFIX|CMAKE_BINARY_DIR|g' python/CMakeLists.txt sed -i 's|resources|%{matrix_datadir}/resources|g' \ source/MaterialXView/{Main.cpp,Viewer.cpp} \ source/MaterialXGraphEditor/{Main.cpp,Graph.cpp} sed -i 's|"libraries"|"%{matrix_datadir}/libraries"|g' \ source/MaterialXGraphEditor/{Main.cpp,Graph.cpp} \ source/MaterialXGenShader/GenOptions.h \ source/MaterialXView/Main.cpp %cmake \ -Wno-dev \ -DMATERIALX_INSTALL_LIB_PATH=%{_lib} \ -DMATERIALX_INSTALL_STDLIB_PATH=%{matrix_datadir}/libraries/ \ %if %{with python} -DMATERIALX_PYTHON_FOLDER_NAME=%{python3_sitearch}/%{name}/ \ -DMATERIALX_BUILD_PYTHON=ON \ %else -DMATERIALX_BUILD_PYTHON=OFF \ %endif -DMATERIALX_BUILD_SHARED_LIBS=ON \ -DMATERIALX_BUILD_VIEWER=ON \ -DMATERIALX_BUILD_GRAPH_EDITOR=ON %cmake_build %install %cmake_install export pkgdir=%{buildroot} find %{buildroot} -type f -name "README.md" -delete rm %{buildroot}/usr/*.md %{buildroot}/usr/LICENSE rm -rv %{buildroot}/home # for file in %{buildroot}/usr/python/Scripts/*; do # name="${file%.py}" # chmod +x "$file" # mv "$file" $name # done mkdir -p %{buildroot}%{matrix_datadir} mv %{buildroot}/usr/resources %{buildroot}%{matrix_datadir}/resources # Fix CMake configs sed -i 's|libraries|share/materialx/libraries|g' %{buildroot}%{_libdir}/cmake/MaterialX/MaterialXConfig.cmake sed -i 's|python|lib/python'$_pyver'/site-packages/MaterialX|g' %{buildroot}%{_libdir}/cmake/MaterialX/MaterialXConfig.cmake sed -i 's|resources|share/materialx/resources|g' %{buildroot}%{_libdir}/cmake/MaterialX/MaterialXConfig.cmake install -Dm755 documents/Images/MaterialXLogo_200x155.png %{buildroot}/usr/share/icons/hicolor/256x256/apps/materialx.png # mkdir -p %{buildroot}/usr/share/{applications,mime/model,licenses/%{name}} # cp ${srcdir}/{materialx-grapheditor.desktop,materialx-view.desktop} %{buildroot}/usr/share/applications # install -Dm644 ${srcdir}/materialx.xml %{buildroot}/usr/share/mime/model/materialx.xml %if %{with python} cp %{buildroot}/usr/python/Scripts/* %{buildroot}/usr/bin rm -r %{buildroot}/usr/python/Scripts mkdir -p %{buildroot}%{python3_sitearch} mv %{buildroot}/usr/python %{python3_sitearch} %endif # Remove empty dirs find %{buildroot}/usr -empty -type d -delete -print chrpath -d %{buildroot}%{_bindir}/MaterialXView %ldconfig_scriptlets %files %{matrix_datadir} %{_bindir}/MaterialXGraphEditor %{_bindir}/MaterialXView %{_libdir}/libMaterialX*.so.* %{_datadir}/icons/hicolor/256x256/apps/materialx.png %files devel %{_includedir}/%{name}*/ %{_libdir}/libMaterialX*.so %{_libdir}/cmake/%{name}/ %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