Spec clean-up

- BR: perl(Exporter)
- Make %files list more explicit
- Don't use macros for commands
- Use tabs
epel9
Paul Howarth 13 years ago
parent 51fe0244a8
commit 70b3eac3fe

@ -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 <paul@city-fan.org> - 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 <rel-eng@lists.fedoraproject.org> - 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 <mmaslano@redhat.com> - 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 <mmaslano@redhat.com> - 0.30-3
- Mass rebuild with perl-5.12.0

Loading…
Cancel
Save