Blame SPECS/perl-PPI.spec

f5c447
# PPI::XSAccessor is experimental
f5c447
%if 0%{?rhel} >= 7
f5c447
%bcond_with XSAccessor
f5c447
%else
f5c447
%bcond_without XSAccessor
f5c447
%endif
f5c447
f5c447
Name:           perl-PPI
f5c447
Version:        1.215
f5c447
Release:        12%{?dist}
f5c447
Summary:        Parse, Analyze and Manipulate Perl
f5c447
Group:          Development/Libraries
f5c447
License:        GPL+ or Artistic
f5c447
URL:            http://search.cpan.org/dist/PPI/
f5c447
Source0:        http://www.cpan.org/authors/id/A/AD/ADAMK/PPI-%{version}.tar.gz
f5c447
Patch0:         PPI-1.215-utf8.patch
f5c447
BuildArch:      noarch
f5c447
# =============== Module Build ======================
f5c447
BuildRequires:  perl
f5c447
BuildRequires:  perl(Config)
f5c447
BuildRequires:  perl(Cwd)
f5c447
BuildRequires:  perl(ExtUtils::MakeMaker)
f5c447
BuildRequires:  perl(ExtUtils::MM_Unix)
f5c447
BuildRequires:  perl(Fcntl)
f5c447
BuildRequires:  perl(File::Find)
f5c447
BuildRequires:  perl(Task::Weaken)
f5c447
# =============== Module Runtime ====================
f5c447
BuildRequires:  perl(Carp)
f5c447
BuildRequires:  perl(Clone) >= 0.30
f5c447
BuildRequires:  perl(constant)
f5c447
BuildRequires:  perl(Digest::MD5) >= 2.35
f5c447
BuildRequires:  perl(Exporter)
f5c447
BuildRequires:  perl(File::Path)
f5c447
BuildRequires:  perl(File::Spec) >= 0.84
f5c447
BuildRequires:  perl(IO::String) >= 1.07
f5c447
BuildRequires:  perl(List::MoreUtils) >= 0.16
f5c447
BuildRequires:  perl(List::Util) >= 1.20
f5c447
BuildRequires:  perl(overload)
f5c447
BuildRequires:  perl(Params::Util) >= 1.00
f5c447
BuildRequires:  perl(Scalar::Util)
f5c447
BuildRequires:  perl(Storable) >= 2.17
f5c447
BuildRequires:  perl(strict)
f5c447
BuildRequires:  perl(vars)
f5c447
BuildRequires:  perl(warnings)
f5c447
# =============== Test Suite ========================
f5c447
BuildRequires:  perl(Class::Inspector) >= 1.22
f5c447
BuildRequires:  perl(File::Copy)
f5c447
BuildRequires:  perl(File::Remove) >= 0.39
f5c447
BuildRequires:  perl(File::Spec::Functions)
f5c447
BuildRequires:  perl(File::Spec::Unix)
f5c447
BuildRequires:  perl(Test::More) >= 0.86
f5c447
BuildRequires:  perl(Test::NoWarnings) >= 0.084
f5c447
BuildRequires:  perl(Test::Object) >= 0.07
f5c447
BuildRequires:  perl(Test::SubCalls) >= 1.07
f5c447
BuildRequires:  perl(Time::HiRes)
f5c447
BuildRequires:  perl(utf8)
f5c447
# =============== Release Tests =====================
f5c447
# Circular dependencies in release tests, so don't do them when bootstrapping:
f5c447
# Perl::MinimumVersion -> PPI
f5c447
%if 0%{!?perl_bootstrap:1}
f5c447
BuildRequires:  perl(File::Find::Rule) >= 0.32
f5c447
BuildRequires:  perl(File::Find::Rule::Perl) >= 1.09
f5c447
BuildRequires:  perl(Perl::MinimumVersion) >= 1.20
f5c447
BuildRequires:  perl(Pod::Simple) >= 3.14
f5c447
BuildRequires:  perl(Test::ClassAPI) >= 1.03
f5c447
BuildRequires:  perl(Test::CPAN::Meta) >= 0.17
f5c447
BuildRequires:  perl(Test::MinimumVersion) >= 0.101080
f5c447
BuildRequires:  perl(Test::Pod) >= 1.44
f5c447
%endif
f5c447
# =============== Module Runtime ====================
f5c447
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f5c447
%if %{with XSAccessor}
f5c447
Requires:       perl(Class::XSAccessor)
f5c447
%endif
f5c447
# Run-require Task::Weaken, see Changes for more details.
f5c447
Requires:       perl(Task::Weaken)
f5c447
f5c447
# Filter out redundant unversioned provides
f5c447
%global __provides_exclude ^perl\\(PPI::.+\\)$
f5c447
f5c447
%description
f5c447
Parse, analyze and manipulate Perl (without perl).
f5c447
f5c447
%prep
f5c447
%setup -q -n PPI-%{version}
f5c447
f5c447
# Recode documentation as UTF-8
f5c447
%patch0
f5c447
f5c447
%if %{without XSAccessor}
f5c447
rm lib/PPI/XSAccessor.pm
f5c447
sed -i '/^lib\/PPI\/XSAccessor\.pm$/d' MANIFEST
f5c447
%endif
f5c447
f5c447
%build
f5c447
perl Makefile.PL INSTALLDIRS=vendor
f5c447
make %{?_smp_mflags}
f5c447
f5c447
%install
f5c447
make pure_install DESTDIR=%{buildroot}
f5c447
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
f5c447
%{_fixperms} %{buildroot}
f5c447
f5c447
%check
f5c447
make test
f5c447
%if 0%{!?perl_bootstrap:1}
f5c447
make test TEST_FILES="xt/*.t" RELEASE_TESTING=1
f5c447
%endif
f5c447
f5c447
%files
f5c447
%doc Changes LICENSE README inline2test.conf inline2test.tpl
f5c447
%{perl_vendorlib}/PPI/
f5c447
%{perl_vendorlib}/PPI.pm
f5c447
%{_mandir}/man3/PPI*.3pm*
f5c447
f5c447
%changelog
f5c447
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.215-12
f5c447
- Mass rebuild 2013-12-27
f5c447
f5c447
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.215-11
f5c447
- Specify all dependencies
f5c447
f5c447
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-10
f5c447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f5c447
f5c447
* Sat Aug 25 2012 Paul Howarth <paul@city-fan.org> - 1.215-9
f5c447
- classify buildreqs by usage
f5c447
- BR: perl(Time::HiRes) for the test suite
f5c447
- BR: perl(Pod::Simple) ≥ 3.14 for the release tests
f5c447
- BR: at least version 0.17 of perl(Test::CPAN::Meta)
f5c447
- bump perl(Test::Pod) version requirement to 1.44
f5c447
- don't need to remove empty directories from the buildroot
f5c447
f5c447
* Thu Aug 16 2012 Petr Pisar <ppisar@redhat.com> - 1.215-8
f5c447
- specify all dependencies
f5c447
f5c447
* Wed Aug 15 2012 Daniel Mach <dmach@redhat.com> - 1.215-7.1
f5c447
- Rebuild for perl 5.16
f5c447
f5c447
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-7
f5c447
- rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f5c447
f5c447
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.215-6
f5c447
- perl 5.16 re-rebuild of bootstrapped packages
f5c447
f5c447
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.215-5
f5c447
- perl 5.16 rebuild
f5c447
- build-require Class::Inspector for tests
f5c447
f5c447
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-4
f5c447
- rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f5c447
f5c447
* Thu Jul 21 2011 Paul Howarth <paul@city-fan.org> - 1.215-3
f5c447
- always run test suite but don't run release tests when bootstrapping
f5c447
- nobody else likes macros for commands
f5c447
- clean up for modern rpm:
f5c447
  - drop explicit buildroot tag
f5c447
  - drop buildroot cleaning
f5c447
  - drop %%defattr
f5c447
  - use native provides filtering
f5c447
- use a patch rather than scripting iconv to fix character encoding
f5c447
- upstream file permissions no longer need fixing
f5c447
f5c447
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.215-2
f5c447
- rebuild with Perl 5.14.1
f5c447
- use perl_bootstrap macro
f5c447
f5c447
* Sun Mar 27 2011 Paul Howarth <paul@city-fan.org> - 1.215-1
f5c447
- update to 1.215 (general fix release):
f5c447
  - index_locations on an empty document no longer warns
f5c447
  - Corrected a bug in line-spanning attribute support
f5c447
  - Regression test for line-spanning attribute support
f5c447
  - return { foo => 1 } should parse curlys as hash constructor, not block
f5c447
    (CPAN RT#61305)
f5c447
  - Fixed bug with map and regexp confusing PPI (CPAN RT#63943)
f5c447
  - Updated copyright year to 2011
f5c447
  - Fix bless {} probably contains a hash constructor (CPAN RT#64247)
f5c447
  - Backed out glob fix
f5c447
  - Fix cast can trump braces in PPI::Token::Symbol->symbol (CPAN RT#65199)
f5c447
f5c447
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.213-3
f5c447
- rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f5c447
f5c447
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.213-2
f5c447
- rebuild to fix problems with vendorarch/lib (#661697)
f5c447
f5c447
* Sat Jul 31 2010 Paul Howarth <paul@city-fan.org> - 1.213-1
f5c447
- update to 1.213 (targeted bug fix, no changes to parsing or normal usage)
f5c447
  - Updated to Module::Install 1.00
f5c447
  - Updated module dependencies in xt author tests
f5c447
  - Fixed extremely broken PPI::Token::Pod::merge and added test case
f5c447
- bump perl(Perl::MinimumVersion) requirement to 1.25
f5c447
- bump perl(Test::CPAN::Meta) requirement to 0.17
f5c447
- bump perl(Test::Pod) requirement to 1.44
f5c447
f5c447
* Sat Jul 31 2010 Paul Howarth <paul@city-fan.org> - 1.212-1
f5c447
- update to 1.212 (experimental/development support and bugfixes)
f5c447
  - Fixed bug in ForLoop back-compatibility warning (CPAN RT#48819)
f5c447
  - Added support for $ENV{X_TOKENIZER} --> $PPI::Lexer::X_TOKENIZER
f5c447
  - Upgraded to Module::Install 0.93
f5c447
  - Added support for $PPI::Lexer::X_TOKENIZER, for alternate tokenizers
f5c447
  - Added an extra test case to validate we handle byte order marks properly
f5c447
  - Moved author tests from t to xt
f5c447
  - Fixed CPAN RT#26082: scalar { %%x } is misparsed
f5c447
  - Fixed CPAN RT#26591: VMS patch for PPI 1.118
f5c447
  - Fixed CPAN RT#44862: PPI cannot parse "package Foo::100;" correctly
f5c447
  - Fixed CPAN RT#54208: PPI::Token::Quote::Literal::literal missing
f5c447
- run release tests as well as regular test suite
f5c447
- BR: perl(File::Find::Rule) >= 0.32, perl(File::Find::Rule::Perl) >= 1.09, 
f5c447
  perl(Perl::MinimumVersion) >= 1.24 and perl(Test::MinimumVersion) >= 0.101080 
f5c447
  for release tests
f5c447
f5c447
* Sat Jul 31 2010 Paul Howarth <paul@city-fan.org> - 1.210-1
f5c447
- update to 1.210 (packaging fixes)
f5c447
- use RELEASE_TESTING rather than AUTOMATED_TESTING for better test coverage
f5c447
f5c447
* Sat Jul 31 2010 Paul Howarth <paul@city-fan.org> - 1.209-1
f5c447
- update to 1.209 (small optimisation release, no functional changes)
f5c447
f5c447
* Fri Jul 30 2010 Paul Howarth <paul@city-fan.org> - 1.208-1
f5c447
- update to 1.208
f5c447
  - don't assign '' to $^W, it generates a warning on Gentoo
f5c447
  - added missing PPI::Token::Regexp fix to Changes file
f5c447
  - updating Copyright to the new year
f5c447
  - fixed #50309: literal() wrong result on "qw (a b c)"
f5c447
  - PPI::Dumper no longer causes Elements to flush location data
f5c447
  - PPI::Dumper no longer disables location information for non-Documents
f5c447
  - +{ package => 1 } doesn't create a PPI::Statement::Package
f5c447
  - extra methods in PPI::Token::Regexp and PPI::Token::QuoteLike::Regexp
f5c447
- use %%{_fixperms} macro instead of our own chmod incantation
f5c447
f5c447
* Fri Jul 30 2010 Paul Howarth <paul@city-fan.org> - 1.206-6
f5c447
- BR: perl(Task::Weaken) and perl(Test::CPAN::Meta) for improved test coverage
f5c447
- enable AUTOMATED_TESTING
f5c447
- use DESTDIR rather than PERL_INSTALL_ROOT
f5c447
f5c447
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.206-5
f5c447
- Mass rebuild with perl-5.12.0
f5c447
f5c447
* Thu Feb 11 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.206-4
f5c447
- fix filtering, provide versioned provides
f5c447
f5c447
* Wed Feb 10 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1.206-3
f5c447
- make rpmlint happy
f5c447
f5c447
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.206-2
f5c447
- rebuild against perl 5.10.1
f5c447
f5c447
* Wed Oct  7 2009 Stepan Kasal <skasal@redhat.com> - 1.206-1
f5c447
- new upstream version
f5c447
- update build requires
f5c447
f5c447
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.203-3
f5c447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f5c447
f5c447
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.203-2
f5c447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f5c447
f5c447
* Tue Sep  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.203-1
f5c447
- update to 1.203
f5c447
f5c447
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.201-3
f5c447
- Rebuild for perl 5.10 (again)
f5c447
f5c447
* Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.201-2
f5c447
- rebuild for new perl
f5c447
f5c447
* Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.201-1
f5c447
- bump to 1.201
f5c447
f5c447
* Sat Sep 23 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.118-1
f5c447
- Update to 1.118.
f5c447
f5c447
* Wed Sep  6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.117-1
f5c447
- Update to 1.117.
f5c447
f5c447
* Sun Jun  4 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.115-2
f5c447
- Removed the perl(IO::Scalar) build requirement.
f5c447
f5c447
* Sun Jun  4 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.115-1
f5c447
- Update to 1.115.
f5c447
f5c447
* Wed May 10 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.113-1
f5c447
- Update to 1.113.
f5c447
f5c447
* Tue Apr 25 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.112-1
f5c447
- Update to 1.112.
f5c447
f5c447
* Sat Apr 22 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.111-1
f5c447
- First build.