Christian Wittmer 2010-11-24 16:42:10 +00:00 committed by Git OBS Bridge
parent b66b524095
commit 1226bd0b4b
2 changed files with 45 additions and 23 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 24 16:40:57 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
o fix deps
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 19 08:38:26 UTC 2010 - coolo@novell.com Tue Oct 19 08:38:26 UTC 2010 - coolo@novell.com

View File

@ -17,51 +17,67 @@
# norootforbuild # norootforbuild
Name: perl-Crypt-DES Name: perl-Crypt-DES
%define cpan_name Crypt-DES
Summary: Perl DES encryption module
Version: 2.05 Version: 2.05
Release: 142 Release: 1
Requires: perl = %{perl_version}
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic License: Artistic
Url: http://www.cpan.org/modules/by-module/Crypt/ Group: Development/Libraries/Perl
Summary: Crypt::DES Perl Module Url: http://search.cpan.org/dist/Crypt-DES/
Source: Crypt-DES-%{version}.tar.bz2 #Source: http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-2.05.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Crypt::CBC)
Requires: perl = %{perl_version}
%description %description
An XS-based DES implementation for Perl. The module implements the Crypt::CBC interface, which has the following
methods
* blocksize
=item keysize
=item encrypt
=item decrypt
Authors: Authors:
-------- --------
Eric Young (eay@mincom.oz.au) Eric Young (eay@mincom.oz.au)
%prep %prep
%setup -n Crypt-DES-%{version} -q %setup -q -n %{cpan_name}-%{version}
%build %build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags} %{__make} %{?_smp_mflags}
make test
%check
%{__make} test
%install %install
rm -rf $RPM_BUILD_ROOT %perl_make_install
make DESTDIR=$RPM_BUILD_ROOT install_vendor ### since 11.4 perl_process_packlist
### removes .packlist, perllocal.pod files
%if 0%{?suse_version} > 1130
%perl_process_packlist %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 %clean
rm -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
%files %files -f %{name}.files
%defattr(-, root, root) %defattr(-,root,root,-)
%doc COPYRIGHT README %doc COPYRIGHT README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/auto/Crypt
/var/adm/perl-modules/%{name}
%changelog %changelog