summaryrefslogtreecommitdiff
path: root/coin-or-Cgl-devel.spec
blob: 5bd09b99b918767992566dff56575e0f72486efe (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
# Cgl is distributed as a subproject inside the coin-or/Cgl repository.
# The repository root is the COIN-OR combined-build shell (its configure.ac
# pulls in Sample/Data, CoinUtils, Osi, Clp, Vol, DyLP and Cgl through
# AC_COIN_MAIN_PACKAGEDIR); the Cgl/ 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 Cgl/.
# topdir after --transform: coin-or-Cgl-devel-0.60.10
# Source dir inside tarball: Cgl/
# topdir: coin-or-Cgl-devel-0.60.10 (build dir inside tarball: Cgl/)

Name:           coin-or-Cgl-devel
Version:        0.60.10
Release:        1%{?dist}
Summary:        COIN-OR Cut Generation Library

License:        EPL-2.0
URL:            https://github.com/coin-or/Cgl
Source0:        https://github.com/coin-or/Cgl/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
BuildRequires:  coin-or-Clp-devel

%description
Cgl (COIN-OR Cut Generation Library) is an open collection of cutting plane
implementations ("cut generators") for use in teaching, research and
applications.  Cgl can be used with other COIN-OR packages that make use of
cuts, such as the mixed integer linear programming solver Cbc.  Each cut
generator is maintained separately and all generators are combined into one
library when Cgl is compiled.

This package provides the Cgl shared library, the public C++ headers and the
pkgconfig integration files, so that other COIN-OR projects (Cbc, BCP, ...)
can be built and run against the Cgl cut generation library.

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

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

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

%files
%license LICENSE
%doc README.md
%{_libdir}/libCgl.so*
%{_libdir}/pkgconfig/cgl.pc
%{_includedir}/coin/*
%{_datadir}/coin/doc/Cgl/

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