From 39520a916a06d4bb17a9ca2ffca30e1482e7ce343cea6e5c6b59142a6fa800cd Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Mon, 5 Apr 2010 16:47:40 +0000 Subject: [PATCH] Accepting request 36928 from devel:languages:perl Copy from devel:languages:perl/perl-Crypt-OpenSSL-RSA based on submit request 36928 from user computersalat OBS-URL: https://build.opensuse.org/request/show/36928 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Crypt-OpenSSL-RSA?expand=0&rev=5 --- Crypt-OpenSSL-RSA-0.25.tar.gz | 3 -- Crypt-OpenSSL-RSA-0.26.tar.gz | 3 ++ Crypt-OpenSSL-RSA.patch | 6 ++-- perl-Crypt-OpenSSL-RSA.changes | 17 +++++++++ perl-Crypt-OpenSSL-RSA.spec | 66 +++++++++++++++++----------------- 5 files changed, 55 insertions(+), 40 deletions(-) delete mode 100644 Crypt-OpenSSL-RSA-0.25.tar.gz create mode 100644 Crypt-OpenSSL-RSA-0.26.tar.gz diff --git a/Crypt-OpenSSL-RSA-0.25.tar.gz b/Crypt-OpenSSL-RSA-0.25.tar.gz deleted file mode 100644 index 5a25e87..0000000 --- a/Crypt-OpenSSL-RSA-0.25.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7977343b5d5bb305c4cd71d3f343aa12f73e78e3185e9923579b1bd5cd45b601 -size 19133 diff --git a/Crypt-OpenSSL-RSA-0.26.tar.gz b/Crypt-OpenSSL-RSA-0.26.tar.gz new file mode 100644 index 0000000..53e1648 --- /dev/null +++ b/Crypt-OpenSSL-RSA-0.26.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f42f276ffe5ae1775c4bd76f3026483f0d39975f7cdd07bf48eccfb8c45286bb +size 19364 diff --git a/Crypt-OpenSSL-RSA.patch b/Crypt-OpenSSL-RSA.patch index 77e39b6..e1adc87 100644 --- a/Crypt-OpenSSL-RSA.patch +++ b/Crypt-OpenSSL-RSA.patch @@ -1,10 +1,10 @@ ---- RSA.xs -+++ RSA.xs +--- RSA.xs.orig 2009-11-22 18:38:26.000000000 +0000 ++++ RSA.xs 2010-04-04 20:38:46.685992188 +0000 @@ -40,7 +40,7 @@ #define CHECK_OPEN_SSL(p_result) if (!(p_result)) croakSsl(__FILE__, __LINE__); --#define PACKAGE_CROAK(p_message) croak("%s:%d: %s", (p_message)) +-#define PACKAGE_CROAK(p_message) croak("%s", (p_message)) +#define PACKAGE_CROAK(p_message) croak("%s:%d: %s", __FILE__, __LINE__, (p_message)) #define CHECK_NEW(p_var, p_size, p_type) \ if (New(0, p_var, p_size, p_type) == NULL) \ diff --git a/perl-Crypt-OpenSSL-RSA.changes b/perl-Crypt-OpenSSL-RSA.changes index 221ea8b..ab7bde0 100644 --- a/perl-Crypt-OpenSSL-RSA.changes +++ b/perl-Crypt-OpenSSL-RSA.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Sun Apr 4 20:45:03 UTC 2010 - chris@computersalat.de + +- update to 0.26 + - Change subclassing test to generate a 512 bit key in order to work + around an odd issue seen on some 64-bit redhat systems. + (CPAN bug 45498) +- cleanup spec + o sort TAGS + o update Url + o fixed deps + added Crypt::OpenSSL::Random + o updated description + o added missing clean section + o added missing doc +- added perl-macros + ------------------------------------------------------------------- Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de diff --git a/perl-Crypt-OpenSSL-RSA.spec b/perl-Crypt-OpenSSL-RSA.spec index ba6b1ea..722dfec 100644 --- a/perl-Crypt-OpenSSL-RSA.spec +++ b/perl-Crypt-OpenSSL-RSA.spec @@ -1,5 +1,5 @@ # -# spec file for package perl-Crypt-OpenSSL-RSA (Version 0.25) +# spec file for package perl-Crypt-OpenSSL-RSA (Version 0.26) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -17,26 +17,32 @@ # norootforbuild -Url: http://search.cpan.org/~iroberts/Crypt-OpenSSL-RSA-0.25/ Name: perl-Crypt-OpenSSL-RSA -BuildRequires: openssl-devel +%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) +Summary: RSA encoding and decoding, using the openSSL libraries +Version: 0.26 +Release: 1 License: GPLv2 Group: Development/Libraries/Perl -Requires: perl = %{perl_version} AutoReqProv: on -Summary: RSA encoding and decoding, using the openSSL libraries -Version: 0.25 -Release: 4 -Source: Crypt-OpenSSL-RSA-%{version}.tar.gz -Patch: Crypt-OpenSSL-RSA.patch +Url: http://search.cpan.org/dist/Crypt-OpenSSL-RSA +Source: http://search.cpan.org/CPAN/authors/id/I/IR/IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz +Patch: %{cpan_name}.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: openssl-devel +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +BuildRequires: perl(Crypt::OpenSSL::Random) +Requires: perl = %{perl_version} +Requires: perl(Crypt::OpenSSL::Random) %description -Crypt::OpenSSL::RSA provides the ability to RSA encrypt strings which -are somewhat shorter than the block size of a key. It also allows for -decryption, signatures and signature verification. - +Crypt::OpenSSL::RSA is an XS perl module designed to provide basic RSA +functionality. It does this by providing a glue to the RSA functions +in the OpenSSL library. Authors: @@ -44,34 +50,26 @@ Authors: Ian Robertson, %prep -%setup -n Crypt-OpenSSL-RSA-%{version} +%setup -n %{cpan_name}-%{version} %patch %build -perl Makefile.PL -make %{?_smp_mflags} +%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%files +%clean +%{__rm} -rf $RPM_BUILD_ROOT + +%files -f %{name}.files %defattr(-, root, root) -%dir %{perl_vendorarch}/Crypt -%dir %{perl_vendorarch}/Crypt/OpenSSL -%{perl_vendorarch}/Crypt/OpenSSL/RSA.pm -%dir %{perl_vendorarch}/auto/Crypt -%dir %{perl_vendorarch}/auto/Crypt/OpenSSL -%dir %{perl_vendorarch}/auto/Crypt/OpenSSL/RSA -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/RSA.bs -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/RSA.so -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/autosplit.ix -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/get_key_parameters.al -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/import_random_seed.al -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/new_key_from_parameters.al -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/new_public_key.al -%{perl_vendorarch}/auto/Crypt/OpenSSL/RSA/.packlist -%doc %{_mandir}/man3/Crypt::OpenSSL::RSA.3pm.gz -/var/adm/perl-modules/perl-Crypt-OpenSSL-RSA +%doc Changes LICENSE README %changelog