- Upstream update.
- Spec overhaul. - Add %bcond_with release_tests
This commit is contained in:
parent
82b2d4cb7f
commit
b51f51b5a5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
Devel-StackTrace-1.22.tar.gz
|
||||
Devel-StackTrace-1.25.tar.gz
|
||||
|
||||
@ -1,24 +1,34 @@
|
||||
Name: perl-Devel-StackTrace
|
||||
Summary: Perl module implementing stack trace and stack trace frame objects
|
||||
Version: 1.22
|
||||
Epoch: 1
|
||||
Release: 5%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Devel-StackTrace
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Devel-StackTrace-%{version}.tar.gz
|
||||
Name: perl-Devel-StackTrace
|
||||
Summary: Perl module implementing stack trace and stack trace frame objects
|
||||
Version: 1.25
|
||||
Epoch: 1
|
||||
Release: 1%{?dist}
|
||||
License: Artistic 2.0
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Devel-StackTrace/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Devel-StackTrace-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
Buildarch: noarch
|
||||
# --with release_tests ... also check "RELEASE_TESTS".
|
||||
# Disabled by default
|
||||
%bcond_with release_tests
|
||||
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%if %{with release_tests}
|
||||
# for improved tests
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
||||
BuildRequires: perl(Test::Kwalitee)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
BuildRequires: perl(Test::EOL)
|
||||
BuildRequires: perl(Test::NoTabs)
|
||||
BuildRequires: perl(Test::Spelling)
|
||||
BuildRequires: aspell-en
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Devel::StackTrace module contains two classes, Devel::StackTrace
|
||||
@ -31,25 +41,28 @@ objects, one for each level of the stack. The frames contain all the
|
||||
data available from caller() as of Perl 5.6.0.
|
||||
|
||||
%prep
|
||||
%setup -q -n Devel-StackTrace-%{version}
|
||||
%setup -q -n Devel-StackTrace-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%{__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 -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $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 \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test %{?with_release_tests:RELEASE_TESTING=1}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
make test IS_MAINTAINER=1
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README LICENSE Changes
|
||||
@ -57,6 +70,11 @@ make test IS_MAINTAINER=1
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Sun Sep 12 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1:1.25-1
|
||||
- Upstream update.
|
||||
- Spec overhaul.
|
||||
- Add %%bcond_with release_tests
|
||||
|
||||
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.22-5
|
||||
- Mass rebuild with perl-5.12.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user