-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagmo.spec
55 lines (45 loc) · 1.48 KB
/
pagmo.spec
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
Name: pagmo2
Version: 2.19.1
Release: 1%{?dist}
Summary: A C++ platform to perform parallel computations of optimisation tasks
Group: System Environment/Libraries
License: GPL3
URL: https://esa.github.io/pagmo2/
Source0: https://github.com/esa/pagmo2/archive/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: eigen3-devel
BuildRequires: tbb-devel
BuildRequires: boost-devel
%description
pagmo is a C++ scientific library for massively parallel optimization. It is
built around the idea of providing a unified interface to optimization
algorithms and to optimization problems and to make their deployment in
massively parallel environments easy.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: eigen3-devel
Requires: boost-devel
%description devel
The %{name}-devel package contains development files for %{name}.
%prep
%setup -q -n %{name}-%{version}
%build
%cmake -DPAGMO_WITH_EIGEN3=ON -DCMAKE_UNITY_BUILD=ON
%cmake_build
%install
%cmake_install
%files
%defattr(-,root,root,-)
%{_libdir}/libpagmo.so.9*
%files devel
%defattr(-,root,root,-)
%{_libdir}/libpagmo.so
%{_includedir}/pagmo/
%{_libdir}/cmake/pagmo/
%changelog
* Tue Feb 22 2022 Julien Schueller <schueller at phimeca dot com> 2.18.0-1
- Initial package creation