summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--coin-or-Osi-devel.spec64
-rw-r--r--sources1
3 files changed, 66 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0586c0e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/coin-or-Osi-devel-0.108.12.tar.gz
diff --git a/coin-or-Osi-devel.spec b/coin-or-Osi-devel.spec
new file mode 100644
index 0000000..6f084f7
--- /dev/null
+++ b/coin-or-Osi-devel.spec
@@ -0,0 +1,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
diff --git a/sources b/sources
new file mode 100644
index 0000000..9a2b7cc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8f4b3715948dba633de567d7f97aff08 coin-or-Osi-devel-0.108.12.tar.gz