Let it build

OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=70
This commit is contained in:
Dr. Werner Fink 2019-10-29 11:58:30 +00:00 committed by Git OBS Bridge
parent ed4f3c9bb0
commit 10d36783f1

View File

@ -148,7 +148,7 @@ PKG_CONFIG_PATH=/usr/share/pkgconfig:/usr/lib/pkgconfig:${PWD}
export PKG_CONFIG_PATH export PKG_CONFIG_PATH
%endif %endif
CC=gcc 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 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
CFLAGS="$CFLAGS -DMAXNUMPTS=50000" CFLAGS="$CFLAGS -DMAXNUMPTS=50000"
CFLAGS="$CFLAGS -DBSDLPR" CFLAGS="$CFLAGS -DBSDLPR"
@ -158,14 +158,16 @@ chmod 755 configure
%configure \ %configure \
--docdir=%{_defaultdocdir}/%{name} \ --docdir=%{_defaultdocdir}/%{name} \
--enable-cache-size=512 \ --enable-cache-size=512 \
--enable-xpm-splash \
--enable-tablet \ --enable-tablet \
--with-x \ --with-x \
--with-xaw3d1_5e \ --with-xaw3d1_5e \
--with-xaw3d --with-xaw3d
touch src/splash.xbm
touch src/splash.xpm
make %{?_smp_mflags} CCOPTIONS="$CFLAGS" make %{?_smp_mflags} CCOPTIONS="$CFLAGS"
%install %install
find -name '*.bak' -exec rm -vf '{}' \+
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
mv %{buildroot}%{_mandir}/man1/xfig.1 %{buildroot}%{_mandir}/man1/xfig.1x mv %{buildroot}%{_mandir}/man1/xfig.1 %{buildroot}%{_mandir}/man1/xfig.1x
gzip -9 %{buildroot}%{_mandir}/man1/xfig.1x gzip -9 %{buildroot}%{_mandir}/man1/xfig.1x