summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--coin-or-Cgl-devel.spec67
-rw-r--r--sources1
3 files changed, 69 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..aa335c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/coin-or-Cgl-devel-0.60.10.tar.gz
diff --git a/coin-or-Cgl-devel.spec b/coin-or-Cgl-devel.spec
new file mode 100644
index 0000000..5bd09b9
--- /dev/null
+++ b/coin-or-Cgl-devel.spec
@@ -0,0 +1,67 @@
+# Cgl is distributed as a subproject inside the coin-or/Cgl repository.
+# The repository root is the COIN-OR combined-build shell (its configure.ac
+# pulls in Sample/Data, CoinUtils, Osi, Clp, Vol, DyLP and Cgl through
+# AC_COIN_MAIN_PACKAGEDIR); the Cgl/ 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 Cgl/.
+# topdir after --transform: coin-or-Cgl-devel-0.60.10
+# Source dir inside tarball: Cgl/
+# topdir: coin-or-Cgl-devel-0.60.10 (build dir inside tarball: Cgl/)
+
+Name: coin-or-Cgl-devel
+Version: 0.60.10
+Release: 1%{?dist}
+Summary: COIN-OR Cut Generation Library
+
+License: EPL-2.0
+URL: https://github.com/coin-or/Cgl
+Source0: https://github.com/coin-or/Cgl/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
+BuildRequires: coin-or-Clp-devel
+
+%description
+Cgl (COIN-OR Cut Generation Library) is an open collection of cutting plane
+implementations ("cut generators") for use in teaching, research and
+applications. Cgl can be used with other COIN-OR packages that make use of
+cuts, such as the mixed integer linear programming solver Cbc. Each cut
+generator is maintained separately and all generators are combined into one
+library when Cgl is compiled.
+
+This package provides the Cgl shared library, the public C++ headers and the
+pkgconfig integration files, so that other COIN-OR projects (Cbc, BCP, ...)
+can be built and run against the Cgl cut generation library.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+cd Cgl
+%configure \
+ --disable-static \
+ --disable-dependency-tracking
+%make_build
+
+%install
+cd Cgl
+%make_install
+find %{buildroot} -type f -name '*.la' -delete
+
+%files
+%license LICENSE
+%doc README.md
+%{_libdir}/libCgl.so*
+%{_libdir}/pkgconfig/cgl.pc
+%{_includedir}/coin/*
+%{_datadir}/coin/doc/Cgl/
+
+%changelog
+* Mon Sep 21 2026 openEuler Builder <builder@openeuler.org> - 0.60.10-1
+- Initial package for openEuler
diff --git a/sources b/sources
new file mode 100644
index 0000000..9bcc27c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b80c9c6d022238852cebbd6779d9a366 coin-or-Cgl-devel-0.60.10.tar.gz