Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd7d43bd29 | ||
|
|
5155440ce4 | ||
|
|
b32e3035ed | ||
|
|
679782e587 |
1 changed files with 19 additions and 12 deletions
31
v-hacd.spec
31
v-hacd.spec
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue