Name: hp2xx Version: 3.4.2 Release: 2ark Summary: Read and convert HP-GL filess to various formats URL: http://www.gnu.org/directory/hp2xx.html Source: ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.bz2 License: GPL Group: Applications/Multimedia Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-root BuildRequires: gcc make glibc-devel libpng-devel libtiff-devel XFree86-devel %description Hp2xx reads and convert HP-GL filess to various formats Hp2xx first converts all HP-GL data into pure vectors and buffers them internally. It then converts these vectors into a specified output format (vector modes), or rasterizes them (raster modes) on an internal bitmap. In raster modes, the program then translates the bitmap into the output format. The supported output formats include Encapsulated PostScript, PCX, IMG, TIFF, PNG, and several formats intended to facilitate the generation of graphics within TeX documents. Output is also printable on PCL-capable devices (eg the Hewlett-packard LaserJet series), and it may be used as a HP-GL previewer on many platforms, eg X11 and DOS (VGA). %prep %setup cp -f makes/generic.mak sources/makefile cd sources perl -pi -e 's,^prefix.*,prefix = %{_prefix},;s,^mandir.*,mandir=%{_mandir},;s,^infodir.*,infodir=%{_infodir},;s,-O2,%{optflags},;s,-lX11,-L/usr/X11R6/lib -lX11 -lpng -ltiff,g;s,^EX_SRC.*,EX_SRC = png.c to_png.c to_tif.c,;s,^EX_OBJ.*,EX_OBJ = png.o to_png.o to_tif.o,;s,^EX_DEFS.*,EX_DEFS = -DPNG -DTIF,' makefile %build cd sources make all %install rm -rf $RPM_BUILD_ROOT cd sources perl -pi -e "s,^prefix.*,prefix = $RPM_BUILD_ROOT%{_prefix},;s,^mandir.*,mandir=$RPM_BUILD_ROOT%{_mandir},;s,^infodir.*,infodir=$RPM_BUILD_ROOT%{_infodir}," makefile mkdir -p $RPM_BUILD_ROOT%{_prefix} $RPM_BUILD_ROOT%{_mandir}/man1 \ $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_infodir} make install %files %defattr(-,root,root) %doc CHANGES README TODO readme %{_bindir}/%{name} %{_infodir}/* %{_mandir}/man1/* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Mon Aug 26 2002 Ark Linux Team <arklinux@arklinux.org> 3.4.2-2ark - automated rebuild * Sun Aug 18 2002 David Sainty <saint@arklinux.org> - 3.4.2 * Fri Nov 09 2001 Bernhard Rosenkraenzer <bero@redhat.com> - initial RPM