perl-B-Keywords/perl-B-Keywords.spec

75 lines
1.9 KiB
RPMSpec
Raw Normal View History

Name: perl-B-Keywords
2007-02-15 17:01:42 +00:00
Version: 1.06
Release: 3%{?dist}
Summary: Lists of reserved barewords and symbol names
Group: Development/Libraries
2008-01-11 19:23:21 +00:00
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/B-Keywords/
Source0: http://www.cpan.org/authors/id/J/JJ/JJORE/B-Keywords-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Test::Pod)
# BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(YAML)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
%{summary}.
%prep
%setup -q -n B-Keywords-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
# Skip the Perl::Critic tests for two reasons:
# 1) it fails a couple of tests
# 2) it causes bootstrap problems
# (Perl::Critic 0.23 requires this module)
mv t/05critic.t t/05critic.t.skip
# AUTHOR_TESTS=1 make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE
%{perl_vendorlib}/B/
%{_mandir}/man3/*.3pm*
%changelog
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.06-3
- Rebuild for perl 5.10 (again), disable tests for first pass
2008-01-14 22:32:09 +00:00
* Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.06-2
- rebuild normally, second pass
2008-01-11 19:23:21 +00:00
* Fri Jan 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.06-1.1
- rebuild for new perl
- disable Test-Pod-Coverage, tests for first pass
2007-02-15 17:01:42 +00:00
* Thu Feb 15 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-1
- Update to 1.06.
* Sat Jan 20 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.05-1
- First build.