summaryrefslogtreecommitdiff
path: root/voroplusplus.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-12-12 18:34:37 +0000
committerCoprDistGit <infra@openeuler.org>2024-12-12 18:34:37 +0000
commit228368612afa98e7051a7331f835f612c10399c4 (patch)
tree8576481ba05b3c034db547244f5498af3a79ca56 /voroplusplus.spec
parente07de218856bbe699b47b8b6f8044b2593f737ec (diff)
automatic import of voro++openeuler24.03_LTS
Diffstat (limited to 'voroplusplus.spec')
-rw-r--r--voroplusplus.spec89
1 files changed, 89 insertions, 0 deletions
diff --git a/voroplusplus.spec b/voroplusplus.spec
new file mode 100644
index 0000000..1573f73
--- /dev/null
+++ b/voroplusplus.spec
@@ -0,0 +1,89 @@
+%undefine __cmake_in_source_build
+
+Name: voro++
+Version: 0.4.6
+Release: 3
+Summary: Library for 3D computations of the Voronoi tessellation
+
+License: BSD-3-Clause-LBNL
+URL: http://math.lbl.gov/voro++/
+Source0: http://math.lbl.gov/voro++/download/dir/%{name}-%{version}.tar.gz
+Source1: CMakeLists.txt
+# Make base class destructors virtual
+Patch0: voro++_virtual-destructor.patch
+# Fix manpage formatting
+Patch1: voro++_man.patch
+
+BuildRequires: cmake gcc-c++ make
+
+%description
+Voro++ is a software library for carrying out three-dimensional computations
+of the Voronoi tessellation. A distinguishing feature of the Voro++ library
+is that it carries out cell-based calculations, computing the Voronoi cell for
+each particle individually. It is particularly well-suited for applications
+that rely on cell-based statistics, where features of Voronoi cells (e.g.
+volume, centroid, number of faces) can be used to analyze a system of particles.
+
+
+%package devel
+Summary: %{name} headers
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files for %{name}.
+
+
+%package doc
+Summary: %{name} documentation
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+
+%prep
+%autosetup -p1
+install -m 0644 %{SOURCE1} src
+
+
+%build
+%cmake -S src
+%make_build
+
+%install
+%make_install
+install -D -p -m 0644 man/voro++.1 %{buildroot}%{_mandir}/man1/voro++.1
+# Fix path in examples
+find examples -name "*.cc" -exec sed -i 's/"voro++.hh"/<voro++\/voro++.hh>/g' '{}' \;
+cp config.mk examples/
+find examples -name "Makefile" -exec sed -i 's/..\/..\/config.mk/..\/config.mk/g' '{}' \;
+
+
+%files
+%license LICENSE
+%doc README NEWS
+%{_bindir}/%{name}
+%{_mandir}/man1/*
+%{_libdir}/lib%{name}.so.*
+
+
+%files devel
+%{_includedir}/*
+%{_libdir}/lib%{name}.so
+
+%files doc
+%doc LICENSE
+%doc html/
+%doc examples/
+%doc scripts/
+
+
+%changelog
+* Mon Nov 18 2024 Funda Wang <fundawang@yeah.net> - 0.4.6-3
+- adopt to new cmake macro
+
+* Tue Oct 26 2021 chenchen <chen_aka_jan@163.com> - 0.4.6-2
+- change the spec file name to be the same as the repo name
+
+* Wed Aug 11 2021 herengui <herengui@uniontech.com> - 0.4.6-1
+- Package init