8
0

Accepting request 530783 from devel:languages:perl

1

OBS-URL: https://build.opensuse.org/request/show/530783
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Object-Signature?expand=0&rev=9
This commit is contained in:
2017-10-03 21:19:40 +00:00
committed by Git OBS Bridge
parent 0bd2b9b44e
commit 6378199124
3 changed files with 26 additions and 21 deletions

3
cpanspec.yml Normal file
View File

@@ -0,0 +1,3 @@
---
post_prep:
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 3 08:19:18 UTC 2017 - coolo@suse.com
- patch the Makefile to build with perl 5.26
-------------------------------------------------------------------
Thu Mar 31 08:47:00 UTC 2011 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Object-Signature
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,37 +16,36 @@
#
Name: perl-Object-Signature
Version: 1.07
Release: 1
License: GPL-1.0+ or Artistic-1.0
Release: 0
%define cpan_name Object-Signature
Summary: Generate cryptographic signatures for objects
Url: http://search.cpan.org/dist/Object-Signature/
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/A/AD/ADAMK/Object-Signature-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
Url: http://search.cpan.org/dist/Object-Signature/
Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Digest::MD5) >= 2.00
Requires: perl(Digest::MD5) >= 2.00
%{perl_requires}
%description
the Object::Signature manpage is an abstract base class that you can
inherit from in order to allow your objects to generate unique
cryptographic signatures.
Object::Signature is an abstract base class that you can inherit from in
order to allow your objects to generate unique cryptographic signatures.
The method used to generate the signature is based on the Storable manpage
and the Digest::MD5 manpage. The object is fed to 'Storable::nfreeze' to
get a string, which is then passed to the Digest::MD5::md5_hex manpage to
get a unique 32 character hexidecimal signature.
The method used to generate the signature is based on Storable and
Digest::MD5. The object is fed to 'Storable::nfreeze' to get a string,
which is then passed to Digest::MD5::md5_hex to get a unique 32 character
hexidecimal signature.
%prep
%setup -q -n %{cpan_name}-%{version}
# MANUAL BEGIN
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
# MANUAL END
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -60,11 +59,9 @@ get a unique 32 character hexidecimal signature.
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes LICENSE README
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog