Blob Blame History Raw
Name: catdoc
Version: 0.94.2
Release: 4%{?dist}
Summary: A program which converts Microsoft office files to plain text        

Group: Applications/Text   
License: GPL+       
URL: http://www.wagner.pp.ru/~vitus/software/catdoc/           
Source0: http://ftp.wagner.pp.ru/pub/catdoc/%{name}-%{version}.tar.gz      
Patch0: makefilefix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: tk
Requires: tk

%description
catdoc is program which reads one or more Microsoft word files
and outputs text, contained insinde them to standard output.
Therefore it does same work for.doc files, as unix cat
command for plain ASCII files.
It is now accompanied by xls2csv - program which converts
Excel spreadsheet into comma-separated value file,
and catppt - utility to extract textual information
from Powerpoint files

%prep
%setup -q
%patch0 -p1 -b .makefilefix

%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_bindir}/catdoc
%{_bindir}/catppt
%{_bindir}/wordview
%{_bindir}/xls2csv
%{_mandir}/man1/catdoc.1.*
%{_mandir}/man1/catppt.1.*
%{_mandir}/man1/wordview.1.*
%{_mandir}/man1/xls2csv.1.*
%{_datadir}/catdoc
%doc COPYING README NEWS



%changelog
* Fri Feb 08 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.94.2-4
- Rebuild for gcc-4.3

* Sun Nov 11 2007 Adel Gadllah <adel.gadllah@gmail.com> 0.94.2-3
- Preserve timestamps

* Sun Nov 03 2007 Adel Gadllah <adel.gadllah@gmail.com> 0.94.2-2
- Require and BuildRequire tk
- Fix changelog date

* Thu Oct 20 2007 Adel Gadllah <adel.gadllah@gmail.com> 0.94.2-1
- Initial build