|
|
|
@ -1,16 +1,17 @@
|
|
|
|
|
Name: perl-Text-Reform
|
|
|
|
|
Version: 1.12.2
|
|
|
|
|
Release: 11%{?dist}
|
|
|
|
|
Version: 1.20
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Manual text wrapping and reformatting
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Text-Reform/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Reform-v%{version}.tar.gz
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/C/CH/CHORNY/Text-Reform-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
|
|
|
|
|
BuildRequires: perl(version)
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
|
|
BuildRequires: perl(version)
|
|
|
|
|
|
|
|
|
|
Requires: perl(TeX::Hyphen)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
@ -20,19 +21,18 @@ The module supplies a re-entrant, highly configurable replacement for the
|
|
|
|
|
built-in Perl format() mechanism.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Text-Reform-v%{version}
|
|
|
|
|
%setup -q -n Text-Reform-%{version}
|
|
|
|
|
chmod 644 Changes README lib/Text/*.pm
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
|
./Build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
@ -40,18 +40,24 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
%check
|
|
|
|
|
# the testsuite fails for locales with decimal point != ".", i.e. it
|
|
|
|
|
# fails for almost all European languages except en
|
|
|
|
|
LC_NUMERIC=C make test
|
|
|
|
|
LC_NUMERIC=C ./Build test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%doc Changes README demo/
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Dec 08 2010 Steven Pritchard <steve@kspei.com> 1.20-1
|
|
|
|
|
- Update to 1.20.
|
|
|
|
|
- Update Source0 URL.
|
|
|
|
|
- BR Module::Build and build with it.
|
|
|
|
|
- Add demo directory to docs.
|
|
|
|
|
|
|
|
|
|
* Fri May 14 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.12.2-11
|
|
|
|
|
- Bump release for perl-5.12.0.
|
|
|
|
|
|
|
|
|
|