Compare commits

..

4 commits

Author SHA1 Message Date
Benjamin A. Beasley
bd7d43bd29 Include a freely licensed .obj file in the SRPM for testing 2026-05-20 07:12:52 +01:00
Benjamin A. Beasley
5155440ce4 Use various long options 2026-05-20 07:09:42 +01:00
Benjamin A. Beasley
b32e3035ed Reduce macro indirection in the spec file
[skip changelog]
2026-05-20 07:09:28 +01:00
Benjamin A. Beasley
679782e587 Improve a conditional in the spec file
[skip changelog]
2026-05-20 07:09:19 +01:00

View file

@ -25,12 +25,13 @@ Source2: TestVHACD.1
# Very trivial OBJ mesh file from mcut, which is LGPL-3.0-only
Source3: https://github.com/cutdigital/mcut/raw/refs/tags/v1.3.0/tutorials/BasicCmdLineApp/data/cube.obj
BuildSystem: cmake
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
BuildRequires: gcc-c++
BuildRequires: cmake
# Our choice; the make backend would work just fine.
BuildRequires: ninja-build
%global common_description %{expand:
The V-HACD library decomposes a 3D surface into a set of “near” convex parts.
@ -66,6 +67,7 @@ Summary: Development files for V-HACD
# The MIT-licensed app/wavefront.{h,cpp} do not contribute to this subpackage.
License: BSD-3-Clause
BuildArch: noarch
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_packaging_header_only_libraries
@ -94,25 +96,30 @@ library. Currently, this means TestVHACD; despite the name, this tool has
general utility beyond testing.
%conf -p
cd app
%prep
%autosetup -p1
%build -p
cd app
%build
pushd app >/dev/null
%cmake -GNinja
%cmake_build
popd >/dev/null
%install
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_includedir}' 'include/VHACD.h'
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_mandir}/man1' '%{SOURCE2}'
cd app
pushd app >/dev/null
# There are currently no install targets in app/CMakeLists.txt, so
# %%cmake_install will not work. We install the executable manually instead.
install -D --preserve-timestamps \
--target='%{buildroot}%{_bindir}' '%{_vpath_builddir}/TestVHACD'
popd >/dev/null
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_includedir}' 'include/VHACD.h'
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_mandir}/man1' '%{SOURCE2}'
%check