summaryrefslogtreecommitdiff
path: root/verdict.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-08-06 12:26:25 +0000
committerCoprDistGit <infra@openeuler.org>2025-08-06 12:26:25 +0000
commit7de7021d0633a207b752c93d547dfa0a1117aab7 (patch)
tree137105c6657e184033d70f89b27f5c4c45649f39 /verdict.spec
parent873cafe987047e8c481258dcc58b0219aab8df50 (diff)
automatic import of verdictopeneuler25.03
Diffstat (limited to 'verdict.spec')
-rw-r--r--verdict.spec63
1 files changed, 63 insertions, 0 deletions
diff --git a/verdict.spec b/verdict.spec
new file mode 100644
index 0000000..e4b1692
--- /dev/null
+++ b/verdict.spec
@@ -0,0 +1,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