summaryrefslogtreecommitdiff
path: root/coin-or-Clp-devel.spec
diff options
context:
space:
mode:
Diffstat (limited to 'coin-or-Clp-devel.spec')
-rw-r--r--coin-or-Clp-devel.spec68
1 files changed, 68 insertions, 0 deletions
diff --git a/coin-or-Clp-devel.spec b/coin-or-Clp-devel.spec
new file mode 100644
index 0000000..cf3e684
--- /dev/null
+++ b/coin-or-Clp-devel.spec
@@ -0,0 +1,68 @@
+# Clp is distributed as a subproject inside the coin-or/Clp repository.
+# The repository root is the COIN-OR combined-build shell; the Clp/ 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 Clp/.
+# topdir after --transform: coin-or-Clp-devel-1.17.11
+# Source dir inside tarball: Clp/
+
+Name: coin-or-Clp-devel
+Version: 1.17.11
+Release: 1%{?dist}
+Summary: COIN-OR Linear Programming Solver
+
+License: EPL-2.0
+URL: https://github.com/coin-or/Clp
+Source0: https://github.com/coin-or/Clp/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
+
+%description
+Clp (COIN-OR Linear Programming) is an open-source linear programming solver
+written in C++. It is primarily meant to be used as a callable library, but
+a basic, stand-alone executable version is also available. Clp includes
+primal and dual simplex algorithms, a primal-dual interior point algorithm
+and several barrier algorithms.
+
+This package provides the Clp shared libraries, the OsiClp interface library,
+the command line solver, the public C++ headers and the pkgconfig integration
+files, so that other COIN-OR projects (Cgl, Cbc, ...) can be built and run
+against the Clp solver.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+cd Clp
+%configure \
+ --disable-static \
+ --disable-dependency-tracking
+%make_build
+
+%install
+cd Clp
+%make_install
+find %{buildroot} -type f -name '*.la' -delete
+
+%files
+%license LICENSE
+%doc README.md
+%{_bindir}/clp
+%{_libdir}/libClp.so*
+%{_libdir}/libClpSolver.so*
+%{_libdir}/libOsiClp.so*
+%{_libdir}/pkgconfig/clp.pc
+%{_libdir}/pkgconfig/osi-clp.pc
+%{_includedir}/coin/*
+%{_datadir}/coin/doc/Clp/
+
+%changelog
+* Mon Sep 21 2026 openEuler Builder <builder@openeuler.org> - 1.17.11-1
+- Initial package for openEuler