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