draco/draco.spec

81 lines
2.1 KiB
RPMSpec
Raw Normal View History

Name: draco
Version: 1.5.7
Release: 1mamba
Summary: A library for compressing and decompressing 3D geometric meshes and point clouds
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://google.github.io/draco/
Source: https://github.com/google/draco.git/%{version}/draco-%{version}.tar.bz2
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Draco is a library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.
%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}"
%files
%defattr(-,root,root)
%{_bindir}/draco_decoder
%{_bindir}/draco_decoder-%{version}
%{_bindir}/draco_encoder
%{_bindir}/draco_encoder-%{version}
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libdraco.so.*
%doc AUTHORS LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/draco
%{_includedir}/draco/*
%{_libdir}/libdraco.a
%{_libdir}/libdraco.so
%{_libdir}/pkgconfig/draco.pc
%dir %{_datadir}/cmake/draco
%{_datadir}/cmake/draco/draco-*.cmake
%doc README.md
%changelog
* Thu Nov 21 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.7-1mamba
- package created using the webbuild interface