# $Revision: 1.1 $, $Date: 2002/03/06 00:08:27 $
Summary:	PostScript to text converter
Summary(pl):	Konwerter PostScriptu do czystego tekstu
Name:		pstotext
Version:	1.9
Release:	1
License:	Digital's paranoid but open-source license
Group:		Applications/Text
Source0:	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/%{name}-%{version}.tar.gz
URL:		http://www.research.digital.com/SRC/virtualpaper/pstotext.html
Requires:	ghostscript

%description
This utility reads in postscript files and outputs an ASCII rendering.
While the rendering is not always accurate, it is often sufficient.

%prep
%setup -q -n %name-%version

%build
%{__make} CC="%{__cc}"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%_bindir,%_mandir/man1}

install pstotext $RPM_BUILD_ROOT%_bindir/pstotext
install pstotext.1 $RPM_BUILD_ROOT%_mandir/man1/pstotext.1

gzip -9nf pstotext.txt

%files
%defattr(644,root,root,755)
%doc *.gz
%attr(755,root,root) %_bindir/pstotext
%_mandir/man1/pstotext.1*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
##* Thu Nov 28 2007 1.9-alt1
##- rebuild for alt

##* %{date} PLD Team <feedback@pld.org.pl>
##All persons listed below can be reached at <cvs_login>@pld.org.pl

##$Log: pstotext.spec,v $
##Revision 1.1  2002/03/06 00:08:27  qboosh
##- new: spec based on old RH-contrib package, but uptated to 1.8g
##  (unfortunately, there is no version information in Source URL)
