From 6378199124b21f8d69591905cc34870ff92642c504486d96fef0b351dbee69b5 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 3 Oct 2017 21:19:40 +0000 Subject: [PATCH] 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 --- cpanspec.yml | 3 +++ perl-Object-Signature.changes | 5 +++++ perl-Object-Signature.spec | 39 ++++++++++++++++------------------- 3 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..a09effb --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,3 @@ +--- +post_prep: + sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL diff --git a/perl-Object-Signature.changes b/perl-Object-Signature.changes index f7e1141..8c339fb 100644 --- a/perl-Object-Signature.changes +++ b/perl-Object-Signature.changes @@ -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 diff --git a/perl-Object-Signature.spec b/perl-Object-Signature.spec index 8ee33e1..2d0ec68 100644 --- a/perl-Object-Signature.spec +++ b/perl-Object-Signature.spec @@ -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