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/mathic] f44: Version 1.4
Date: Tue, 09 Jun 2026 22:20:18 GMT	[thread overview]
Message-ID: <178104361828.1.8779395114389206762.rpms-mathic-1872f1dbc3dc@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mathic
            Branch : f44
            Commit : 1872f1dbc3dcee840a0f18bb8bf51c4b13cd8969
            Author : Jerry James <loganjerry@gmail.com>
            Date   : 2026-06-09T15:37:25-06:00
            Stats  : +36/-32 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/mathic/c/1872f1dbc3dcee840a0f18bb8bf51c4b13cd8969?branch=f44

            Log:
            Version 1.4

- Use the cmake declarative buildsystem

---
diff --git a/mathic.spec b/mathic.spec
index 3aa847d..5f63fb0 100644
--- a/mathic.spec
+++ b/mathic.spec
@@ -1,5 +1,5 @@
 Name:           mathic
-Version:        1.3
+Version:        1.4
 Release:        %autorelease
 Summary:        Data structures for Groebner basis computations
 
@@ -10,11 +10,15 @@ Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
 
 # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 ExcludeArch:    %{ix86}
-
+BuildSystem:    cmake
+BuildOption(conf): -DBUILD_SHARED_LIBS:BOOL=ON
+BuildOption(conf): -DBUILD_TESTING:BOOL=ON
+BuildOption(conf): -DCMAKE_SKIP_RPATH:BOOL=ON
+BuildOption(conf): -Denable_divsim:BOOL=ON
+BuildOption(conf): -Denable_pqsim:BOOL=ON
+
+BuildRequires:  cmake(GTest)
 BuildRequires:  gcc-c++
-BuildRequires:  libtool
-BuildRequires:  make
-BuildRequires:  pkgconfig(gtest)
 BuildRequires:  pkgconfig(memtailor)
 
 %description
@@ -51,40 +55,40 @@ Mathic-based tools.  Currently this contains:
 - pqsim: priority queue simulation
 
 %prep
-%autosetup -p1
-
-%conf
-# Fix the URL in the pkgconfig file
-sed -i 's/broune/Macaulay2/' build/autotools/mathic.pc.in
-
-# Upstream doesn't generate the configure script
-autoreconf -fi .
+%autosetup
 
-%build
-export GTEST_PATH=%{_prefix}
-export GTEST_VERSION=$(gtest-config --version)
-%configure --disable-static --enable-shared --with-gtest=yes GTEST_LIBS=-lgtest
+# Fix the installation directory
+sed -i 's, lib, ${LIB_INSTALL_DIR},' CMakeLists.txt
 
-# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
-# -Wl,--as-needed after all the libraries.
-sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
-    -e 's|CC=.g..|& -Wl,--as-needed|' \
-    -i libtool
+# Add an soname
+sed -e '/Threads/iset_target_properties(mathic PROPERTIES VERSION 0.0.4 SOVERSION 0)' \
+    -i src/CMakeLists.txt
 
-%make_build
-%make_build divsim pqsim
-
-%install
-%make_install
+%install -a
+# This file is not installed by cmake
+cp -p src/mathic.h %{buildroot}%{_includedir}
 
 # Install the tools
 mkdir -p %{buildroot}%{_bindir}
-cp -p .libs/{divsim,pqsim} %{buildroot}%{_bindir}
+cp -p %{_vpath_builddir}/{divsim,pqsim} %{buildroot}%{_bindir}
+
+# Install the pkgconfig file for backwards compatibility
+# Fix the URL in the pkgconfig file
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+sed -e 's,@prefix@,%{_prefix},' \
+    -e 's,@exec_prefix@,%{_prefix},' \
+    -e 's,@libdir@,%{_libdir},' \
+    -e 's,@includedir@,%{_includedir},' \
+    -e 's,@PACKAGE_VERSION@,%{version},' \
+    -e 's,broune,Macaulay2,' \
+    build/autotools/mathic.pc.in \
+    > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
+
+# We install these files in a different place
+rm -fr %{buildroot}%{_prefix}/licenses
 
 %check
-export LD_LIBRARY_PATH=$PWD/.libs
-make check
+%{_vpath_builddir}/src/mathic-unit-tests
 
 %files
 %doc README.md

diff --git a/sources b/sources
index aa31d44..09b357e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mathic-1.3.tar.gz) = d555aea95443f91dc6d71d824c8c0ad2c2c288a32fd20cf9c20ca9c6cec5e9e4bc6918551d70ea47ccc893490a05a4881ad184fbbebf4ca607bc47e3b98ff2b4
+SHA512 (mathic-1.4.tar.gz) = 71b98006b422b810815b6aacf77e2a3b6f037997595ae31ce823a417408efbf5f0af17ea1b7092b90a6537eed17dff0b4dce4cc1cf6a6400b00c1685b25bc3e2

                 reply	other threads:[~2026-06-09 22:20 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=178104361828.1.8779395114389206762.rpms-mathic-1872f1dbc3dc@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