From 10d36783f1994d00cb33fd397ccff19933431759c5416d3d86a470b1631727a8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 29 Oct 2019 11:58:30 +0000 Subject: [PATCH] Let it build OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=70 --- xfig.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xfig.spec b/xfig.spec index 7627455..747c058 100644 --- a/xfig.spec +++ b/xfig.spec @@ -148,7 +148,7 @@ PKG_CONFIG_PATH=/usr/share/pkgconfig:/usr/lib/pkgconfig:${PWD} export PKG_CONFIG_PATH %endif CC=gcc -CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -w -D_GNU_SOURCE -std=gnu99" +CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -w -D_GNU_SOURCE -std=gnu99 -DUSE_XPM -DUSE_SPLASH" CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="$CFLAGS -DMAXNUMPTS=50000" CFLAGS="$CFLAGS -DBSDLPR" @@ -158,14 +158,16 @@ chmod 755 configure %configure \ --docdir=%{_defaultdocdir}/%{name} \ --enable-cache-size=512 \ - --enable-xpm-splash \ --enable-tablet \ --with-x \ --with-xaw3d1_5e \ --with-xaw3d +touch src/splash.xbm +touch src/splash.xpm make %{?_smp_mflags} CCOPTIONS="$CFLAGS" %install +find -name '*.bak' -exec rm -vf '{}' \+ make DESTDIR=%{buildroot} install mv %{buildroot}%{_mandir}/man1/xfig.1 %{buildroot}%{_mandir}/man1/xfig.1x gzip -9 %{buildroot}%{_mandir}/man1/xfig.1x