transfig/transfig.spec
starlet-dx 0d03fd98d6 fix CVE-2021-32280
(cherry picked from commit a7d683941c244f6a6f31a926e48e8bfb6b0db00a)
2021-10-12 15:36:09 +08:00

58 lines
1.3 KiB
RPMSpec

Name: transfig
Summary: Utility for converting FIG files (made by xfig) to other formats
Version: 3.2.6a
Release: 7
Epoch: 1
License: MIT
URL: https://sourceforge.net/projects/mcj/
Source0: http://downloads.sourceforge.net/mcj/fig2dev-%{version}.tar.xz
Patch1: fig2dev-3.2.6a-CVE-2017-16899.patch
Patch2: CVE-2021-32280.patch
Requires: netpbm-progs ghostscript bc
BuildRequires: gcc libpng-devel libjpeg-devel libXpm-devel
%description
The transfig utility creates a makefile which translates FIG (created
by xfig) or PIC figures into a specified LaTeX graphics language (for
example, PostScript(TM)). Transfig is used to create TeX documents
which are portable (i.e., they can be printed in a wide variety of
environments).
Install transfig if you need a utility for translating FIG or PIC
figures into certain graphics languages.
%package_help
%prep
%autosetup -p1 -n fig2dev-%{version}
%build
%configure --enable-transfig
%make_build
%install
%make_install
%files
%{_bindir}/%{name}
%{_bindir}/fig2*
%{_bindir}/pic2tpic
%{_datadir}/fig2dev/i18n/*.ps
%{_datadir}/fig2dev/bitmaps/*.bmp
%files help
%doc %{name}/doc/manual.pdf
%{_mandir}/man1/*.1.gz
%{_datadir}/fig2dev/rgb.txt
%changelog
* Tue Oct 12 2021 yaoxin<yaoxin30@huawei.com> - 1:3.2.6a-7
- Fix CVE-2021-32280
* Tue Dec 3 2019 caomeng<caomeng5@huawei.com> - 1:3.2.6a-6
- Package init