You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.7 KiB
86 lines
2.7 KiB
Name: perl-Text-Autoformat
|
|
Version: 1.13
|
|
Release: 3%{?dist}
|
|
Summary: Text::Autoformat Perl module
|
|
License: Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Text-Autoformat/
|
|
Source0: http://www.cpan.org/modules/by-module/Text/Text-Autoformat-%{version}.tar.gz
|
|
|
|
# Filter out perl(Hang) and perl(NullHang) auto-provides.
|
|
Source1: filter-provides.sh
|
|
%define _use_internal_dependency_generator 0
|
|
%define __find_provides %{SOURCE1}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Text::Reform)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%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, centered
|
|
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 Text-Autoformat-%{version}
|
|
chmod a-x lib/Text/Autoformat.pm Changes README
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
|
|
|
|
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
|
|
|
|
perldoc -t perlartistic > Artistic
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README Artistic
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 1.13-3
|
|
- Minor spec cleanup.
|
|
- Add Artistic.
|
|
|
|
* Sat Aug 20 2005 Steven Pritchard <steve@kspei.com> 1.13-2
|
|
- Fix permissions (#166406).
|
|
|
|
* Tue May 24 2005 Steven Pritchard <steve@kspei.com> 1.13-1
|
|
- Update to 1.13 final.
|
|
- Filter bogus perl(Hang) and perl(NullHang) auto-provides.
|
|
|
|
* Tue May 10 2005 Steven Pritchard <steve@kspei.com> 1.13-0.3.beta
|
|
- Drop Epoch and change Release for Fedora Extras.
|
|
|
|
* Wed Feb 09 2005 Steven Pritchard <steve@kspei.com> 0:1.13-0.fdr.0.2.beta
|
|
- Minor update to 0.13beta source, from
|
|
http://rt.cpan.org/NoAuth/Bug.html?id=8018 (pointed out by jpo@di.uminho.pt)
|
|
|
|
* Wed Jun 09 2004 Steven Pritchard <steve@kspei.com> 0:1.13-0.fdr.0.1.beta
|
|
- Specfile regenerated.
|
|
- Update to 0.13beta, which includes the upstream fix for a bug reported to
|
|
the author.
|