[perl-Text-Reform] Update to 1.20. Update Source0 URL. BR Module::Build and build with it. Add demo directory to docs.

Steven Pritchard steve at fedoraproject.org
Thu Dec 9 00:04:41 UTC 2010


commit db9c6442be0f89ce9106d5abfc671f39cfac9027
Author: Steven Pritchard <steven.pritchard at gmail.com>
Date:   Wed Dec 8 18:04:13 2010 -0600

    Update to 1.20.
    Update Source0 URL.
    BR Module::Build and build with it.
    Add demo directory to docs.

 .gitignore            |    1 +
 perl-Text-Reform.spec |   30 ++++++++++++++++++------------
 sources               |    2 +-
 3 files changed, 20 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9c1a914..048cfc6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Text-Reform-v1.12.2.tar.gz
+/Text-Reform-1.20.tar.gz
diff --git a/perl-Text-Reform.spec b/perl-Text-Reform.spec
index 5c1b001..0115ac7 100644
--- a/perl-Text-Reform.spec
+++ b/perl-Text-Reform.spec
@@ -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 at 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 at fedoraproject.org> - 1.12.2-11
 - Bump release for perl-5.12.0.
 
diff --git a/sources b/sources
index 6ba74de..66efa2f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c2dc7c1d885e5d977831d798dd31e99b  Text-Reform-v1.12.2.tar.gz
+f37f5834f3dc221eacd09bdfcfe40918  Text-Reform-1.20.tar.gz



More information about the perl-devel mailing list