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

Name:           coin-or-Osi-devel
Version:        0.108.12
Release:        1%{?dist}
Summary:        COIN-OR Open Solver Interface

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

%description
Osi (Open Solver Interface) provides an abstract base class to a generic
linear programming solver, along with derived classes for specific solvers.
Many applications may be able to use the Osi to insulate themselves from a
specific solver.  Programs written to the OSI standard may be linked to any
solver with an OSI interface and should produce correct results.

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

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

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

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

%files
%license LICENSE
%doc README.md
%{_libdir}/libOsi.so*
%{_libdir}/libOsiCommonTests.so*
%{_libdir}/pkgconfig/osi.pc
%{_libdir}/pkgconfig/osi-unittests.pc
%{_includedir}/coin/*
%{_datadir}/coin/doc/Osi/

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