summaryrefslogtreecommitdiff
path: root/coin-or-Clp-devel.spec
blob: cf3e6849722c0d02a015fc0e5fb9bb7f41ca2775 (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
# Clp is distributed as a subproject inside the coin-or/Clp repository.
# The repository root is the COIN-OR combined-build shell; the Clp/ directory
# is the standalone autotools project (pre-generated configure + Makefile.in
# are shipped in the release tarball, maintainer mode defaults to "no").
# Build is performed inside Clp/.
# topdir after --transform: coin-or-Clp-devel-1.17.11
# Source dir inside tarball: Clp/

Name:           coin-or-Clp-devel
Version:        1.17.11
Release:        1%{?dist}
Summary:        COIN-OR Linear Programming Solver

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

BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  coin-or-CoinUtils-devel
BuildRequires:  coin-or-Osi-devel

%description
Clp (COIN-OR Linear Programming) is an open-source linear programming solver
written in C++.  It is primarily meant to be used as a callable library, but
a basic, stand-alone executable version is also available.  Clp includes
primal and dual simplex algorithms, a primal-dual interior point algorithm
and several barrier algorithms.

This package provides the Clp shared libraries, the OsiClp interface library,
the command line solver, the public C++ headers and the pkgconfig integration
files, so that other COIN-OR projects (Cgl, Cbc, ...) can be built and run
against the Clp solver.

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

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

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

%files
%license LICENSE
%doc README.md
%{_bindir}/clp
%{_libdir}/libClp.so*
%{_libdir}/libClpSolver.so*
%{_libdir}/libOsiClp.so*
%{_libdir}/pkgconfig/clp.pc
%{_libdir}/pkgconfig/osi-clp.pc
%{_includedir}/coin/*
%{_datadir}/coin/doc/Clp/

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