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