# # spec file for package perl-Convert-PEM # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild #Distribution: %dist #Packager: %packager #Vendor: %vendor Name: perl-Convert-PEM %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: Read/write encrypted ASN.1 PEM files Version: 0.07 Release: 1 License: GPL/Artistic Group: Development/Libraries/Perl Url: http://www.cpan.org Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-root BuildRequires: perl BuildRequires: perl-macros # other not perl || perl-base BuildRequires: perl(Class::ErrorHandler) BuildRequires: perl(MIME::Base64) BuildRequires: perl(Convert::ASN1) >= 0.10 BuildRequires: perl(Crypt::DES_EDE3) BuildRequires: perl(Digest::MD5) Requires: perl = %{perl_version} # other not perl || perl-base Requires: perl(Class::ErrorHandler) Requires: perl(MIME::Base64) Requires: perl(Convert::ASN1) >= 0.10 Requires: perl(Crypt::DES_EDE3) Requires: perl(Digest::MD5) #------------------------------------------------------------------------------- %description #------------------------------------------------------------------------------- %{cpan_name} module for perl Convert::PEM reads and writes PEM files containing ASN.1-encoded objects. The files can optionally be encrypted using a symmetric cipher algorithm, such as 3DES. Authors: Benjamin Trott -------------------------------------------------------------------------------- #------------------------------------------------------------------------------- %prep #------------------------------------------------------------------------------- %setup -q -n %{cpan_name}-%{version} #------------------------------------------------------------------------------- %build #------------------------------------------------------------------------------- CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL %{__make} %check %{__make} test #------------------------------------------------------------------------------- %install #------------------------------------------------------------------------------- %perl_make_install %perl_process_packlist %perl_gen_filelist #------------------------------------------------------------------------------- %clean #------------------------------------------------------------------------------- %{__rm} -rf $RPM_BUILD_ROOT #------------------------------------------------------------------------------- %files -f %{name}.files #------------------------------------------------------------------------------- %defattr(-,root,root) %doc Changes README #------------------------------------------------------------------------------- %changelog #------------------------------------------------------------------------------- * Tue Oct 31 2006 - James Oakley - 0.07-2 - Don't require perl-Digest-MD5 in openSUSE >= 10.1. It's in core now * Tue Sep 12 2006 - James Oakley - 0.07-1 - Initial release