public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/xfig] epel10: - Fix cmdline parsing (broken by renaming the binary) (bz 435097)
@ 2026-05-30 14:25 Hans de Goede
  0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2026-05-30 14:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/xfig
Branch : epel10
Commit : d938651d1d08a02bdfeac87488b77051e20db174
Author : Hans de Goede <jwrdegoede@fedoraproject.org>
Date   : 2008-02-28T19:39:01+00:00
Stats  : +8/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/xfig/c/d938651d1d08a02bdfeac87488b77051e20db174?branch=epel10

Log:
- Fix cmdline parsing (broken by renaming the binary) (bz 435097)

---
diff --git a/xfig.spec b/xfig.spec
index c30092c..08d6ea2 100644
--- a/xfig.spec
+++ b/xfig.spec
@@ -3,7 +3,7 @@
 Summary: An X Window System tool for drawing basic vector graphics
 Name: xfig
 Version: 3.2.5
-Release: 8%{?dist}
+Release: 9%{?dist}
 License: MIT
 Group: Applications/Multimedia
 URL: http://www.xfig.org/
@@ -108,6 +108,8 @@ done
 %build
 # First build the Xaw3d version
 xmkmf
+# make sure cmdline option parsing still works despite us renaming the binary
+sed -i 's/"xfig"/"xfig-Xaw3d"/' main.c
 make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
      CDEBUGFLAGS="$RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing"
 mv xfig xfig-Xaw3d
@@ -116,6 +118,8 @@ make distclean
 # And then build the normal Xaw version
 mv Imakefile.no-Xaw3d Imakefile
 xmkmf
+# make sure cmdline option parsing still works despite us renaming the binary
+sed -i 's/"xfig-Xaw3d"/"xfig-plain"/' main.c
 make XFIGDOCDIR=%{_docdir}/%{name}-%{version} \
      CDEBUGFLAGS="$RPM_OPT_FLAGS -fno-strength-reduce -fno-strict-aliasing"
 
@@ -182,6 +186,9 @@ fi
 
 
 %changelog
+* Thu Feb 28 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 3.2.5-9
+- Fix cmdline parsing (broken by renaming the binary) (bz 435097)
+
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.2.5-8
 - Autorebuild for GCC 4.3
 

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

only message in thread, other threads:[~2026-05-30 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30 14:25 [rpms/xfig] epel10: - Fix cmdline parsing (broken by renaming the binary) (bz 435097) Hans de Goede

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