2007-01-16 00:39:38 +01:00
|
|
|
#
|
2012-07-10 12:13:42 +02:00
|
|
|
# spec file for package transfig
|
2007-01-16 00:39:38 +01:00
|
|
|
#
|
2018-03-02 22:39:09 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:39:38 +01:00
|
|
|
#
|
2008-10-12 00:29:41 +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.
|
|
|
|
|
2007-01-16 00:39:38 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-25 16:49:47 +02:00
|
|
|
|
2007-01-16 00:39:38 +01:00
|
|
|
Name: transfig
|
2016-09-23 14:11:02 +02:00
|
|
|
BuildRequires: fdupes
|
2012-07-10 12:13:42 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: netpbm
|
|
|
|
BuildRequires: texlive-latex
|
|
|
|
%if %suse_version > 1220
|
2012-07-24 11:46:54 +02:00
|
|
|
BuildRequires: texlive-amsfonts
|
|
|
|
BuildRequires: texlive-cm-super
|
2012-07-10 12:13:42 +02:00
|
|
|
BuildRequires: texlive-courier
|
|
|
|
BuildRequires: texlive-dvips
|
2016-09-23 14:11:02 +02:00
|
|
|
BuildRequires: texlive-epstopdf
|
2012-07-24 11:46:54 +02:00
|
|
|
BuildRequires: texlive-pdftex
|
2012-07-10 12:13:42 +02:00
|
|
|
BuildRequires: texlive-times
|
2016-09-23 14:11:02 +02:00
|
|
|
BuildRequires: tex(beamer.cls)
|
|
|
|
BuildRequires: tex(german.sty)
|
|
|
|
BuildRequires: tex(multimedia.sty)
|
2012-07-10 12:13:42 +02:00
|
|
|
BuildRequires: tex(times.sty)
|
2016-09-23 14:11:02 +02:00
|
|
|
BuildRequires: tex(xmpmulti.sty)
|
2012-07-10 12:13:42 +02:00
|
|
|
%endif
|
2013-02-08 13:54:00 +01:00
|
|
|
BuildRequires: libpng-devel
|
2018-03-02 22:39:09 +01:00
|
|
|
BuildRequires: pkgconfig(xpm)
|
2016-09-23 14:11:02 +02:00
|
|
|
# www.xfig.org is dead
|
|
|
|
Url: http://mcj.sourceforge.net/
|
|
|
|
Provides: fig2dev
|
2007-01-16 00:39:38 +01:00
|
|
|
Provides: transfig.3.2.3d
|
2012-07-10 12:13:42 +02:00
|
|
|
Requires: ghostscript-fonts-std
|
|
|
|
Requires: ghostscript-library
|
|
|
|
Requires: netpbm
|
2016-09-23 14:11:02 +02:00
|
|
|
Requires: texlive-epstopdf
|
2017-02-02 15:06:14 +01:00
|
|
|
Version: 3.2.6a
|
2012-07-10 12:13:42 +02:00
|
|
|
Release: 0
|
2007-01-16 00:39:38 +01:00
|
|
|
Summary: Graphic Converter
|
2017-11-22 13:37:26 +01:00
|
|
|
#Source: http://sourceforge.net/projects/mcj/files/fig2dev-%{version}.tar.xz/download#/fig2dev-%{version}.tar.xz
|
2012-07-10 12:13:42 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Graphics/Convertors
|
2017-02-06 12:54:25 +01:00
|
|
|
Source: fig2dev-%{version}.tar.xz
|
2017-02-02 15:06:14 +01:00
|
|
|
Patch0: transfig-3.2.6.dif
|
2009-12-16 17:02:41 +01:00
|
|
|
Patch2: transfig.3.2.5-binderman.dif
|
2013-02-07 17:27:43 +01:00
|
|
|
Patch3: transfig.3.2.5d-mediaboxrealnb.dif
|
2015-04-19 21:33:35 +02:00
|
|
|
Patch4: transfig-fix-afl.patch
|
2016-09-23 14:11:02 +02:00
|
|
|
Patch42: fig2dev-3.2.6-genps_oldpatterns.patch
|
|
|
|
Patch43: fig2dev-3.2.6-fig2mpdf.patch
|
|
|
|
Patch44: fig2dev-3.2.6-fig2mpdf-doc.patch
|
2017-11-22 13:37:26 +01:00
|
|
|
Patch45: fig2dev-3.2.6a-RGBFILE.patch
|
|
|
|
Patch46: fig2dev-3.2.6a-man-typo.patch
|
|
|
|
Patch47: fig2dev-3.2.6a-input-sanitizing.patch
|
|
|
|
Patch48: fig2dev-3.2.6a-style-overflow.patch
|
2007-01-16 00:39:38 +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)
|
|
|
|
%else
|
|
|
|
%define _x11data %{_datadir}/X11
|
|
|
|
%define _data $(SHAREDIR)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
TransFig is a set of tools for creating TeX documents with graphics
|
|
|
|
that are portable in the sense that they can be printed in a wide
|
|
|
|
variety of environments.
|
|
|
|
|
|
|
|
The transfig directory contains the source for the transfig command
|
|
|
|
which generates a Makefile which translates Fig code to various
|
|
|
|
graphics description languages using the fig2dev program. In previous
|
|
|
|
releases, this command was implemented as a shell script.
|
|
|
|
|
|
|
|
Documentation: man transfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Anthony Starks <ajs@merck.com>
|
|
|
|
George Ferguson <ferguson@cs.rochester.edu>
|
|
|
|
Herbert Bauer <heb@regent.e-technik.tu-muenchen.de>
|
|
|
|
Micah Beck <supoj@sally.utexas.edu>
|
|
|
|
Supoj Sutantavibul <beck@cs.utk.ecu>
|
|
|
|
|
|
|
|
%prep
|
2016-09-23 14:11:02 +02:00
|
|
|
%setup -q -n fig2dev-%{version}
|
2013-02-08 13:54:00 +01:00
|
|
|
find -type f | xargs -r chmod a-x,go-w
|
2013-02-07 17:27:43 +01:00
|
|
|
%patch0 -p0 -b .0
|
|
|
|
%patch2 -p0 -b .bm
|
|
|
|
%patch3 -p0 -b .mbox
|
2016-09-23 14:11:02 +02:00
|
|
|
%patch4 -p1 -b .afl
|
|
|
|
%patch42 -p2 -b .oldp
|
|
|
|
%patch43 -p2 -b .mpdf
|
|
|
|
%patch44 -p1 -b .mpdfdoc
|
2017-11-22 13:37:26 +01:00
|
|
|
%patch45 -p1 -b .p45
|
|
|
|
%patch46 -p1 -b .p46
|
|
|
|
%patch47 -p1 -b .p47
|
|
|
|
%patch48 -p1 -b .p48
|
2007-01-16 00:39:38 +01:00
|
|
|
|
|
|
|
%build
|
2016-09-23 14:11:02 +02:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -w -D_GNU_SOURCE -std=gnu99"
|
|
|
|
CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
export CC CFLAGS
|
|
|
|
chmod 755 configure
|
|
|
|
%configure \
|
|
|
|
--docdir=%{_defaultdocdir}/%{name} \
|
|
|
|
--enable-transfig \
|
|
|
|
--enable-scale-pic2t2e
|
|
|
|
make %{?_smp_mflags} CCOPTIONS="$CFLAGS"
|
2007-01-16 00:39:38 +01:00
|
|
|
|
|
|
|
%install
|
2016-09-23 14:11:02 +02:00
|
|
|
find -name '*.mpdfdoc' -o -name '*.mpdf' | xargs -r rm -vf
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
install -m 0755 fig2mpdf/fig2mpdf %{buildroot}%{_bindir}
|
|
|
|
install -m 0644 fig2mpdf/fig2mpdf.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
gzip -9 %{buildroot}%{_mandir}/man1/fig2mpdf.1
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
install -m 0644 [CLNR]* %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
pushd fig2mpdf/doc
|
|
|
|
make
|
|
|
|
mkdir %{buildroot}%{_defaultdocdir}/%{name}/fig2mpdf
|
|
|
|
rm -f overlay-sample-?.pdf
|
|
|
|
rm -f *.aux *.log *.nav *.out *.snm *.toc
|
|
|
|
install -m 0644 * %{buildroot}%{_defaultdocdir}/%{name}/fig2mpdf/
|
|
|
|
popd
|
|
|
|
pushd transfig/doc
|
|
|
|
../../fig2dev/fig2dev -L latex trans.fig > trans.tex
|
|
|
|
pdflatex manual.tex
|
|
|
|
pdflatex manual.tex
|
|
|
|
pdflatex manual.tex
|
|
|
|
install -m 0644 manual.pdf %{buildroot}%{_defaultdocdir}/%{name}/transfig.pdf
|
|
|
|
popd
|
|
|
|
|
|
|
|
%fdupes %{buildroot}
|
2007-01-16 00:39:38 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/fig2dev
|
2016-09-23 14:11:02 +02:00
|
|
|
%{_bindir}/fig2mpdf
|
2007-01-16 00:39:38 +01:00
|
|
|
%{_bindir}/fig2ps2tex
|
|
|
|
%{_bindir}/pic2tpic
|
|
|
|
%{_bindir}/transfig
|
2016-09-23 14:11:02 +02:00
|
|
|
%{_datadir}/fig2dev/
|
|
|
|
%doc %{_defaultdocdir}/%{name}
|
|
|
|
%doc %{_mandir}/man1/*.1*.gz
|
2008-04-25 16:49:47 +02:00
|
|
|
|
2007-04-20 16:00:50 +02:00
|
|
|
%changelog
|