From d938651d1d08a02bdfeac87488b77051e20db174 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Feb 28 2008 19:39:01 +0000 Subject: - 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 3.2.5-9 +- Fix cmdline parsing (broken by renaming the binary) (bz 435097) + * Tue Feb 19 2008 Fedora Release Engineering - 3.2.5-8 - Autorebuild for GCC 4.3