summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-21 09:12:58 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-21 09:12:58 +0000
commit1b7b19a212b0fc82a1c43950112aa45383416833 (patch)
tree1e65801f715f4074e6c9252b4b4c42af607aa97a
parent9220e965cff2647996e8aedd761dd929acacb311 (diff)
automatic import of coin-or-Cbc-developeneuler24.03_LTS_SP3
-rw-r--r--.gitignore1
-rw-r--r--coin-or-Cbc-devel.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cb9b85e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/coin-or-Cbc-devel-2.10.13.tar.gz
diff --git a/coin-or-Cbc-devel.spec b/coin-or-Cbc-devel.spec
new file mode 100644
index 0000000..d049b24
--- /dev/null
+++ b/coin-or-Cbc-devel.spec
@@ -0,0 +1,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
diff --git a/sources b/sources
new file mode 100644
index 0000000..d01c3c1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5f84f90752d2f02eaa611c6e625440e7 coin-or-Cbc-devel-2.10.13.tar.gz