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 Thu Mar 31 08:47:00 UTC 2011 - coolo@novell.com

View File

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