Update to 1.669004

- New upstream release 1.669004
  - Tweaked widow handling to avoid a nasty edge case
- Specify all dependencies
- Replace provides filter with a patch that works right back to EL-5
- Don't need to remove empty directories from the buildroot
- Drop %defattr, redundant since rpm 4.4
- Make %files list more explicit
- Don't use macros for commands
epel9
Paul Howarth 11 years ago
parent f57aa52d39
commit c189a753f8

3
.gitignore vendored

@ -1,2 +1 @@
Text-Autoformat-v1.14.0.tar.gz /Text-Autoformat-[0-9.]*.tar.gz
/Text-Autoformat-1.669002.tar.gz

@ -0,0 +1,26 @@
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] }

@ -1,4 +0,0 @@
#!/bin/sh
@@PERL_PROV@@ "$@" | sed -e '/^perl(Hang)$/d' \
-e '/^perl(NullHang)$/d'

@ -1,23 +1,31 @@
Name: perl-Text-Autoformat Name: perl-Text-Autoformat
Version: 1.669002 Version: 1.669004
Release: 9%{?dist} Release: 1%{?dist}
Summary: Automatic text wrapping and reformatting Summary: Automatic text wrapping and reformatting
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Text-Autoformat/ URL: http://search.cpan.org/dist/Text-Autoformat/
Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Autoformat-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Autoformat-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: Text-Autoformat-1.669004-provides.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
# Module Build
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More) BuildRequires: perl(warnings)
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Exporter)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(Text::Reform) >= 1.11 BuildRequires: perl(Text::Reform) >= 1.11
BuildRequires: perl(version) BuildRequires: perl(Text::Tabs)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(utf8)
BuildRequires: perl(vars)
# Filter out perl(Hang) and perl(NullHang) auto-provides. # Test Suite
Source99: Text-Autoformat-filter-provides.sh BuildRequires: perl(Test::More)
%global real_perl_provides %{__perl_provides} # Runtime
%define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-provides Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description %description
Text::Autoformat provides intelligent formatting of plaintext without the Text::Autoformat provides intelligent formatting of plaintext without the
@ -32,37 +40,44 @@ the built-in Perl format() mechanism.
%prep %prep
%setup -q -n Text-Autoformat-%{version} %setup -q -n Text-Autoformat-%{version}
chmod a-x lib/Text/Autoformat.pm Changes README
sed -e 's,@@PERL_PROV@@,%{real_perl_provides},' %{SOURCE99} > %{__perl_provides} # Drop bogus exec bits
chmod +x %{__perl_provides} chmod -c -x config.*
# Hide private modules from rpm
%patch0
%build %build
%{__perl} Build.PL installdirs=vendor perl Build.PL installdirs=vendor
./Build ./Build
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%{_fixperms} $RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check %check
./Build test ./Build test
%clean %clean
rm -rf $RPM_BUILD_ROOT %{__perl_provides} rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc Changes README config.emacs config.vim %doc Changes README config.emacs config.vim
%{perl_vendorlib}/* %{perl_vendorlib}/Text/
%{_mandir}/man3/* %{_mandir}/man3/Text::Autoformat.3pm*
%changelog %changelog
* Fri Oct 25 2013 Paul Howarth <paul@city-fan.org> - 1.669004-1
- Update to 1.669004
- Tweaked widow handling to avoid a nasty edge case
- Specify all dependencies
- Replace provides filter with a patch that works right back to EL-5
- Don't need to remove empty directories from the buildroot
- Drop %%defattr, redundant since rpm 4.4
- Make %%files list more explicit
- Don't use macros for commands
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.669002-9 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.669002-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

@ -1 +1 @@
c2c400207f49a769e32b5b1b660b07f7 Text-Autoformat-1.669002.tar.gz 7a7881ca625fa71e551c1f43910f2865 Text-Autoformat-1.669004.tar.gz

Loading…
Cancel
Save