|
|
f54c03 |
%{?scl:%scl_package perl-Digest-SHA}
|
|
|
f54c03 |
%{!?scl:%global pkg_name %{name}}
|
|
|
f54c03 |
|
|
|
f54c03 |
Name: %{?scl_prefix}perl-Digest-SHA
|
|
|
f54c03 |
Epoch: 1
|
|
|
f54c03 |
Version: 5.85
|
|
|
f54c03 |
Release: 3%{?dist}
|
|
|
f54c03 |
Summary: Perl extension for SHA-1/224/256/384/512
|
|
|
f54c03 |
License: GPL+ or Artistic
|
|
|
f54c03 |
Group: Development/Libraries
|
|
|
f54c03 |
URL: http://search.cpan.org/dist/Digest-SHA/
|
|
|
f54c03 |
Source0: http://www.cpan.org/authors/id/M/MS/MSHELOR/Digest-SHA-%{version}.tar.gz
|
|
|
f54c03 |
# Since 5.80, upstream overrides CFLAGS because they think it improves
|
|
|
f54c03 |
# performance. Revert it.
|
|
|
f54c03 |
Patch0: Digest-SHA-5.84-Reset-CFLAGS.patch
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Config)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Getopt::Std)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(strict)
|
|
|
f54c03 |
# Run-time
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Carp)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(DynaLoader)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Exporter)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Fcntl)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(integer)
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(vars)
|
|
|
f54c03 |
# Optional run-time
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Digest::base)
|
|
|
f54c03 |
# Tests
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(FileHandle)
|
|
|
f54c03 |
# Optional tests
|
|
|
f54c03 |
%if !%{defined perl_bootstrap}
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Test::Pod) >= 1.00
|
|
|
f54c03 |
BuildRequires: %{?scl_prefix}perl(Test::Pod::Coverage) >= 0.08
|
|
|
f54c03 |
%endif
|
|
|
f54c03 |
%{?scl:%global perl_version %(scl enable %{scl} 'eval "`%{__perl} -V:version`"; echo $version')}
|
|
|
f54c03 |
%{!?scl:%global perl_version %(eval "`%{__perl} -V:version`"; echo $version)}
|
|
|
f54c03 |
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version})
|
|
|
f54c03 |
Requires: %{?scl_prefix}perl(Carp)
|
|
|
f54c03 |
# Optional but recommended
|
|
|
f54c03 |
Requires: %{?scl_prefix}perl(Digest::base)
|
|
|
f54c03 |
|
|
|
f54c03 |
%{?perl_default_filter}
|
|
|
f54c03 |
|
|
|
f54c03 |
%description
|
|
|
f54c03 |
Digest::SHA is a complete implementation of the NIST Secure Hash Standard. It
|
|
|
f54c03 |
gives Perl programmers a convenient way to calculate SHA-1, SHA-224, SHA-256,
|
|
|
f54c03 |
SHA-384, SHA-512, SHA-512/224, and SHA-512/256 message digests. The module can
|
|
|
f54c03 |
handle all types of input, including partial-byte data.
|
|
|
f54c03 |
|
|
|
f54c03 |
%prep
|
|
|
f54c03 |
%setup -q -n Digest-SHA-%{version}
|
|
|
f54c03 |
%patch0 -p1
|
|
|
f54c03 |
chmod -x examples/*
|
|
|
f54c03 |
%{?scl:scl enable %{scl} "}
|
|
|
f54c03 |
perl -MExtUtils::MakeMaker -e 'ExtUtils::MM_Unix->fixin(q{examples/dups})'
|
|
|
f54c03 |
%{?scl:"}
|
|
|
f54c03 |
|
|
|
f54c03 |
%build
|
|
|
f54c03 |
%{?scl:scl enable %{scl} '}
|
|
|
f54c03 |
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
f54c03 |
%{?scl:'}
|
|
|
f54c03 |
%{?scl:scl enable %{scl} "}
|
|
|
f54c03 |
make %{?_smp_mflags}
|
|
|
f54c03 |
%{?scl:"}
|
|
|
f54c03 |
|
|
|
f54c03 |
%install
|
|
|
f54c03 |
%{?scl:scl enable %{scl} "}
|
|
|
f54c03 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
f54c03 |
%{?scl:"}
|
|
|
f54c03 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
f54c03 |
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
f54c03 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
f54c03 |
|
|
|
f54c03 |
%check
|
|
|
f54c03 |
%{?scl:scl enable %{scl} "}
|
|
|
f54c03 |
make test
|
|
|
f54c03 |
%{?scl:"}
|
|
|
f54c03 |
|
|
|
f54c03 |
%files
|
|
|
f54c03 |
%doc Changes examples README
|
|
|
f54c03 |
%{_bindir}/*
|
|
|
f54c03 |
%{perl_vendorarch}/auto/*
|
|
|
f54c03 |
%{perl_vendorarch}/Digest*
|
|
|
f54c03 |
%{_mandir}/man1/*
|
|
|
f54c03 |
%{_mandir}/man3/*
|
|
|
f54c03 |
|
|
|
f54c03 |
%changelog
|
|
|
f54c03 |
* Tue Feb 11 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.85-3
|
|
|
f54c03 |
- Fixed rpmlint error
|
|
|
f54c03 |
- Resolves: rhbz#1063206
|
|
|
f54c03 |
|
|
|
f54c03 |
* Mon Nov 25 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.85-2
|
|
|
f54c03 |
- Re-rebuild of bootstrapped packages
|
|
|
f54c03 |
|
|
|
f54c03 |
* Tue Nov 12 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.85-1
|
|
|
f54c03 |
- 5.85 bump
|
|
|
f54c03 |
|
|
|
f54c03 |
* Mon May 20 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.84-1
|
|
|
f54c03 |
- 5.84 bump
|
|
|
f54c03 |
|
|
|
f54c03 |
* Fri Feb 8 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.82-1
|
|
|
f54c03 |
- Stack package - initial release
|