2008-05-06 18:12:33 +00:00
|
|
|
#
|
2012-02-15 20:52:45 +00:00
|
|
|
# spec file for package perl-Digest-SHA
|
2011-04-22 07:27:47 +00:00
|
|
|
#
|
2024-07-20 22:00:18 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2008-05-06 18:12:33 +00:00
|
|
|
#
|
2009-06-21 13:40:59 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2022-08-16 12:28:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-05-06 18:12:33 +00:00
|
|
|
#
|
|
|
|
|
2012-02-15 20:52:45 +00:00
|
|
|
|
2022-08-16 12:28:21 +00:00
|
|
|
%define cpan_name Digest-SHA
|
2008-05-06 18:12:33 +00:00
|
|
|
Name: perl-Digest-SHA
|
2024-07-20 22:00:18 +00:00
|
|
|
Version: 6.40.0
|
2012-02-15 20:52:45 +00:00
|
|
|
Release: 0
|
2024-07-20 22:00:18 +00:00
|
|
|
# 6.04 -> normalize -> 6.40.0
|
|
|
|
%define cpan_version 6.04
|
2018-04-23 07:47:08 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-08-16 12:28:21 +00:00
|
|
|
Summary: Perl extension for SHA-1/224/256/384/512
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-07-20 22:00:18 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSHELOR/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-22 05:33:02 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:34 +02:00
|
|
|
Source100: README.md
|
2009-06-21 13:40:59 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-04-22 07:27:47 +00:00
|
|
|
%{perl_requires}
|
2008-05-06 18:12:33 +00:00
|
|
|
|
|
|
|
%description
|
2011-04-22 07:27:47 +00:00
|
|
|
Digest::SHA is written in C for speed. If your platform lacks a C compiler,
|
2016-08-01 14:57:01 +00:00
|
|
|
you can install the functionally equivalent (but much slower)
|
|
|
|
Digest::SHA::PurePerl module.
|
2011-04-22 07:27:47 +00:00
|
|
|
|
|
|
|
The programming interface is easy to use: it's the same one found in CPAN's
|
2016-08-01 14:57:01 +00:00
|
|
|
Digest module. So, if your applications currently use Digest::MD5 and you'd
|
|
|
|
prefer the stronger security of SHA, it's a simple matter to convert them.
|
2011-04-22 07:27:47 +00:00
|
|
|
|
2008-05-06 18:12:33 +00:00
|
|
|
%prep
|
2024-07-20 22:00:18 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2023-03-10 10:41:53 +00:00
|
|
|
|
2015-04-22 05:33:02 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
find . -type f -print0 | xargs -0 -n1 sed -e 's,^#!perl,#!/usr/bin/perl,' -i
|
|
|
|
# MANUAL END
|
2008-05-06 18:12:33 +00:00
|
|
|
|
|
|
|
%build
|
2022-08-16 12:28:21 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%make_build
|
2008-05-06 18:12:33 +00:00
|
|
|
|
|
|
|
%check
|
2022-08-16 12:28:21 +00:00
|
|
|
make test
|
2008-05-06 18:12:33 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-04-22 05:33:02 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
mv %{buildroot}%{_mandir}/man1/shasum.1{,.cpan}
|
|
|
|
mv %{buildroot}%{_bindir}/shasum{,.cpan}
|
|
|
|
# MANUAL END
|
2009-06-21 13:40:59 +00:00
|
|
|
%perl_gen_filelist
|
2008-05-06 18:12:33 +00:00
|
|
|
|
2009-06-21 13:40:59 +00:00
|
|
|
%files -f %{name}.files
|
2011-04-22 07:27:47 +00:00
|
|
|
%doc Changes examples README shasum
|
2008-05-06 18:12:33 +00:00
|
|
|
|
|
|
|
%changelog
|