Blame SPECS/perl-Digest-SHA.spec

5e358f
%{?scl:%scl_package perl-Digest-SHA}
5e358f
5e358f
# Inherit additional methods from Digest::Base
5e358f
%bcond_without perl_Digest_SHA_enables_digest_base
5e358f
# Run optional test
5e358f
%if ! (0%{?rhel}) && ! (0%{?scl:1})
5e358f
%bcond_without perl_Digest_SHA_enables_optional_test
5e358f
%else
5e358f
%bcond_with perl_Digest_SHA_enables_optional_test
5e358f
%endif
5e358f
5e358f
Name:           %{?scl_prefix}perl-Digest-SHA
5e358f
Epoch:          1
5e358f
Version:        6.02
5e358f
Release:        451%{?dist}
5e358f
Summary:        Perl extension for SHA-1/224/256/384/512
5e358f
License:        GPL+ or Artistic
5e358f
URL:            https://metacpan.org/release/Digest-SHA
5e358f
Source0:        https://cpan.metacpan.org/authors/id/M/MS/MSHELOR/Digest-SHA-%{version}.tar.gz
5e358f
# Since 5.80, upstream overrides CFLAGS because they think it improves
5e358f
# performance. Revert it.
5e358f
Patch0:         Digest-SHA-5.93-Reset-CFLAGS.patch
5e358f
BuildRequires:  coreutils
5e358f
BuildRequires:  findutils
5e358f
BuildRequires:  gcc
5e358f
BuildRequires:  make
5e358f
BuildRequires:  %{?scl_prefix}perl-devel
5e358f
BuildRequires:  %{?scl_prefix}perl-generators
5e358f
BuildRequires:  %{?scl_prefix}perl-interpreter
5e358f
BuildRequires:  %{?scl_prefix}perl(Config)
5e358f
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.76
5e358f
BuildRequires:  %{?scl_prefix}perl(Getopt::Std)
5e358f
BuildRequires:  %{?scl_prefix}perl(strict)
5e358f
BuildRequires:  %{?scl_prefix}perl(vars)
5e358f
# Run-time
5e358f
BuildRequires:  %{?scl_prefix}perl(Carp)
5e358f
BuildRequires:  %{?scl_prefix}perl(Exporter)
5e358f
BuildRequires:  %{?scl_prefix}perl(Fcntl)
5e358f
# Getopt::Long not used at tests
5e358f
BuildRequires:  %{?scl_prefix}perl(integer)
5e358f
BuildRequires:  %{?scl_prefix}perl(warnings)
5e358f
# XSLoader or DynaLoader
5e358f
BuildRequires:  %{?scl_prefix}perl(XSLoader)
5e358f
# Optional run-time
5e358f
%if %{with perl_Digest_SHA_enables_digest_base}
5e358f
BuildRequires:  %{?scl_prefix}perl(Digest::base)
5e358f
%endif
5e358f
# Tests
5e358f
BuildRequires:  %{?scl_prefix}perl(FileHandle)
5e358f
%if %{with perl_Digest_SHA_enables_optional_test}
5e358f
# Optional tests
5e358f
%if !%{defined perl_bootstrap}
5e358f
BuildRequires:  %{?scl_prefix}perl(Test::More)
5e358f
BuildRequires:  %{?scl_prefix}perl(Test::Pod) >= 1.00
5e358f
BuildRequires:  %{?scl_prefix}perl(Test::Pod::Coverage) >= 0.08
5e358f
%endif
5e358f
%endif
5e358f
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
5e358f
Requires:       %{?scl_prefix}perl(Carp)
5e358f
# Optional but recommended
5e358f
%if %{with perl_Digest_SHA_enables_digest_base}
5e358f
Requires:       %{?scl_prefix}perl(Digest::base)
5e358f
%endif
5e358f
# XSLoader or DynaLoader
5e358f
Requires:       %{?scl_prefix}perl(XSLoader)
5e358f
5e358f
%{?perl_default_filter}
5e358f
5e358f
%description
5e358f
Digest::SHA is a complete implementation of the NIST Secure Hash Standard. It
5e358f
gives Perl programmers a convenient way to calculate SHA-1, SHA-224, SHA-256,
5e358f
SHA-384, SHA-512, SHA-512/224, and SHA-512/256 message digests. The module can
5e358f
handle all types of input, including partial-byte data.
5e358f
5e358f
%prep
5e358f
%setup -q -n Digest-SHA-%{version}
5e358f
%patch0 -p1
5e358f
chmod -x examples/*
5e358f
%{?scl:scl enable %{scl} '}perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{examples/dups})"%{?scl:'}
5e358f
5e358f
%build
5e358f
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}" && make %{?_smp_mflags}%{?scl:'}
5e358f
5e358f
%install
5e358f
%{?scl:scl enable %{scl} '}make pure_install DESTDIR="%{buildroot}"%{?scl:'}
5e358f
find '%{buildroot}' -type f -name '*.bs' -empty -delete
5e358f
%{_fixperms} -c '%{buildroot}'
5e358f
5e358f
%check
5e358f
%{?scl:scl enable %{scl} '}make test%{?scl:'}
5e358f
5e358f
%files
5e358f
%doc Changes examples/ README
5e358f
%{_bindir}/shasum
5e358f
%{perl_vendorarch}/auto/Digest/
5e358f
%{perl_vendorarch}/Digest/
5e358f
%{_mandir}/man1/shasum.1*
5e358f
%{_mandir}/man3/Digest::SHA.3*
5e358f
5e358f
%changelog
5e358f
* Fri Dec 20 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:6.02-451
5e358f
- SCL
5e358f
5e358f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.02-440
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5e358f
5e358f
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:6.02-439
5e358f
- Perl 5.30 re-rebuild of bootstrapped packages
5e358f
5e358f
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:6.02-438
5e358f
- Increase release to favour standalone package
5e358f
5e358f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.02-5
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5e358f
5e358f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.02-4
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5e358f
5e358f
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:6.02-3
5e358f
- Perl 5.28 re-rebuild of bootstrapped packages
5e358f
5e358f
* Tue Jun 26 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:6.02-2
5e358f
- Perl 5.28 rebuild
5e358f
5e358f
* Mon Apr 23 2018 Paul Howarth <paul@city-fan.org> - 1:6.02-1
5e358f
- 6.02 bump
5e358f
5e358f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.01-2
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5e358f
5e358f
* Tue Jan 02 2018 Petr Pisar <ppisar@redhat.com> - 1:6.01-1
5e358f
- 6.01 bump
5e358f
5e358f
* Mon Dec 11 2017 Petr Pisar <ppisar@redhat.com> - 1:6.00-1
5e358f
- 6.00 bump
5e358f
5e358f
* Thu Oct 12 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.98-1
5e358f
- 5.98 bump
5e358f
5e358f
* Fri Sep 08 2017 Petr Pisar <ppisar@redhat.com> - 1:5.97-1
5e358f
- 5.97 bump
5e358f
5e358f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:5.96-396
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5e358f
5e358f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:5.96-395
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5e358f
5e358f
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.96-394
5e358f
- Perl 5.26 re-rebuild of bootstrapped packages
5e358f
5e358f
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.96-393
5e358f
- Perl 5.26 rebuild
5e358f
5e358f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:5.96-2
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5e358f
5e358f
* Fri Jul 29 2016 Petr Pisar <ppisar@redhat.com> - 1:5.96-1
5e358f
- 5.96 bump
5e358f
5e358f
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.95-366
5e358f
- Perl 5.24 re-rebuild of bootstrapped packages
5e358f
5e358f
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.95-365
5e358f
- Increase release to favour standalone package
5e358f
5e358f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:5.95-348
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5e358f
5e358f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.95-347
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5e358f
5e358f
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.95-346
5e358f
- Perl 5.22 re-rebuild of bootstrapped packages
5e358f
5e358f
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.95-345
5e358f
- Increase release to favour standalone package
5e358f
5e358f
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.95-2
5e358f
- Perl 5.22 rebuild
5e358f
5e358f
* Fri Jan 30 2015 Petr Pisar <ppisar@redhat.com> - 1:5.95-1
5e358f
- 5.95 bump
5e358f
5e358f
* Wed Oct 29 2014 Petr Pisar <ppisar@redhat.com> - 1:5.93-2
5e358f
- Do not build-require version module
5e358f
5e358f
* Mon Oct 27 2014 Petr Pisar <ppisar@redhat.com> - 1:5.93-1
5e358f
- 5.93 bump
5e358f
5e358f
* Mon Sep 08 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.92-5
5e358f
- Perl 5.20 re-rebuild of bootstrapped packages
5e358f
5e358f
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.92-4
5e358f
- Perl 5.20 rebuild
5e358f
5e358f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.92-3
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5e358f
5e358f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.92-2
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5e358f
5e358f
* Mon Jun 02 2014 Petr Pisar <ppisar@redhat.com> - 1:5.92-1
5e358f
- 5.92 bump
5e358f
5e358f
* Mon May 26 2014 Petr Pisar <ppisar@redhat.com> - 1:5.91-1
5e358f
- 5.91 bump
5e358f
5e358f
* Fri May 09 2014 Petr Pisar <ppisar@redhat.com> - 1:5.90-1
5e358f
- 5.90 bump
5e358f
5e358f
* Fri Apr 25 2014 Petr Pisar <ppisar@redhat.com> - 1:5.89-1
5e358f
- 5.89 bump
5e358f
5e358f
* Tue Mar 18 2014 Petr Pisar <ppisar@redhat.com> - 1:5.88-1
5e358f
- 5.88 bump
5e358f
5e358f
* Wed Feb 19 2014 Petr Pisar <ppisar@redhat.com> - 1:5.87-1
5e358f
- 5.87 bump
5e358f
5e358f
* Mon Feb 03 2014 Petr Pisar <ppisar@redhat.com> - 1:5.86-1
5e358f
- 5.86 bump
5e358f
5e358f
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.85-4
5e358f
- Perl 5.18 re-rebuild of bootstrapped packages
5e358f
5e358f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.85-3
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5e358f
5e358f
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:5.85-2
5e358f
- Perl 5.18 rebuild
5e358f
5e358f
* Fri Jun 28 2013 Petr Pisar <ppisar@redhat.com> - 1:5.85-1
5e358f
- 5.85 bump
5e358f
5e358f
* Mon Mar 11 2013 Petr Pisar <ppisar@redhat.com> - 1:5.84-1
5e358f
- 5.84 bump
5e358f
5e358f
* Tue Mar 05 2013 Petr Pisar <ppisar@redhat.com> - 1:5.83-1
5e358f
- 5.83 bump
5e358f
5e358f
* Mon Jan 28 2013 Petr Pisar <ppisar@redhat.com> - 1:5.82-1
5e358f
- 5.82 bump
5e358f
5e358f
* Tue Jan 15 2013 Petr Pisar <ppisar@redhat.com> - 1:5.81-1
5e358f
- 5.81 bump
5e358f
5e358f
* Tue Dec 11 2012 Petr Pisar <ppisar@redhat.com> - 1:5.80-1
5e358f
- 5.80 bump
5e358f
5e358f
* Fri Nov 30 2012 Petr Pisar <ppisar@redhat.com> - 1:5.74-2
5e358f
- Restore epoch value broken in 5.73 bump
5e358f
5e358f
* Mon Nov 26 2012 Petr Pisar <ppisar@redhat.com> - 0:5.74-1
5e358f
- 5.74 bump
5e358f
5e358f
* Thu Nov 01 2012 Petr Pisar <ppisar@redhat.com> - 0:5.73-2
5e358f
- 5.73 bump
5e358f
5e358f
* Wed Sep 26 2012 Petr Pisar <ppisar@redhat.com> - 1:5.72-1
5e358f
- 5.72 bump
5e358f
5e358f
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1:5.71-240
5e358f
- bump release to override sub-package from perl.spec 
5e358f
5e358f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.71-5
5e358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5e358f
5e358f
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1:5.71-4
5e358f
- Perl 5.16 re-rebuild of bootstrapped packages
5e358f
5e358f
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1:5.71-3
5e358f
- Perl 5.16 rebuild
5e358f
5e358f
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 1:5.71-2
5e358f
- Omit optional POD tests on bootstrap
5e358f
5e358f
* Wed Mar 14 2012 Petr Pisar <ppisar@redhat.com> - 1:5.71-1
5e358f
- 5.71 bump
5e358f
5e358f
* Tue Feb 14 2012 Petr Pisar <ppisar@redhat.com> 1:5.70-1
5e358f
- Specfile autogenerated by cpanspec 1.78.