File perl-Mcrypt.spec of Package perl-Mcrypt

# spec file for package perl-Mcrypt (Version
# 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

# norootforbuild

Name:           perl-Mcrypt
BuildRequires:  libmcrypt-devel perl
BuildRequires:  perl-macros
Release:        60
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic
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

The Mcrypt module provides a simple and intuitive Perl abstraction of
the libmcrypt cryptography library.  It provides mechanisms for
encoding and decoding Perl scalars.

    Theo Schlossnagle <>

%setup -q -n Mcrypt-%{version}
# cast256 doesnt work on 64bit architectures and s390
%ifarch alpha s390 s390x ia64 x86_64 ppc64

perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?_smp_mflags}

make test

make DESTDIR=$RPM_BUILD_ROOT install_vendor


%defattr(-, root, root)
%doc ChangeLog README 
%doc %{_mandir}/man?/*