From b8f5414b81c3968b1367256de0ed8ba8922e9f0b733a3342633068fe4edd07d8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 11 Feb 2014 09:34:44 +0000 Subject: [PATCH 1/3] . OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=40 --- xfig.changes | 5 +++++ xfig.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/xfig.changes b/xfig.changes index c3b8cca..a625d0f 100644 --- a/xfig.changes +++ b/xfig.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 11 09:34:13 UTC 2014 - werner@suse.de + +- Make if build for oS 13.1 + ------------------------------------------------------------------- Tue Feb 11 08:17:58 UTC 2014 - werner@suse.de diff --git a/xfig.spec b/xfig.spec index ae0eecb..7c1766d 100644 --- a/xfig.spec +++ b/xfig.spec @@ -20,7 +20,11 @@ Name: xfig BuildRequires: dos2unix BuildRequires: flex BuildRequires: freetype2-devel +%if 0%{suse_version} > 1310 BuildRequires: libXaw3d-devel +%else +BuildRequires: xaw3d-devel +%endif BuildRequires: libjpeg-devel BuildRequires: netpbm BuildRequires: update-desktop-files From b6ed8475f904b422c76730cc41233a1efa40909531ce1fb87186d0a8903800db Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 11 Feb 2014 10:26:09 +0000 Subject: [PATCH 2/3] . OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=42 --- xfig.spec | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xfig.spec b/xfig.spec index 7c1766d..25abe49 100644 --- a/xfig.spec +++ b/xfig.spec @@ -132,6 +132,23 @@ cp %{S:1} . test ! -e Libraries/Examples/aircraft.fig || { echo forbidden file found 1>&2; exit 1; } %build +%if 0%{suse_version} <= 1310 +cat > xaw3d.pc <<-'EOF' + prefix=/usr + exec_prefix=/usr + libdir=/usr/lib + includedir=/usr/include + Name: Xaw3d + Description: X 3D Athena Widgets Library + Version: 1.5E + Requires: xproto xmu xt + Requires.private: x11 xext + Cflags: -I${includedir} -DXAW_INTERNATIONALIZATION -DXAW_MULTIPLANE_PIXMAPS -DXAW_GRAY_BLKWHT_STIPPLES -DXAW_ARROW_SCROLLBARS + Libs: -L${libdir} -lXaw3d +EOF +PKG_CONFIG_PATH=/usr/share/pkgconfig:/usr/lib/pkgconfig:${PWD} +export PKG_CONFIG_PATH +%endif xmkmf -a -D_DATA='%{_data}' -DStandardDefines='' CCOPTIONS="$RPM_OPT_FLAGS -fno-strict-aliasing -w -D_GNU_SOURCE -std=gnu99" CCOPTIONS="$CCOPTIONS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" From 782d6fe35626405efd37c7f2c50621f685f3166412761f0519cabdfc5b0a646a Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 11 Feb 2014 10:26:55 +0000 Subject: [PATCH 3/3] . OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=43 --- xfig.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xfig.changes b/xfig.changes index a625d0f..11682e9 100644 --- a/xfig.changes +++ b/xfig.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 11 10:26:27 UTC 2014 - werner@suse.de + +- Provide a pkgconfig file for older Xaw3d package + ------------------------------------------------------------------- Tue Feb 11 09:34:13 UTC 2014 - werner@suse.de