2007-01-16 00:42:25 +01:00
|
|
|
#
|
2011-10-21 11:57:05 +02:00
|
|
|
# spec file for package xfig
|
2007-01-16 00:42:25 +01:00
|
|
|
#
|
2019-10-29 12:15:09 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:42:25 +01:00
|
|
|
#
|
2009-04-07 14:18:22 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-29 12:15:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:42:25 +01:00
|
|
|
#
|
|
|
|
|
2008-03-05 10:30:16 +01:00
|
|
|
|
2007-01-16 00:42:25 +01:00
|
|
|
Name: xfig
|
2013-12-10 15:25:41 +01:00
|
|
|
BuildRequires: dos2unix
|
2016-09-22 12:48:04 +02:00
|
|
|
BuildRequires: fdupes
|
2012-05-30 13:49:39 +02:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: freetype2-devel
|
2015-06-20 14:03:52 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xpm)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
2014-02-11 10:34:44 +01:00
|
|
|
%if 0%{suse_version} > 1310
|
2013-12-10 15:25:41 +01:00
|
|
|
BuildRequires: libXaw3d-devel
|
2014-02-11 10:34:44 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: xaw3d-devel
|
|
|
|
%endif
|
2018-03-02 00:36:55 +01:00
|
|
|
BuildRequires: libXmu-devel
|
2012-05-30 13:49:39 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2018-03-02 00:36:55 +01:00
|
|
|
BuildRequires: libpng-devel
|
2012-05-30 13:49:39 +02:00
|
|
|
BuildRequires: netpbm
|
|
|
|
BuildRequires: update-desktop-files
|
2007-01-16 00:42:25 +01:00
|
|
|
Provides: xfig.3.2.3d
|
2012-10-10 09:27:19 +02:00
|
|
|
Requires: efont-unicode
|
2012-05-30 13:49:39 +02:00
|
|
|
Requires: ghostscript-fonts-std
|
2012-10-10 09:27:19 +02:00
|
|
|
Requires: ifnteuro
|
2018-09-10 15:01:00 +02:00
|
|
|
Requires: mkfontdir
|
2018-09-06 13:48:47 +02:00
|
|
|
Requires: mkfontscale
|
2012-05-30 13:49:39 +02:00
|
|
|
Requires: netpbm
|
|
|
|
Requires: transfig
|
2012-10-10 09:27:19 +02:00
|
|
|
Requires: xorg-x11-fonts
|
|
|
|
Requires: xorg-x11-fonts-core
|
2019-10-29 12:15:09 +01:00
|
|
|
Version: 3.2.7b
|
2012-05-30 13:49:39 +02:00
|
|
|
Release: 0
|
2007-01-16 00:42:25 +01:00
|
|
|
Summary: Facility for Interactive Generation of Figures under the X Window System
|
2018-03-02 00:36:55 +01:00
|
|
|
# www.xfig.org is dead
|
2012-05-31 13:45:24 +02:00
|
|
|
License: MIT
|
2012-05-30 13:49:39 +02:00
|
|
|
Group: Productivity/Graphics/Vector Editors
|
2016-09-22 12:48:04 +02:00
|
|
|
Url: http://mcj.sourceforge.net/
|
2012-05-30 13:49:39 +02:00
|
|
|
#
|
|
|
|
# Remove forbidden files: aircraft.fig
|
2018-05-07 09:56:07 +02:00
|
|
|
# <uncompess> xfig-3.2.5c.tar
|
|
|
|
# tar -f xfig-3.2.5c.tar --delete xfig-3.2.5c/Libraries/Examples/aircraft.fig
|
|
|
|
# <compress> xfig-3.2.5c.tar
|
2012-05-30 13:49:39 +02:00
|
|
|
#
|
2018-05-07 09:56:07 +02:00
|
|
|
#Source: http://sourceforge.net/projects/mcj/files/xfig-%{version}.tar.xz/download#/xfig-%{version}.tar.xz
|
2016-09-22 12:48:04 +02:00
|
|
|
Source: xfig-%{version}.tar.xz
|
2007-01-16 00:42:25 +01:00
|
|
|
Source1: font-test.fig
|
|
|
|
Source3: xfig.sh
|
|
|
|
Source4: xfig.desktop
|
2017-02-02 14:42:11 +01:00
|
|
|
#Patch0: xfig-%{version}.dif
|
|
|
|
Patch0: xfig-3.2.6.dif
|
2009-12-16 10:58:06 +01:00
|
|
|
Patch1: xfig.3.2.5-urw-fonts.dif
|
|
|
|
Patch2: xfig.3.2.5-xim.dif
|
2007-01-16 00:42:25 +01:00
|
|
|
Patch3: xfig.3.2.3d-international-std-fonts.dif
|
2013-02-07 15:15:47 +01:00
|
|
|
# PATCH-FIX-UPSTREAM xfig.3.2.5b-mediaboxrealnb.dif [debian#530898]
|
2009-12-16 10:58:06 +01:00
|
|
|
Patch5: xfig.3.2.5b-null.dif
|
|
|
|
Patch6: xfig.3.2.5b-locale.dif
|
|
|
|
Patch7: xfig.3.2.5b-fixes.dif
|
|
|
|
Patch8: xfig.3.2.5b-pspdftex.dif
|
2010-08-10 13:01:52 +02:00
|
|
|
Patch10: xfig.3.2.5b-preview.dif
|
2007-01-16 00:42:25 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
|
|
|
|
%if "%_exec_prefix" == "/usr/X11R6"
|
|
|
|
%global _mandir %{_exec_prefix}/man
|
|
|
|
%define _x11data %{_exec_prefix}/lib/X11
|
|
|
|
%define _data $(LIBDIR)
|
|
|
|
%define _appdefdir %{_x11data}/app-defaults
|
|
|
|
%else
|
|
|
|
%define _x11data %{_datadir}/X11
|
|
|
|
%define _data $(SHAREDIR)
|
|
|
|
%define _appdefdir %{_x11data}/app-defaults
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Xfig is a menu-driven tool that allows the user to draw and manipulate
|
|
|
|
objects interactively in an X Window System window. The resulting
|
|
|
|
pictures can be saved, printed on PostScript printers, or converted to
|
|
|
|
a variety of other formats (to allow inclusion in LaTeX documents, for
|
|
|
|
example).
|
|
|
|
|
|
|
|
Documentation: /usr/share/doc/packages/xfig & man xfig
|
|
|
|
|
|
|
|
Examples: /usr/share/doc/packages/xfig/TheExamples
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Anthony Dekker <dekker@ACM.org>
|
|
|
|
Brian V. Smith <bvsmith@lbl.gov>
|
|
|
|
Jim Daley <jdaley@cix.compulink.co.uk>
|
|
|
|
Ross Martin <martin@trcsun3.eas.asu.edu>
|
|
|
|
Uwe Bonnes <bon@lte.e-technik.uni-erlangen.de>
|
|
|
|
|
|
|
|
%prep
|
2016-09-22 12:48:04 +02:00
|
|
|
%setup -q -n xfig-%{version}
|
2013-12-10 15:25:41 +01:00
|
|
|
set +x
|
2007-07-27 02:14:11 +02:00
|
|
|
find -type f | xargs -r chmod a-x,go-w
|
2013-12-10 15:25:41 +01:00
|
|
|
find -type f | while read file; do
|
|
|
|
if grep -qr $'\r' $file ; then
|
|
|
|
dos2unix --keepdate --quiet $file
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
set -x
|
2007-01-16 00:42:25 +01:00
|
|
|
%patch0 -p0
|
|
|
|
%patch1 -p0 -b .urw-fonts
|
2007-07-27 02:14:11 +02:00
|
|
|
%patch2 -p0 -b .xim
|
2013-12-10 15:25:41 +01:00
|
|
|
%patch3 -p0 -b .international-std-fonts
|
2007-07-27 02:14:11 +02:00
|
|
|
%patch5 -p0 -b .null
|
|
|
|
%patch6 -p0 -b .locale
|
|
|
|
%patch7 -p0 -b .fixes
|
2008-04-26 11:41:29 +02:00
|
|
|
%patch8 -p0 -b .pspdftex
|
2010-08-10 13:01:52 +02:00
|
|
|
%patch10 -p0 -b .preview
|
2009-04-07 14:18:22 +02:00
|
|
|
cp %{S:1} .
|
2012-05-30 13:49:39 +02:00
|
|
|
test ! -e Libraries/Examples/aircraft.fig || { echo forbidden file found 1>&2; exit 1; }
|
2007-01-16 00:42:25 +01:00
|
|
|
|
|
|
|
%build
|
2014-02-11 11:26:09 +01:00
|
|
|
%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
|
2016-09-22 12:48:04 +02:00
|
|
|
CC=gcc
|
2019-10-29 12:58:30 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -w -D_GNU_SOURCE -std=gnu99 -DUSE_XPM -DUSE_SPLASH"
|
2016-09-22 12:48:04 +02:00
|
|
|
CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
CFLAGS="$CFLAGS -DMAXNUMPTS=50000"
|
|
|
|
CFLAGS="$CFLAGS -DBSDLPR"
|
2017-01-14 08:58:25 +01:00
|
|
|
CFLAGS="$CFLAGS -DGSBIT"
|
2016-09-22 12:48:04 +02:00
|
|
|
export CC CFLAGS
|
|
|
|
chmod 755 configure
|
|
|
|
%configure \
|
|
|
|
--docdir=%{_defaultdocdir}/%{name} \
|
|
|
|
--enable-cache-size=512 \
|
2017-02-02 14:42:11 +01:00
|
|
|
--enable-tablet \
|
2016-09-22 12:48:04 +02:00
|
|
|
--with-x \
|
|
|
|
--with-xaw3d1_5e \
|
|
|
|
--with-xaw3d
|
2019-10-29 12:58:30 +01:00
|
|
|
touch src/splash.xbm
|
|
|
|
touch src/splash.xpm
|
2016-09-22 12:48:04 +02:00
|
|
|
make %{?_smp_mflags} CCOPTIONS="$CFLAGS"
|
2007-01-16 00:42:25 +01:00
|
|
|
|
|
|
|
%install
|
2019-10-29 12:58:30 +01:00
|
|
|
find -name '*.bak' -exec rm -vf '{}' \+
|
2007-01-16 00:42:25 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
2016-09-22 12:48:04 +02:00
|
|
|
mv %{buildroot}%{_mandir}/man1/xfig.1 %{buildroot}%{_mandir}/man1/xfig.1x
|
|
|
|
gzip -9 %{buildroot}%{_mandir}/man1/xfig.1x
|
|
|
|
%fdupes %{buildroot}
|
2007-01-16 00:42:25 +01:00
|
|
|
%suse_update_desktop_file xfig VectorGraphics &> /dev/null
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc %{_docdir}/%{name}
|
2016-09-22 12:48:04 +02:00
|
|
|
%dir %{_appdefdir}
|
|
|
|
%{_appdefdir}/Fig
|
|
|
|
%{_bindir}/xfig*
|
2007-01-16 00:42:25 +01:00
|
|
|
%{_datadir}/applications/xfig.desktop
|
|
|
|
%{_datadir}/pixmaps/xfig.png
|
2016-09-22 12:48:04 +02:00
|
|
|
%{_datadir}/xfig
|
|
|
|
%doc %{_mandir}/man1/xfig.1*.gz
|
2007-01-16 00:42:25 +01:00
|
|
|
|
2007-06-03 22:09:19 +02:00
|
|
|
%changelog
|