perl-Crypt-Tea/perl-Crypt-Tea.spec

Name: perl-Crypt-Tea
Summary: The Tiny Encryption Algorithm in Perl and JavaScript
Version: 2.12
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Crypt-Tea/
Description: This module implements TEA, the Tiny Encryption Algorithm, and some Modes of Use based on CBC, compatibly in both Perl and JavaScript. This enables CGI scripts to communicate with browsers.

Subroutines offer encryption, decryption & digest, and all cyphertext is ascii-encoded to prevent munging. Another routine returns JavaScript code with identical functions, and this can be used by GCIs to feed to a browser. A wrapper executable 'tea' is included for command-line use.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Peter Billam <contact,html$pjb,com,au>

%define real_name Crypt-Tea
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

Summary: The Tiny Encryption Algorithm in Perl and JavaScript
Name: perl-Crypt-Tea
Version: 2.12
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Crypt-Tea/

Source: http://www.cpan.org/modules/by-module/Crypt/Crypt-Tea-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
This module implements TEA, the Tiny Encryption Algorithm, and some
Modes of Use based on CBC, compatibly in both Perl and JavaScript.
This enables CGI scripts to communicate with browsers.

Subroutines offer encryption, decryption & digest, and all cyphertext
is ascii-encoded to prevent munging. Another routine returns JavaScript
code with identical functions, and this can be used by GCIs to feed to
a browser. A wrapper executable 'tea' is included for command-line use.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes README
%doc %{_mandir}/man1/*
%doc %{_mandir}/man3/*
%{_bindir}/tea
%{perl_vendorlib}/Crypt/

%changelog
* Mon Sep 18 2006 Dries Verachtert <dries@ulyssis.org> - 2.12-1
- Updated to release 2.12.

* Mon Feb 21 2005 Dries Verachtert <dries@ulyssis.org> - 2.09-1
- Update to release 2.09.

* Mon Dec 27 2004 Dries Verachtert <dries@ulyssis.org> - 2.07-1
- Initial package.