public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/coin-or-lemon] rawhide: Use the cmake declarative buildsystem
Date: Mon, 13 Jul 2026 22:00:01 GMT [thread overview]
Message-ID: <178398000120.1.2823812132069851682.rpms-coin-or-lemon-14b6d5949012@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/coin-or-lemon
Branch : rawhide
Commit : 14b6d59490126e652ecf8a74476a22946b7844ce
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-07-13T15:59:49-06:00
Stats : +19/-24 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/coin-or-lemon/c/14b6d59490126e652ecf8a74476a22946b7844ce?branch=rawhide
Log:
Use the cmake declarative buildsystem
---
diff --git a/coin-or-lemon.spec b/coin-or-lemon.spec
index fcbb5b3..d8bc531 100644
--- a/coin-or-lemon.spec
+++ b/coin-or-lemon.spec
@@ -33,9 +33,21 @@ Patch: lemon-%{version}-std-allocator.patch
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
+BuildSystem: cmake
+# CPLEX (aka ILOG) is non-free, so don't try to detect it.
+#
+# We suppress detection of ghostscript, doxygen, and python to make
+# the build behave the same way with and without them installed -- we
+# don't actually need them, since we don't need to rebuild the docs.
+BuildOption(conf): -DDOXYGEN_EXECUTABLE=
+BuildOption(conf): -DGHOSTSCRIPT_EXECUTABLE=
+BuildOption(conf): -DPYTHON_EXECUTABLE=
+BuildOption(conf): -DLEMON_ENABLE_COIN:BOOL=YES
+BuildOption(conf): -DLEMON_ENABLE_GLPK:BOOL=YES
+BuildOption(conf): -DLEMON_ENABLE_ILOG:BOOL=NO
+BuildOption(conf): -DLEMON_ENABLE_SOPLEX:BOOL=YES
BuildRequires: bzip2-devel
-BuildRequires: cmake
BuildRequires: coin-or-Cbc-devel
BuildRequires: gcc
BuildRequires: gcc-c++
@@ -80,8 +92,6 @@ The %{name}-doc package contains %{name}'s API documentation.
%prep
%autosetup -n lemon-%{version} -p1
-
-%conf
# Fix the library directory name on 64-bit systems
if [ "%{_lib}" = "lib64" ]; then
sed -i 's,/lib,/lib64,' cmake/FindCOIN.cmake cmake/FindGLPK.cmake \
@@ -93,32 +103,14 @@ fi
sed -i 's/libemon\.a/libemon.so/' cmake/LEMONConfig.cmake.in
-%build
+%conf -p
# The code is incompatible with C++20 and later
export CXXFLAGS='%{build_cxxflags} -std=gnu++17 -I%{_includedir}/soplex'
-# CPLEX (aka ILOG) is non-free, so don't try to detect it.
-#
-# We suppress detection of ghostscript, doxygen, and python to make
-# the build behave the same way with and without them installed -- we
-# don't actually need them, since we don't need to rebuild the docs.
-%cmake \
- -DDOXYGEN_EXECUTABLE= \
- -DGHOSTSCRIPT_EXECUTABLE= \
- -DPYTHON_EXECUTABLE= \
- -DLEMON_ENABLE_COIN:BOOL=YES \
- -DLEMON_ENABLE_GLPK:BOOL=YES \
- -DLEMON_ENABLE_ILOG:BOOL=NO \
- -DLEMON_ENABLE_SOPLEX:BOOL=YES
-
-%cmake_build
-
-
-%install
-%cmake_install
+%install -a
# Fix up the symlinks the way ldconfig wants them
-%global majver %(cut -d. -f1 <<< %{version})
+%global majver %{gsub %version ^(%d*)%..*$ %1}
cd %{buildroot}%{_libdir}
rm libemon.so
ln -s libemon.so.%{version} libemon.so.%{majver}
@@ -169,6 +161,9 @@ cp -a AUTHORS NEWS README doc/html %{buildroot}%{_docdir}/%{name}
%changelog
+* Mon Jul 13 2026 Jerry James <loganjerry@gmail.com> - 1.3.1-41
+- Use the cmake declarative buildsystem
+
* Fri Jan 16 2026 Jerry James <loganjerry@gmail.com> - 1.3.1-41
- Build with C++17 for now
reply other threads:[~2026-07-13 22:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178398000120.1.2823812132069851682.rpms-coin-or-lemon-14b6d5949012@fedoraproject.org \
--to=loganjerry@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox