Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:munix9
meshoptimizer
meshoptimizer.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File meshoptimizer.spec of Package meshoptimizer
# # spec file for package meshoptimizer # # copyright (c) 2024 munix9@googlemail.com # # stay in sync with debian/rules:MESHOPT_SOVERSION %define sover 2d # https://github.com/zeux/basis_universal/tree/gltfpack %define bu_cm fd8bc7031057f86f10c3d6fae041164d771ca1d8 %define bu_dr basis_universal-%{bu_cm} %define bu_pa %{_builddir}/%{?buildsubdir}/%{bu_dr} Name: meshoptimizer Version: 0.20 Release: 0 Summary: Mesh optimizing library for 3D object rendering License: MIT URL: https://github.com/zeux/meshoptimizer Source0: https://github.com/zeux/meshoptimizer/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: https://github.com/zeux/basis_universal/archive/%{bu_cm}.tar.gz#/%{bu_dr}.tar.gz Source2: baselibs.conf # https://salsa.debian.org/roehling/meshoptimizer/-/tree/master/debian/patches Patch1: 0001-Add-SOVERSION-to-library.patch Patch2: 0002-Remove-debug-code.patch Patch3: 0003-Do-not-add-gltfpack-to-CMake-config.patch BuildRequires: cmake BuildRequires: help2man BuildRequires: ninja %{?suse_build_hwcaps_libs} %if 0%{?suse_version} <= 1500 BuildRequires: gcc10-PIE BuildRequires: gcc10-c++ %else BuildRequires: gcc-c++ %endif %description When a GPU renders triangle meshes, various stages of the GPU pipeline have to process vertex and index data. The efficiency of these stages depends on the data you feed to them; this library provides algorithms to help optimize meshes for these stages, as well as algorithms to reduce the mesh complexity and storage overhead. %package -n lib%{name}%{sover} Summary: Mesh optimizing library for 3D object rendering %description -n lib%{name}%{sover} When a GPU renders triangle meshes, various stages of the GPU pipeline have to process vertex and index data. The efficiency of these stages depends on the data you feed to them; this library provides algorithms to help optimize meshes for these stages, as well as algorithms to reduce the mesh complexity and storage overhead. %package devel Summary: Mesh optimizing library - development headers Requires: lib%{name}%{sover} = %{version} %description devel This package provides the development headers for the library. %package -n gltfpack Summary: A glTF mesh file optimizer License: MIT AND Apache-2.0 AND BSD-3-Clause AND Zlib Provides: %{name}-gltfpack = %{version} %description -n gltfpack gltfpack is a tool that can automatically optimize glTF files to reduce the download size and improve loading and rendering speed. %prep %autosetup -a1 -p1 %build %define __builder ninja %cmake \ %if 0%{?suse_version} <= 1500 -DCMAKE_C_COMPILER=gcc-10 \ -DCMAKE_CXX_COMPILER=g++-10 \ %endif -DCMAKE_SKIP_RPATH=ON \ -DMESHOPT_BASISU_PATH=%{bu_pa} \ -DMESHOPT_BUILD_DEMO=OFF \ -DMESHOPT_BUILD_GLTFPACK=ON \ -DMESHOPT_BUILD_SHARED_LIBS=ON \ -DMESHOPT_SOVERSION=%{sover} %cmake_build %install %cmake_install # man page export PATH=%{buildroot}%{_bindir}:$PATH export LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH install -d -m 0755 %{buildroot}%{_mandir}/man1 help2man -N -n "A glTF mesh file optimizer" --no-discard-stderr \ --version-string="%{version}" --help-option="-h" \ -o %{buildroot}%{_mandir}/man1/gltfpack.1 gltfpack %if 0%{?suse_version} > 1500 %ldconfig_scriptlets -n lib%{name}%{sover} %else %post -n lib%{name}%{sover} -p /sbin/ldconfig %postun -n lib%{name}%{sover} -p /sbin/ldconfig %endif %files -n lib%{name}%{sover} %license LICENSE.md %doc README.md %{_libdir}/lib%{name}.so.* %files devel %{_includedir}/%{name}.h %{_libdir}/cmake/%{name} %{_libdir}/lib%{name}.so %files -n gltfpack %license LICENSE.md %{bu_dr}/LICENSES/* %doc gltf/README.md %{_bindir}/gltfpack %{_mandir}/man1/gltfpack.1%{?ext_man} %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