public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/jbig2dec] rawhide: Add version guards to remind rebuild of dependent packages
@ 2026-08-07 14:50 Zdenek Dohnal
  0 siblings, 0 replies; only message in thread
From: Zdenek Dohnal @ 2026-08-07 14:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/jbig2dec
Branch : rawhide
Commit : 71d5c85badc25b84422e2c30ef25c157fadeaff3
Author : Zdenek Dohnal <zdohnal@redhat.com>
Date   : 2026-08-07T16:48:33+02:00
Stats  : +16/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/jbig2dec/c/71d5c85badc25b84422e2c30ef25c157fadeaff3?branch=rawhide

Log:
Add version guards to remind rebuild of dependent packages

---
diff --git a/jbig2dec.spec b/jbig2dec.spec
index a34000d..ae03da4 100644
--- a/jbig2dec.spec
+++ b/jbig2dec.spec
@@ -1,3 +1,12 @@
+# update this when there is a new version
+# !BEWARE! all dependent packages have to rebuilt and released
+# together with new jbig2dec version - use side tags
+%if 0%{?fedora} >= 40 || 0%{?rhel} > 9
+%global current_version 0.20
+%else
+%global current_version 0.19
+%endif
+
 Name:		jbig2dec
 Version:	0.20
 Release:	%autorelease
@@ -49,6 +58,13 @@ which requires the jbig2dec library.
 
 
 %build
+%if "x%{version}" != "x%{current_version}"
+  echo "Versions mismatch - update current_version macro, build jbig2dec\
+ in side tag and then dependent packages with it too. Push them all \
+ in the same update to prevent breakages"
+ exit 1
+%endif
+
 autoreconf -fi
 %configure --disable-static
 %make_build

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

only message in thread, other threads:[~2026-08-07 14:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 14:50 [rpms/jbig2dec] rawhide: Add version guards to remind rebuild of dependent packages Zdenek Dohnal

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