67 lines
2.0 KiB
RPMSpec
67 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package perl-MD5
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name MD5
|
|
Name: perl-MD5
|
|
Version: 2.30.0
|
|
Release: 0
|
|
# 2.03 -> normalize -> 2.30.0
|
|
%define cpan_version 2.03
|
|
License: CHECK(Artistic-1.0 or GPL-1.0-or-later)
|
|
Summary: Perl interface to the MD5 Message-Digest Algorithm
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(MD5) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
The 'MD5' module is *depreciated*. Use 'Digest::MD5' instead.
|
|
|
|
The current 'MD5' module is just a wrapper around the 'Digest::MD5' module.
|
|
It is provided so that legacy code that rely on the old interface still
|
|
work and get the speed benefit of the new module.
|
|
|
|
In addition to the methods provided for 'Digest::MD5' objects, this module
|
|
provide the class methods MD5->hash() and MD5->hexhash() that do the same
|
|
as the md5() and md5_hex() functions provided by 'Digest::MD5'.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
|
|
%changelog
|