Specfile cleanups from package review

This commit is contained in:
Robin Norwood 2007-10-25 01:55:31 +00:00
parent 924ee081a6
commit 41ebdbe31c

View File

@ -1,6 +1,6 @@
Name: perl-Carp-Clan
Version: 5.9
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Report errors from perspective of caller of a "clan" of modules
Group: Development/Libraries
@ -12,8 +12,11 @@ Patch1: perl-Carp-Clan-no-prompt-Makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.6.1, perl(Test::Exception)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Exception)
# Uncomment the next line when bug #351611 is resolved and perl-Object-Deadly is in Fedora
#BuildRequires: perl(Object::Deadly)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module reports errors from the perspective of the caller of a
@ -37,10 +40,12 @@ EOF
%define __perl_provides %{_builddir}/Carp-Clan-%{version}/%{name}-prov
chmod +x %{__perl_provides}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
@ -48,9 +53,11 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
@ -63,6 +70,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 5.9-3
- Fix BuildRequires
- Various specfile cleanups
* Thu Aug 23 2007 Robin Norwood <rnorwood@redhat.com> - 5.9-2
- Update license tag.