%define module Text-Autoformat %define version 1.13 %define release %mkrel 1 Name: perl-%{module} Version: %{version} Release: %{release} Summary: %{module} module for perl License: Artistic Group: Text tools URL: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/%{module}-%{version}.tar.bz2 Source1: dot-vimrc.bz2 Source2: dot-emacs.bz2 BuildRequires: perl-devel perl-Text-Reform Requires: perl-Text-Reform BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildArch: noarch %description Text::Autoformat provides intelligent formatting of plaintext without the need for any kind of embedded mark-up. The module recognizes Internet quoting conventions, a wide range of bulleting and number schemes, centred text, and block quotations, and reformats each appropriately. Other options allow the user to adjust inter-word and inter-paragraph spacing, justify text, and impose various capitalization schemes. The module also supplies a re-entrant, highly configurable replacement for the built-in Perl format() mechanism. %prep %setup -q -n %{module}-%{version} bzcat %{SOURCE1} > dot-vimrc bzcat %{SOURCE2} > dot-emacs %build CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor make make test %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installarchlib'` install -d $RPM_BUILD_ROOT/$installarchlib %{__make} PREFIX=$RPM_BUILD_ROOT%{_prefix} install install -d $RPM_BUILD_ROOT/%{_datadir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README Changes dot-vimrc dot-emacs %{perl_vendorlib}/Text/* %{_mandir}/*/* %changelog * Fri May 27 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.13-1mdk - 1.13 - Make rpmbuildable * Tue Jul 27 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.12-2mdk - rebuild * Sat Jun 14 2003 Han Boetes <han@linux-mandrake.com> 1.12-1mdk - Bump * Thu May 15 2003 Han Boetes <han@linux-mandrake.com> 1.11-1mdk - Bump * Fri Apr 25 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.04-9mdk - fixed buildrequires (Stefan van der Eijk <stefan@eijk.nu>) * Tue Feb 25 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.04-8mdk - removes explicit perl requires * Fri Dec 27 2002 Han Boetes <han@linux-mandrake.com> 1.04-7mdk - rebuild because of new rpm macros and new glibc * Fri Aug 31 2002 Han Boetes <han@linux-mandrake.com> 1.04-6mdk - Corrected dot-emacs file. * Fri Aug 30 2002 Han Boetes <han@linux-mandrake.com> 1.04-5mdk - Added dot-emacs file. * Tue Jul 23 2002 Han Boetes <han@linux-mandrake.com> 1.04-4mdk - Spec-file cleanups. * Tue Jul 23 2002 Han Boetes <han@linux-mandrake.com> 1.04-3mdk - Fixed a lot of typos in the dot-vimrc file. * Tue Jul 23 2002 Han Boetes <han@linux-mandrake.com> 1.04-2mdk - The things you sometimes have to do to make rpmlint happy. *sigh* * Tue Jul 23 2002 Han Boetes <han@mijncomputer.nl> 1.04-1mdk - first build for mandrake.