c81052
# Run optional test
c81052
%if ! (0%{?rhel})
c81052
%bcond_without perl_version_enables_optional_test
c81052
%else
c81052
%bcond_with perl_version_enables_optional_test
c81052
%endif
c81052
c81052
Name:           perl-version
c81052
Epoch:          6
c81052
Version:        0.99.24
c81052
%global module_version 0.9924
c81052
Release:        2%{?dist}
c81052
Summary:        Perl extension for Version Objects
c81052
License:        GPL+ or Artistic
c81052
URL:            http://search.cpan.org/dist/version/
c81052
Source0:        http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-%{module_version}.tar.gz
c81052
# Build
c81052
BuildRequires:  findutils
c81052
BuildRequires:  gcc
c81052
BuildRequires:  make
c81052
BuildRequires:  perl-devel
c81052
BuildRequires:  perl-generators
c81052
BuildRequires:  perl-interpreter
c81052
BuildRequires:  perl(Config)
c81052
# ExtUtils::CBuilder not helpful
c81052
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
c81052
BuildRequires:  perl(File::Temp) >= 0.13
c81052
BuildRequires:  perl(strict)
c81052
# Runtime
c81052
BuildRequires:  perl(B)
c81052
BuildRequires:  perl(Carp)
c81052
BuildRequires:  perl(constant)
c81052
BuildRequires:  perl(if)
c81052
BuildRequires:  perl(locale)
c81052
BuildRequires:  perl(overload)
c81052
BuildRequires:  perl(POSIX)
c81052
BuildRequires:  perl(UNIVERSAL)
c81052
BuildRequires:  perl(warnings)
c81052
BuildRequires:  perl(warnings::register)
c81052
BuildRequires:  perl(XSLoader)
c81052
# Tests only
c81052
BuildRequires:  perl(Data::Dumper)
c81052
BuildRequires:  perl(File::Basename)
c81052
BuildRequires:  perl(File::Spec)
c81052
BuildRequires:  perl(IO::Handle)
c81052
BuildRequires:  perl(lib)
c81052
BuildRequires:  perl(List::Util)
c81052
BuildRequires:  perl(parent)
c81052
BuildRequires:  perl(Test::Harness)
c81052
BuildRequires:  perl(Test::More) >= 0.45
c81052
# Optional tests
c81052
%if %{with perl_version_enables_optional_test} && ! %{defined perl_bootstrap}
c81052
BuildRequires:  perl(Test::Taint)
c81052
%endif
c81052
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
c81052
Requires:       perl(B)
c81052
Requires:       perl(Carp)
c81052
Requires:       perl(locale)
c81052
Requires:       perl(UNIVERSAL)
c81052
Requires:       perl(warnings)
c81052
Requires:       perl(XSLoader)
c81052
c81052
%{?perl_default_filter}
c81052
# version::vxs is private module (see bug #633775)
c81052
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(version::vxs\\)
c81052
c81052
%description
c81052
Version objects were added to Perl in 5.10. This module implements version
c81052
objects for older version of Perl and provides the version object API for
c81052
all versions of Perl. All previous releases before 0.74 are deprecated and
c81052
should not be used due to incompatible API changes. Version 0.77 introduces
c81052
the new 'parse' and 'declare' methods to standardize usage. You are
c81052
strongly urged to set 0.77 as a minimum in your code.
c81052
c81052
%prep
c81052
%setup -q -n version-%{module_version}
c81052
c81052
%build
c81052
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=1
c81052
make %{?_smp_mflags}
c81052
c81052
%install
c81052
make pure_install DESTDIR=%{buildroot}
c81052
find %{buildroot} -type f -name '*.bs' -size 0 -delete
c81052
%{_fixperms} %{buildroot}/*
c81052
c81052
%check
c81052
make test
c81052
c81052
%files
c81052
%doc CHANGES README
c81052
%doc %{perl_vendorarch}/version.pod
c81052
%dir %{perl_vendorarch}/version/
c81052
%doc %{perl_vendorarch}/version/Internals.pod
c81052
%{perl_vendorarch}/auto/version/
c81052
%{perl_vendorarch}/version.pm
c81052
%{perl_vendorarch}/version/vpp.pm
c81052
%{perl_vendorarch}/version/vxs.pm
c81052
%{perl_vendorarch}/version/regex.pm
c81052
%{_mandir}/man3/version.3pm*
c81052
%{_mandir}/man3/version::Internals.3pm*
c81052
c81052
%changelog
c81052
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 6:0.99.24-2
c81052
- Rebuild with enable hardening (bug #1636329)
c81052
c81052
* Fri Apr 20 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6:0.99.24-1
c81052
- 0.9924 bump
c81052
c81052
* Mon Apr 16 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6:0.99.23-1
c81052
- 0.9923 bump
c81052
c81052
* Thu Apr 12 2018 Petr Pisar <ppisar@redhat.com> - 6:0.99.21-1
c81052
- 0.9921 bump
c81052
c81052
* Mon Apr 09 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6:0.99.20-1
c81052
- 0.9920 bump
c81052
c81052
* Fri Mar 09 2018 Petr Pisar <ppisar@redhat.com> - 6:0.99.18-7
c81052
- Remove useless build-time dependency on ExtUtils::CBuilder
c81052
- Fix documentation about numify() and stringify() trailing zeros
c81052
  (CPAN RT#64635, CPAN RT#122858)
c81052
c81052
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6:0.99.18-6
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c81052
c81052
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6:0.99.18-5
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c81052
c81052
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6:0.99.18-4
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c81052
c81052
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6:0.99.18-3
c81052
- Perl 5.26 re-rebuild of bootstrapped packages
c81052
c81052
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6:0.99.18-2
c81052
- Perl 5.26 rebuild
c81052
c81052
* Fri Apr 21 2017 Jitka Plesnikova <jplesnik@redhat.com> - 5:0.99.18-1
c81052
- 0.9918 bump
c81052
c81052
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5:0.99.17-2
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c81052
c81052
* Thu Jun 02 2016 Jitka Plesnikova <jplesnik@redhat.com> - 5:0.99.17-1
c81052
- 0.9917 bump
c81052
c81052
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 5:0.99.16-365
c81052
- Increase release to favour standalone package
c81052
c81052
* Mon Mar 21 2016 Jitka Plesnikova <jplesnik@redhat.com> - 5:0.99.16-1
c81052
- 0.9916 bump
c81052
c81052
* Sun Mar 06 2016 Petr Šabata <contyk@redhat.com> - 5:0.99.15-1
c81052
- 0.9915 bump, documentation updated
c81052
c81052
* Thu Feb 25 2016 Petr Šabata <contyk@redhat.com> - 5:0.99.14-1
c81052
- 0.9914 bump
c81052
c81052
* Wed Feb 17 2016 Petr Šabata <contyk@redhat.com> - 5:0.99.13-1
c81052
- 0.9913 bump
c81052
- Backwards-incompatible changes in normal/numify/stringify
c81052
c81052
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5:0.99.12-5
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c81052
c81052
* Mon Jul  6 2015 Paul Howarth <paul@city-fan.org> - 5:0.99.12-4
c81052
- Use UNINST=0 to avoid trying to mess with existing installation during
c81052
  rebuild (#1239335)
c81052
c81052
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5:0.99.12-3
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c81052
c81052
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 4:0.99.12-2
c81052
- Perl 5.22 rebuild
c81052
- Increase Epoch to favour standalone package
c81052
c81052
* Tue Feb 03 2015 Petr Pisar <ppisar@redhat.com> - 4:0.99.12-1
c81052
- 0.9912 bump
c81052
c81052
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 4:0.99.09-3
c81052
- Increase Epoch to favour standalone package
c81052
c81052
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3:0.99.09-2
c81052
- Perl 5.20 rebuild
c81052
c81052
* Wed Aug 20 2014 Petr Šabata <contyk@redhat.com> - 3:0.99.09-1
c81052
- 0.9909 bump
c81052
c81052
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:0.99.08-3
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c81052
c81052
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:0.99.08-2
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c81052
c81052
* Thu Feb 27 2014 Petr Šabata <contyk@redhat.com> - 3:0.99.08-1
c81052
- 0.9908 bump
c81052
c81052
* Mon Jan 27 2014 Petr Pisar <ppisar@redhat.com> - 3:0.99.07-2
c81052
- Specify all dependencies
c81052
c81052
* Wed Jan 15 2014 Petr Šabata <contyk@redhat.com> - 3:0.99.07-1
c81052
- 0.9907 bugfix bump
c81052
c81052
* Tue Jan 07 2014 Petr Šabata <contyk@redhat.com> - 3:0.99.06-1
c81052
- 0.9906 bump
c81052
c81052
* Tue Sep 10 2013 Petr Šabata <contyk@redhat.com> - 3:0.99.04-2
c81052
- Release bump to (hopefully) fix the build
c81052
c81052
* Tue Sep 10 2013 Petr Šabata <contyk@redhat.com> - 3:0.99.04-1
c81052
- 0.9904 bump
c81052
c81052
* Mon Aug 26 2013 Petr Šabata <contyk@redhat.com> - 3:0.99.03-1
c81052
- 0.9903 bump
c81052
- Prefer %%global over %%define
c81052
c81052
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:0.99.02-291
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c81052
c81052
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 3:0.99.02-290
c81052
- Increase release to favour standalone package
c81052
c81052
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 3:0.99.02-3
c81052
- Perl 5.18 rebuild
c81052
c81052
* Tue Jul 02 2013 Jitka Plesnikova <jplesnik@redhat.com> - 3:0.99.02-2
c81052
- Specify all dependencies
c81052
c81052
* Thu Mar  7 2013 Jitka Plesnikova <jplesnik@redhat.com> - 3:0.99.02-1
c81052
- 0.9902 bump
c81052
c81052
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:0.99.01-2
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c81052
c81052
* Mon Sep 17 2012 Jitka Plesnikova <jplesnik@redhat.com> - 3:0.99.01-1
c81052
- 0.9901 bump
c81052
c81052
* Tue Aug 28 2012 Jitka Plesnikova <jplesnik@redhat.com> - 3:0.99-241
c81052
- Add test BR perl(Test::Harness)
c81052
- Remove %%defattr
c81052
c81052
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 3:0.99-240
c81052
- Increase release to replace perl sub-package (bug #848961)
c81052
c81052
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 3:0.99-1
c81052
- 0.99 bump
c81052
c81052
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:0.88-10
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c81052
c81052
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 3:0.88-9
c81052
- Perl 5.16 rebuild
c81052
c81052
* Thu May 31 2012 Petr Pisar <ppisar@redhat.com> - 3:0.88-8
c81052
- Fix dependencies
c81052
c81052
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:0.88-7
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c81052
c81052
* Tue Aug 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3:0.88-6
c81052
- change path on vendor, so our debuginfo are not conflicting with
c81052
  perl core debuginfos
c81052
c81052
* Sun Jul 24 2011 Iain Arnell <iarnell@gmail.com> 3:0.88-5
c81052
- update filtering for rpm 4.9
c81052
c81052
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3:0.88-4
c81052
- Perl mass rebuild
c81052
c81052
* Fri Apr 08 2011 Petr Pisar <ppisar@redhat.com> - 3:0.88-3
c81052
- Unexport private version::vxs module (bug #633775)
c81052
- Remove BuildRoot stuff
c81052
c81052
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3:0.88-2
c81052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c81052
c81052
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> 3:0.88-1
c81052
- Update to 0.88
c81052
- Revert to Makefile.PL flow as upstream dropped Build.PL to avoid circular
c81052
  dependencies
c81052
- Install into perl directories rather than vendor directories
c81052
- Mark Pod files as %%doc
c81052
c81052
* Tue Mar 09 2010 Marcela Mašláňová <mmaslano@redhat.com> 3:0.82-1
c81052
- Specfile autogenerated by cpanspec 1.78.