Compare commits
11 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff647cd65b | ||
|
|
b36ade077f | ||
|
|
239794398e | ||
|
|
fb21d8fcc0 | ||
|
|
7c8a997a9f | ||
|
|
f680a90dce | ||
|
|
84c32f27ac | ||
|
|
1441e1f67c | ||
|
|
812035e1db | ||
|
|
e2566f1df8 | ||
|
|
570b62cfe0 |
1 changed files with 12 additions and 19 deletions
31
v-hacd.spec
31
v-hacd.spec
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue