File perl-Mcrypt.spec of Package perl-Mcrypt
#
# spec file for package perl-Mcrypt (Version 2.5.7.0)
#
# Copyright (c) 2010 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
Name: perl-Mcrypt
BuildRequires: libmcrypt-devel perl
BuildRequires: perl-macros
Version: 2.5.7.0
Release: 60
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic
Url: http://search.cpan.org/CPAN/authors/id/J/JE/JESUS/
Summary: An Autoload-Capable Interface Module for libmcrypt
Source: Mcrypt-%{version}.tar.bz2
Patch0: Mcrypt-%{version}.diff
Patch1: Mcrypt-%{version}-type.diff
Patch2: Mcrypt-%{version}-cast256.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
The Mcrypt module provides a simple and intuitive Perl abstraction of
the libmcrypt cryptography library. It provides mechanisms for
encoding and decoding Perl scalars.
Authors:
--------
Theo Schlossnagle <jesus@omniti.com>
%prep
%setup -q -n Mcrypt-%{version}
%patch0
%patch1
# cast256 doesnt work on 64bit architectures and s390
%ifarch alpha s390 s390x ia64 x86_64 ppc64
%patch2
%endif
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}
%check
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc ChangeLog README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Mcrypt/
%{perl_vendorarch}/Mcrypt.pm
%changelog