Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 598854b545a58b08de4011c562cf195a > files > 4

perl-Text-Autoformat-1.04-6mdk.src.rpm

%define module	Text-Autoformat
%define version	1.04
%define release	6mdk

Summary:	Automatic and manual text wrapping and reformating formatting perl module
Name:		perl-%{module}
Version:	%{version}
Release:	%{release}
License:	Artistic
Group:		Text tools
URL:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text
Source0:	%{module}-%{version}.tar.bz2
Source1:	dot-vimrc.bz2
Source2:	dot-emacs.bz2
Requires:	perl >= 5.8
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 MANIFEST Changes dot-vimrc dot-emacs
%{perl_vendorlib}/Text/*
%{_mandir}/*/*


%changelog
* 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.