summaryrefslogtreecommitdiff
path: root/coin-or-Cbc-devel.spec
diff options
context:
space:
mode:
Diffstat (limited to 'coin-or-Cbc-devel.spec')
-rw-r--r--coin-or-Cbc-devel.spec77
1 files changed, 77 insertions, 0 deletions
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