742e2c0
#
742e2c0
# Rebuild option:
742e2c0
#
742e2c0
#   --with testsuite         - run the test suite (requires X)
742e2c0
#
742e2c0
742e2c0
Name:           perl-PPI-Tester
742e2c0
Version:        0.06
9d01a60
Release:        8%{?dist}
742e2c0
Summary:        A wxPerl-based interactive PPI debugger/tester
742e2c0
742e2c0
Group:          Development/Libraries
405797d
License:        GPL+ or Artistic
742e2c0
URL:            http://search.cpan.org/dist/PPI-Tester/
742e2c0
Source0:        http://www.cpan.org/authors/id/A/AD/ADAMK/PPI-Tester-%{version}.tar.gz
742e2c0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
742e2c0
742e2c0
BuildArch:      noarch
742e2c0
BuildRequires:  perl(ExtUtils::AutoInstall)
742e2c0
BuildRequires:  perl(PPI)
742e2c0
BuildRequires:  perl(Wx)
5ab8d49
BuildRequires:	perl(Test::More)
742e2c0
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
742e2c0
742e2c0
%description
742e2c0
This package implements a wxWindows desktop application which provides
742e2c0
the ability to interactively test the PPI perl parser.
742e2c0
742e2c0
742e2c0
%prep
742e2c0
%setup -q -n PPI-Tester-%{version}
742e2c0
742e2c0
742e2c0
%build
5ab8d49
# Hack, we work around weirdness in Wx probing.
5ab8d49
%{__perl} Makefile.PL INSTALLDIRS=vendor || :
742e2c0
make %{?_smp_mflags}
742e2c0
742e2c0
742e2c0
%install
742e2c0
rm -rf $RPM_BUILD_ROOT
742e2c0
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
742e2c0
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
742e2c0
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
742e2c0
chmod -R u+w $RPM_BUILD_ROOT/*
742e2c0
742e2c0
742e2c0
%check
742e2c0
%{?_with_testsuite:make test}
742e2c0
742e2c0
742e2c0
%clean
742e2c0
rm -rf $RPM_BUILD_ROOT
742e2c0
742e2c0
742e2c0
%files
742e2c0
%defattr(-,root,root,-)
742e2c0
%doc Changes LICENSE README
742e2c0
%{_bindir}/*
742e2c0
%{perl_vendorlib}/PPI/
742e2c0
%{_mandir}/man1/*.1*
742e2c0
%{_mandir}/man3/*.3pm*
742e2c0
742e2c0
742e2c0
%changelog
9d01a60
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.06-8
9d01a60
- rebuild against perl 5.10.1
9d01a60
4f71fb3
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-7
4f71fb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4f71fb3
3e8b66d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-6
3e8b66d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3e8b66d
5ab8d49
* Thu Mar  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.06-5
5ab8d49
- hack: work around Wx probing issues
5ab8d49
5ab8d49
* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.06-4
5ab8d49
- add BR: Test::More
5ab8d49
c20acac
* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.06-3
c20acac
- rebuild for new perl
c20acac
742e2c0
* Wed Oct  4 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.06-2
742e2c0
- Added missing BR perl(ExtUtils::AutoInstall).
742e2c0
- Changed the build process: Build.PL -> Makefile.PL
742e2c0
  (Build.PL just requires Makefile.PL).
742e2c0
742e2c0
* Sun Sep 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.06-1
742e2c0
- First build.