Compare commits

..

11 commits

Author SHA1 Message Date
Fedora Release Engineering
ff647cd65b Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:19:33 +00:00
Benjamin A. Beasley
b36ade077f Use the cmake declarative buildsystem 2026-05-20 06:52:32 +01:00
Benjamin A. Beasley
239794398e Include a freely licensed .obj file in the SRPM for testing 2026-05-20 06:48:43 +01:00
Benjamin A. Beasley
fb21d8fcc0 Use various long options 2026-05-20 06:48:43 +01:00
Benjamin A. Beasley
7c8a997a9f The ninja backend is the default now; don’t bother specifying it
https://fedoraproject.org/wiki/Changes/CMake_ninja_default
2026-03-15 08:56:14 +00:00
Benjamin A. Beasley
f680a90dce Reduce macro indirection in the spec file
[skip changelog]
2026-03-15 08:55:20 +00:00
Benjamin A. Beasley
84c32f27ac Improve a conditional in the spec file
[skip changelog]
2026-03-15 08:54:08 +00:00
Fedora Release Engineering
1441e1f67c Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:44:47 +00:00
Fedora Release Engineering
812035e1db Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:55:29 +00:00
Fedora Release Engineering
e2566f1df8 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:02:19 +00:00
Benjamin A. Beasley
570b62cfe0 Invoke %cmake in %conf rather than in %build 2024-11-03 06:59:03 -05:00

View file

@ -25,13 +25,12 @@ 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.
@ -67,7 +66,6 @@ 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
@ -96,30 +94,25 @@ library. Currently, this means TestVHACD; despite the name, this tool has
general utility beyond testing.
%prep
%autosetup -p1
%conf -p
cd app
%build
pushd app >/dev/null
%cmake -GNinja
%cmake_build
popd >/dev/null
%build -p
cd app
%install
pushd app >/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}'
cd app
# 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