- updated to 2.07

SvUPGRADE was changed to a statement.
  a minor bug in META.yml was fixed.
- remove old svupgrade.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Crypt-DES?expand=0&rev=20
This commit is contained in:
Stephan Kulow 2013-07-27 12:11:19 +00:00 committed by Git OBS Bridge
parent 3bd4c18c44
commit d7906ba368
5 changed files with 19 additions and 51 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b7be9e4113eea37554a33c4d738a9226662c3ee53a5f0f281e1b1974569822f0
size 15369

BIN
Crypt-DES-2.07.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat Jul 27 11:58:30 UTC 2013 - coolo@suse.com
- updated to 2.07
SvUPGRADE was changed to a statement.
a minor bug in META.yml was fixed.
- remove old svupgrade.patch
-------------------------------------------------------------------
Fri Jun 21 09:02:52 UTC 2013 - coolo@suse.com

View File

@ -17,21 +17,18 @@
Name: perl-Crypt-DES
Version: 2.07
Release: 0
%define cpan_name Crypt-DES
Summary: Perl DES encryption module
License: Artistic-1.0
Group: Development/Libraries/Perl
Version: 2.05
Release: 0
Url: http://search.cpan.org/dist/Crypt-DES/
#Source: http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-2.05.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
Patch0: svupgrade.patch
Source: http://www.cpan.org/authors/id/D/DP/DPARIS/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Crypt::CBC)
%{perl_requires}
%description
The module implements the Crypt::CBC interface, which has the following
@ -42,16 +39,12 @@ methods
=item encrypt
=item decrypt
Authors:
--------
Eric Young (eay@mincom.oz.au)
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
@ -59,24 +52,11 @@ Authors:
%install
%perl_make_install
### since 11.4 perl_process_packlist
### removes .packlist, perllocal.pod files
%if 0%{?suse_version} > 1130
%perl_process_packlist
%else
# do not perl_process_packlist
# remove .packlist file
%{__rm} -f $RPM_BUILD_ROOT%perl_vendorarch/auto/Crypt/DES/.packlist
# remove perllocal.pod file
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
%endif
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%defattr(-,root,root,755)
%doc COPYRIGHT README
%changelog

View File

@ -1,21 +0,0 @@
Description: update for SvUPGRADE()
Origin: CPAN RT
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=82943
Bug-Debian: http://bugs.debian.org/708468
Forwarded: not-needed
Author: Zefram <zefram [...] fysh.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2013-05-17
--- a/DES.xs
+++ b/DES.xs
@@ -64,8 +64,7 @@
output = sv_newmortal();
output_len = 8;
- if (!SvUPGRADE(output, SVt_PV))
- croak("cannot use output argument as lvalue");
+ (void) SvUPGRADE(output, SVt_PV);
perl_des_crypt(input, SvGROW(output, output_len), (i32 *)ks, enc_flag);