53c449
# Run optional test
53c449
%bcond_without perl_Sub_Identify_enables_optional_test
53c449
53c449
Name:		perl-Sub-Identify
53c449
Version:	0.14
53c449
Release:	6%{?dist}
53c449
Summary:	Retrieve names of code references
53c449
License:	GPL+ or Artistic
53c449
URL:		http://search.cpan.org/dist/Sub-Identify/
53c449
Source0:	http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Sub-Identify-%{version}.tar.gz
53c449
# Module Build
53c449
BuildRequires:	coreutils
53c449
BuildRequires:	findutils
53c449
BuildRequires:	gcc
53c449
BuildRequires:	make
53c449
BuildRequires:	perl-interpreter
53c449
BuildRequires:	perl-devel
53c449
BuildRequires:	perl-generators
53c449
BuildRequires:	perl(Config)
53c449
BuildRequires:	perl(ExtUtils::MakeMaker)
53c449
# Module Runtime
53c449
BuildRequires:	perl(B)
53c449
BuildRequires:	perl(Exporter)
53c449
BuildRequires:	perl(strict)
53c449
BuildRequires:	perl(XSLoader)
53c449
# Test Suite
53c449
# feature required with perl ≥ 5.020
53c449
%if 0%{?fedora} > 21 || 0%{?rhel} > 7
53c449
BuildRequires:	perl(feature)
53c449
%endif
53c449
BuildRequires:	perl(List::Util)
53c449
BuildRequires:	perl(Test::More)
53c449
BuildRequires:	perl(warnings)
53c449
%if %{with perl_Sub_Identify_enables_optional_test}
53c449
# Optional tests
53c449
BuildRequires:	perl(Test::Pod) >= 1.14
53c449
%endif
53c449
# Runtime
53c449
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
53c449
Requires:	perl(B)
53c449
Requires:	perl(XSLoader)
53c449
53c449
# Don't provide private perl libs
53c449
%{?perl_default_filter}
53c449
53c449
%description
53c449
Sub::Identify allows you to retrieve the real name of code references. For
53c449
this, it uses Perl's introspection mechanism, provided by the B module.
53c449
53c449
%prep
53c449
%setup -q -n Sub-Identify-%{version}
53c449
53c449
# Fix script interpreters
53c449
perl -MConfig -pi -e 's|^#!perl|$Config{startperl}|' t/*
53c449
53c449
%build
53c449
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
53c449
make %{?_smp_mflags}
53c449
53c449
%install
53c449
make pure_install DESTDIR=%{buildroot}
53c449
find %{buildroot} -type f -name .packlist -delete
53c449
find %{buildroot} -type f -name '*.bs' -empty -delete
53c449
%{_fixperms} -c %{buildroot}
53c449
53c449
%check
53c449
make test
53c449
53c449
%files
53c449
%doc Changes README.mdown TODO.mdown t/
53c449
%{perl_vendorarch}/auto/Sub/
53c449
%{perl_vendorarch}/Sub/
53c449
%{_mandir}/man3/Sub::Identify.3*
53c449
53c449
%changelog
53c449
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-6
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
53c449
53c449
* Fri Dec 15 2017 Petr Pisar <ppisar@redhat.com> - 0.14-5
53c449
- Rewrite script interpreters correctly
53c449
53c449
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-4
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
53c449
53c449
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-3
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53c449
53c449
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.14-2
53c449
- Perl 5.26 rebuild
53c449
53c449
* Tue Apr 11 2017 Paul Howarth <paul@city-fan.org> - 0.14-1
53c449
- Update to 0.14
53c449
  - Make tests pass without . in @INC (actual fix)
53c449
53c449
* Mon Apr  3 2017 Paul Howarth <paul@city-fan.org> - 0.13-1
53c449
- Update to 0.13
53c449
  - Reformatted Changes to follow basic format in CPAN::Changes::Spec
53c449
  - Make tests pass without . in @INC
53c449
53c449
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-5
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
53c449
53c449
* Thu Jul 21 2016 Petr Pisar <ppisar@redhat.com> - 0.12-4
53c449
- Check for distribution instead of perl version
53c449
53c449
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.12-3
53c449
- Perl 5.24 rebuild
53c449
53c449
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
53c449
53c449
* Tue Sep  8 2015 Paul Howarth <paul@city-fan.org> - 0.12-1
53c449
- Update to 0.12
53c449
  - Fix build on perl 5.8
53c449
53c449
* Fri Sep  4 2015 Paul Howarth <paul@city-fan.org> - 0.11-1
53c449
- Update to 0.11
53c449
  - Add test for Perl's subroutine signatures feature (GH#5)
53c449
  - Do not let get_code_location() segfault on XSUBs
53c449
- BR: perl-devel for EXTERN.h
53c449
- Drop EL-5 support
53c449
53c449
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
53c449
53c449
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-2
53c449
- Perl 5.22 rebuild
53c449
53c449
* Wed Jan  7 2015 Paul Howarth <paul@city-fan.org> - 0.10-1
53c449
- Update to 0.10
53c449
  - Fix test failure due to hard-coded filenames
53c449
53c449
* Thu Sep 18 2014 Paul Howarth <paul@city-fan.org> - 0.08-1
53c449
- Update to 0.08
53c449
  - Add test for function prototypes
53c449
  - Better, simpler code for testing if we can load the XS version
53c449
  - Add gitignore file
53c449
  - Experimental implementation of get_code_location
53c449
  - Add XS implementation of get_code_location()
53c449
  - Add test for the prototype of get_code_location
53c449
  - Make get_code_location work on undefined subs
53c449
  - Add link to github repo in the meta file
53c449
  - Add TODO file
53c449
  - Add pure-perl implementation of is_sub_constant()
53c449
  - Add XS implementation of is_constant_sub()
53c449
  - Add documentation
53c449
  - Skip tests that rely on perls more recent than 5.14.0
53c449
  - Update ppport.h
53c449
  - Use the pure-perl version of is_sub_constant on perls earlier than 5.16
53c449
  - Require B unconditionally on older perls
53c449
  - Require at least perl 5.8.0
53c449
  - Improve docs beyond a really terse synopsis
53c449
- Classify buildreqs by usage
53c449
- Drop %%defattr, redundant since rpm 4.4
53c449
53c449
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.04-21
53c449
- Perl 5.20 rebuild
53c449
53c449
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-20
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
53c449
53c449
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-19
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
53c449
53c449
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-18
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
53c449
53c449
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.04-17
53c449
- Perl 5.18 rebuild
53c449
53c449
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-16
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
53c449
53c449
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-15
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
53c449
53c449
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.04-14
53c449
- Perl 5.16 rebuild
53c449
53c449
* Mon Mar  5 2012 Paul Howarth <paul@city-fan.org> - 0.04-13
53c449
- Use %%{optflags}
53c449
- BR: perl(Exporter) and perl(Test::Pod)
53c449
- Make %%files list more explicit
53c449
- Use DESTDIR rather than PERL_INSTALL_ROOT
53c449
- No need to remove empty directories from buildroot
53c449
- Don't use macros for commands
53c449
- Use tabs
53c449
53c449
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-12
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
53c449
53c449
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.04-11
53c449
- Perl mass rebuild
53c449
53c449
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-10
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
53c449
53c449
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-9
53c449
- Rebuild to fix problems with vendorarch/lib (#661697)
53c449
53c449
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.04-8
53c449
- Mass rebuild with perl-5.12.0
53c449
53c449
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.04-7
53c449
- Rebuild against perl 5.10.1
53c449
53c449
* Fri Aug 28 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-6
53c449
- Bump
53c449
53c449
* Thu Aug 27 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-5
53c449
- Filtering errant private provides
53c449
53c449
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-4
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
53c449
53c449
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-3
53c449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
53c449
53c449
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-2
53c449
- Aaaand change files to look in the the arch-dependent dirs
53c449
53c449
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.04-1
53c449
- Update to 0.04
53c449
- Drop buildarch noarch, as we have some XS bits now
53c449
53c449
* Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.03-1
53c449
- Update to 0.03
53c449
53c449
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.02-3
53c449
- Rebuild for new perl
53c449
53c449
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.02-2.2
53c449
- Add BR: perl(Test::More)
53c449
53c449
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.02-2.1
53c449
- Correct license tag
53c449
- Add BR: perl(ExtUtils::MakeMaker)
53c449
53c449
* Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-2
53c449
- Bump
53c449
53c449
* Tue Sep 05 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-1
53c449
- Specfile autogenerated by cpanspec 1.69.1