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/TOPCOM] rawhide: Use lua macros instead of invoking external tools
Date: Wed, 15 Jul 2026 01:33:21 GMT	[thread overview]
Message-ID: <178407920195.1.16657787155601750636.rpms-TOPCOM-f04255d33612@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/TOPCOM
Branch : rawhide
Commit : f04255d336122f3f082318d6741e0fe61dd2b91a
Author : Jerry James <loganjerry@gmail.com>
Date   : 2026-07-14T19:33:02-06:00
Stats  : +3/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/TOPCOM/c/f04255d336122f3f082318d6741e0fe61dd2b91a?branch=rawhide

Log:
Use lua macros instead of invoking external tools

---
diff --git a/TOPCOM.spec b/TOPCOM.spec
index c1cd20c..b9c4801 100644
--- a/TOPCOM.spec
+++ b/TOPCOM.spec
@@ -3,7 +3,7 @@ Version:        1.1.2
 Release:        12%{?dist}
 Summary:        Triangulations Of Point Configurations and Oriented Matroids
 
-%global upver %(tr . _ <<< %{version})
+%global upver   %{gsub %version %. _}
 
 License:        GPL-2.0-or-later
 URL:            https://www.wm.uni-bayreuth.de/de/team/rambau_joerg/TOPCOM/
@@ -33,8 +33,8 @@ BuildRequires:  pkgconfig(zlib-ng)
 BuildRequires:  qsopt-ex-devel
 Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 
-%global topcom_major %(cut -d. -f1 <<< %{version})
-%global topcom_minor %(cut -d. -f2 <<< %{version})
+%global topcom_major %{gsub %version ^(%d*)%..*$ %1}
+%global topcom_minor %{gsub %version ^%d*%.(%d*)%..*$ %1}
 
 %description
 TOPCOM is a package for computing Triangulations Of Point Configurations and

                 reply	other threads:[~2026-07-15  1:33 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=178407920195.1.16657787155601750636.rpms-TOPCOM-f04255d33612@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