summaryrefslogtreecommitdiff
path: root/coin-or-Cbc-devel.spec
blob: d049b240f178e1a35b7a6ffc17c164ce6fde494f (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Cbc is distributed as a subproject inside the coin-or/Cbc repository
# (the repository root contains only the Cbc/ project directory).
# Build is performed inside Cbc/ (standalone autotools project).
# topdir after --transform: coin-or-Cbc-devel-2.10.13
# Source dir inside tarball: Cbc/

Name:           coin-or-Cbc-devel
Version:        2.10.13
Release:        1%{?dist}
Summary:        Development files for the COIN-OR branch-and-cut solver (Cbc)

License:        EPL-2.0
URL:            https://github.com/coin-or/Cbc
Source0:        https://github.com/coin-or/Cbc/archive/refs/tags/releases/2.10.13.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  readline-devel
BuildRequires:  coin-or-CoinUtils-devel
BuildRequires:  coin-or-Osi-devel
BuildRequires:  coin-or-Clp-devel
BuildRequires:  coin-or-Cgl-devel

Requires:       coin-or-CoinUtils-devel
Requires:       coin-or-Osi-devel
Requires:       coin-or-Clp-devel
Requires:       coin-or-Cgl-devel

%description
Cbc (COIN-OR branch and cut) is an open source mixed integer linear
programming solver written in C++.  It is designed to be used both as a
callable library and through the command line solver "cbc".

This package provides the Cbc shared libraries (Cbc, CbcSolver and OsiCbc),
the public C++ and C headers, the pkgconfig integration files and the
command line solver, so that other software can be built and run against
the Cbc library.

%prep
%autosetup -n %{name}-%{version}

%build
cd Cbc
%configure \
    --disable-static \
    --disable-dependency-tracking
%make_build

%install
cd Cbc
%make_install
find %{buildroot} -type f -name '*.la' -delete

%files
%license LICENSE
%doc README.md
%{_bindir}/cbc*
%{_libdir}/libCbc.so*
%{_libdir}/libCbcSolver.so*
%{_libdir}/libOsiCbc.so*
%{_libdir}/pkgconfig/cbc.pc
%{_libdir}/pkgconfig/osi-cbc.pc
%{_includedir}/coin/Cbc*.h
%{_includedir}/coin/Cbc*.hpp
%{_includedir}/coin/OsiCbc*.hpp
%{_includedir}/coin/ClpAmplObjective.hpp
%{_includedir}/coin/ClpConstraintAmpl.hpp
%{_datadir}/coin/doc/Cbc/

%changelog
* Mon Sep 21 2026 openEuler Builder <builder@openeuler.org> - 2.10.13-1
- Initial package for openEuler