summaryrefslogtreecommitdiff
path: root/coin-or-CoinUtils-devel.spec
blob: e3ff4c2c524eee5715752581e9f1c69357c02b15 (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
# CoinUtils is distributed as a subproject inside the coin-or/CoinUtils
# repository (the repository root is only the COIN-OR combined-build shell,
# the CoinUtils/ directory is the standalone autotools project).
# Build is performed inside CoinUtils/.
# topdir after --transform: coin-or-CoinUtils-devel-2.11.13
# Source dir inside tarball: CoinUtils/

Name:           coin-or-CoinUtils-devel
Version:        2.11.13
Release:        1%{?dist}
Summary:        Utilities, data structures and linear algebra for COIN-OR projects

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

BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool

%description
CoinUtils is an open-source collection of classes and helper functions that
are generally useful to multiple COIN-OR projects.  These utilities include
classes for storing and manipulating sparse matrices and vectors, performing
matrix factorization, parsing input files in standard formats, building
representations of mathematical programs, comparing floating point numbers
with a tolerance, performing simple presolve operations and warm starting
algorithms for mathematical programs.

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

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

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

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

%files
%license LICENSE
%doc README.md
%{_libdir}/libCoinUtils.so*
%{_libdir}/pkgconfig/coinutils.pc
%{_includedir}/coin/*
%{_datadir}/coin/doc/CoinUtils/

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