From fc35fd012fc8894432ee91c769e79e01f5694c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 14 Nov 2014 13:14:14 +0100 Subject: [PATCH] 1.669006 bump --- .rpmlint | 2 ++ Text-Autoformat-1.669004-provides.patch | 26 ------------------ perl-Text-Autoformat.spec | 36 ++++++++++++------------- sources | 2 +- 4 files changed, 20 insertions(+), 46 deletions(-) create mode 100644 .rpmlint delete mode 100644 Text-Autoformat-1.669004-provides.patch diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..1f4518e --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (bulleting|reformats)"); diff --git a/Text-Autoformat-1.669004-provides.patch b/Text-Autoformat-1.669004-provides.patch deleted file mode 100644 index 39e269b..0000000 --- a/Text-Autoformat-1.669004-provides.patch +++ /dev/null @@ -1,26 +0,0 @@ -Separating "package" and package names by a newline results in -rpm provides not being generated for the package, which is -exactly what we want in these cases, as they're private modules. - ---- lib/Text/Autoformat.pm -+++ lib/Text/Autoformat.pm -@@ -649,7 +649,8 @@ - return 1; - } - --package Hang; -+package # hide from rpm -+ Hang; - use strict; - - # ROMAN NUMERALS -@@ -851,7 +852,8 @@ - - sub empty { 0 } - --package NullHang; -+package # hide from rpm -+ NullHang; - use strict; - - sub new { bless {}, $_[0] } diff --git a/perl-Text-Autoformat.spec b/perl-Text-Autoformat.spec index 0b2c13b..7668be6 100644 --- a/perl-Text-Autoformat.spec +++ b/perl-Text-Autoformat.spec @@ -1,16 +1,15 @@ Name: perl-Text-Autoformat -Version: 1.669004 -Release: 3%{?dist} +Version: 1.669006 +Release: 1%{?dist} Summary: Automatic text wrapping and reformatting License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Text-Autoformat/ Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Autoformat-%{version}.tar.gz -Patch0: Text-Autoformat-1.669004-provides.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # Module Build -BuildRequires: perl(Module::Build) +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(warnings) # Module Runtime BuildRequires: perl(Carp) @@ -27,8 +26,11 @@ BuildRequires: perl(Test::More) # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Do not export private modules +%global __provides_exclude %{?__provides_exclude|%__provides_exclude|}^perl\\((Hang|NullHang)\\) + %description -Text::Autoformat provides intelligent formatting of plaintext without the +Text::Autoformat provides intelligent formatting of plain text 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 @@ -40,27 +42,20 @@ the built-in Perl format() mechanism. %prep %setup -q -n Text-Autoformat-%{version} - # Drop bogus exec bits chmod -c -x config.* -# Hide private modules from rpm -%patch0 - %build -perl Build.PL installdirs=vendor -./Build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -%{_fixperms} $RPM_BUILD_ROOT +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot}/* %check -./Build test - -%clean -rm -rf $RPM_BUILD_ROOT +make test %files %doc Changes README config.emacs config.vim @@ -68,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/Text::Autoformat.3pm* %changelog +* Fri Nov 14 2014 Petr Pisar - 1.669006-1 +- 1.669006 bump + * Wed Aug 27 2014 Jitka Plesnikova - 1.669004-3 - Perl 5.20 rebuild diff --git a/sources b/sources index 9013d0d..cf478ef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7a7881ca625fa71e551c1f43910f2865 Text-Autoformat-1.669004.tar.gz +24fd91e41790cdd7a800922a76845b2c Text-Autoformat-1.669006.tar.gz