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