From 70b3eac3fead688eb7db63e16d553bd23af47f85 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Mon, 16 Jan 2012 21:42:33 +0000 Subject: [PATCH] Spec clean-up - BR: perl(Exporter) - Make %files list more explicit - Don't use macros for commands - Use tabs --- perl-aliased.spec | 51 ++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/perl-aliased.spec b/perl-aliased.spec index 145f4b6..00c0ec1 100644 --- a/perl-aliased.spec +++ b/perl-aliased.spec @@ -1,18 +1,18 @@ -Name: perl-aliased -Version: 0.30 -Release: 7%{?dist} -Summary: Use shorter versions of class names -License: GPL+ or Artistic -Group: Development/Libraries -URL: http://search.cpan.org/dist/aliased/ -Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/aliased-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildArch: noarch -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -BuildRequires: perl(Module::Build) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) +Name: perl-aliased +Version: 0.30 +Release: 8%{?dist} +Summary: Use shorter versions of class names +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/aliased/ +Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/aliased-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +BuildRequires: perl(Exporter) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description aliased is simple in concept but is a rather handy module. It loads the @@ -25,16 +25,14 @@ subroutine is the last part of the class name. %setup -q -n aliased-%{version} %build -%{__perl} Build.PL installdirs=vendor +perl Build.PL installdirs=vendor ./Build %install rm -rf %{buildroot} - ./Build install destdir=%{buildroot} create_packlist=0 -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; - -%{_fixperms} %{buildroot}/* +find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null +%{_fixperms} %{buildroot} %check ./Build test @@ -45,10 +43,17 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/aliased.pm +%{_mandir}/man3/aliased.3pm* %changelog +* Mon Jan 16 2012 Paul Howarth - 0.30-8 +- Spec clean-up: + - BR: perl(Exporter) + - Make %%files list more explicit + - Don't use macros for commands + - Use tabs + * Sat Jan 14 2012 Fedora Release Engineering - 0.30-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild @@ -59,7 +64,7 @@ rm -rf %{buildroot} - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 14 2010 Marcela Maslanova - 0.30-4 -- 661697 rebuild for fixing problems with vendorach/lib +- Rebuild to fix problems with vendorarch/lib (#661697) * Thu Apr 29 2010 Marcela Maslanova - 0.30-3 - Mass rebuild with perl-5.12.0