public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/TOPCOM] rawhide: Use lua macros instead of invoking external tools
@ 2026-07-15  1:33 Jerry James
  0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-07-15  1:33 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-15  1:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-15  1:33 [rpms/TOPCOM] rawhide: Use lua macros instead of invoking external tools Jerry James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox