[CentOS-devel] catdoc: contributed RPM submission

Tue Jul 25 22:34:05 UTC 2006
Durval Menezes <durval at tmp.com.br>


Here's my submission for a new package: catdoc, a nice
Word/Excel/Powerpoint -> plaintext conversion utility.

The URL to the SRPM is: 

I've attached the .spec file.

Best Regards,
   Durval Menezes (durval AT tmp DOT com DOT br, http://www.tmp.com.br/)
-------------- next part --------------
Summary: reads MS-Word file and puts its content as plain text on standard output
Name: catdoc
Version: 0.94.2
Release: 2dm.el4
Copyright: GPL
Group: Applications/Text
Packager: Durval Menezes <durval AT tmp DOT com DOT br>
URL: http://www.45.free.net/~vitus/software/catdoc/
Source: catdoc-0.94.2.tar.gz
BuildRoot: /var/tmp/catdoc.root

* Mon Jul 24 2006 Durval Menezes <durval AT tmp DOT com DOT br> [0.94.2-2dm.el4]
- Moved to 0.94.2
- Fixed Source, added URL specfile attributes
- Used %configure
- Used %{xxxx_dir} macros, replacing fixed (and wrong) directory names
- Added "export man1dir=%{_mandir}/man1" before calling configure,
  in order to correctly set the man page directory;
- Added preconfigured /etc/catdocrc file

* Sun Nov 07 1999 Peter Soos <sp at osb.hu>
- Moved to 0.90.3

* Sun Sep 12 1999 Peter Soos <sp at osb.hu>
- Initial version.

CATDOC is program which reads MS-Word file and prints readable
ASCII text to stdout, just like Unix cat command.
It also able to produce correct escape sequences if some UNICODE
characters have to be represented specially in your typesetting system
such as (La)TeX.


export man1dir=%{_mandir}/man1 \

make "installroot=$RPM_BUILD_ROOT" install
mkdir $RPM_BUILD_ROOT%{_sysconfdir}
cat >$RPM_BUILD_ROOT%{_sysconfdir}/catdocrc <<EOM
source_charset = 8859-1
target_charset = 8859-1
use_locale = no


%defattr(0644, root, root,0755)
%attr(0755, root, root) %{_bindir}/*