transfig/transfig.spec

89 lines
2.3 KiB
RPMSpec
Raw Normal View History

%define fig2dev_dir /usr/share/fig2dev
%define xfig_dir /usr/lib/X11/xfig
Name: transfig
Version: 3.2.5e
Release: 1mamba
Summary: Tools for creating TeX documents with graphics
Group: Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://xfig.org/
Source: http://downloads.sourceforge.net/project/mcj/mcj-source/transfig.%{version}.tar.gz
Patch0: %{name}-3.2.5-settings.patch
Patch1: %{name}-3.2.4-gcc33.patch
Patch2: %{name}-3.2.4-broken.patch
Patch3: %{name}-3.2.4-badc.patch
Patch4: transfig-3.2.5d-libpng-1.5.patch
License: Distributable
Requires: netpbm >= 9.1, ghostscript >= 7.07
## AUTOBUILDREQ-BEGIN
BuildRequires: ghostscript-devel
BuildRequires: glibc-devel
BuildRequires: libpng-devel
BuildRequires: libX11-devel
BuildRequires: libXpm-devel
BuildRequires: libz-devel
BuildRequires: netpbm-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description
TransFig is a set of tools for creating TeX documents with graphics which are portable, in the sense that they can be printed in a wide variety of environments.
%prep
%setup -q -n %{name}.%{version}
%patch0 -p1
#%patch1 -p1
#%patch2 -p1
#%patch3 -p1
#%patch4 -p1
%build
xmkmf
make Makefiles LIBDIR=%{_libdir}/X11
make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
install -d %{buildroot}%{fig2dev_dir}
install -d %{buildroot}%{xfig_dir}
make \
DESTDIR=%{buildroot} \
BINDIR=%{_bindir} \
MANSOURCEPATH=%{_mandir}/man \
install install.man
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/fig2dev
%{_bindir}/fig2ps2tex
%{_bindir}/fig2ps2tex.sh
%{_bindir}/pic2tpic
%{_bindir}/transfig
%dir %{fig2dev_dir}
%{fig2dev_dir}/*
%dir %{xfig_dir}
%{xfig_dir}/*
%{_mandir}/man1/*
%doc CHANGES LATEX.AND.XFIG* NOTES README
%changelog
* Fri Sep 13 2013 Automatic Build System <autodist@mambasoft.it> 3.2.5e-1mamba
- update to 3.2.5e
* Sat May 18 2013 Automatic Build System <autodist@mambasoft.it> 3.2.5d-1mamba
- automatic version update by autodist
* Mon Jun 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.5-1mamba
- update to 3.2.5
* Mon Mar 07 2005 Davide Madrisan <davide.madrisan@qilinux.it> 3.2.4-1qilnx
- package created by autospec