Blame SPECS/perl-PPI.spec

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