blob: e4b16920e1e475c0f9068455e3654ef1f4919844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
%define libname libverdict1_4
Name: verdict
Version: 1.4.1
Release: 1
Summary: Compute quality functions of 2 and 3-dimensional regions
License: BSD-3-Clause
URL: https://github.com/sandialabs/verdict
Source: https://github.com/sandialabs/verdict/archive/refs/tags/%{version}.tar.gz#/verdict-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gtest gtest-devel
%description
Verdict is a library for evaluating the geometric qualities of regions of space.
%package -n %{libname}
Summary: Verdict library for evaluating the geometric qualities of regions of space
Group: System/Libraries
%description -n %{libname}
Verdict is a library for evaluating the geometric qualities of regions of space.
%package devel
Summary: Verdict header files
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
This package contains the header files and cmake config files.
%prep
%setup
%build
%cmake \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
-DVERDICT_ENABLE_TESTING:BOOL=ON \
-DCMAKE_INSTALL_DOCDIR=%{_docdir} \
%{nil}
%cmake_build
%install
%cmake_install
rm -vrf %{buildroot}/%{_docdir}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%{_libdir}/lib*so.*
%files devel
%doc README.md
%{_includedir}/verdict*.h
%{_libdir}/lib*so
%{_libdir}/cmake/verdict
%changelog
* Tue Aug 5 2025 mimanchiok <mimanchiok@qq.com> - 1.4.1-1
- project init
|