Blame SPECS/perl-Digest-SHA.spec

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