diff --git a/.cvsignore b/.cvsignore index e69de29..6ae3b87 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Tie-EncryptedHash-1.21.tar.gz diff --git a/perl-Tie-EncryptedHash.spec b/perl-Tie-EncryptedHash.spec new file mode 100644 index 0000000..003e283 --- /dev/null +++ b/perl-Tie-EncryptedHash.spec @@ -0,0 +1,63 @@ +Summary: Hashes (and objects based on hashes) with encrypting fields +Name: perl-Tie-EncryptedHash +Version: 1.21 +Release: 1%{?dist} +License: Artistic +Group: Development/Libraries +Url: http://search.cpan.org/dist/Tie-EncryptedHash/ +Source0: http://search.cpan.org/CPAN/authors/id/V/VI/VIPUL/Tie-EncryptedHash-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch +BuildRequires: perl(Crypt::CBC) +BuildRequires: perl(Crypt::Blowfish) +BuildRequires: perl(Crypt::DES) + +%description +Tie::EncryptedHash augments Perl hash semantics to build secure, encrypting +containers of data. Tie::EncryptedHash introduces special hash fields that are +coupled with encrypt/decrypt routines to encrypt assignments at STORE() and +decrypt retrievals at FETCH(). By design, encrypting fields are associated with +keys that begin in single underscore. The remaining keyspace is used for +accessing normal hash fields, which are retained without modification. + +While the password is set, a Tie::EncryptedHash behaves exactly like a standard +Perl hash. This is its transparent mode of access. Encrypting and normal fields +are identical in this mode. When password is deleted, encrypting fields are +accessible only as ciphertext. This is Tie::EncryptedHash's opaque mode of +access, optimized for serialization. + +Encryption is done with Crypt::CBC(3), which encrypts in the cipher block +chaining mode with Blowfish, DES or IDEA. Tie::EncryptedHash uses Blowfish by +default, but can be instructed to employ any cipher supported by Crypt::CBC(3). + +%prep +%setup -q -n Tie-EncryptedHash-%{version} +%{__sed} -i -e '/^#! *\/usr\/bin\/perl /d' lib/Tie/EncryptedHash.pm + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test + +%install +%{__rm} -rf %{buildroot} +%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} +/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' +/usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';' +%{__chmod} -R u+w %{buildroot}/* + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,0755) +%doc Changes README.html TODO +%{perl_vendorlib}/Tie/ +%{_mandir}/man3/Tie::EncryptedHash.3pm* + +%changelog +* Tue Dec 6 2005 Paul Howarth 1.21-1 +- Initial build diff --git a/sources b/sources index e69de29..0d2c4b9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5a85bd78c74ef52aeff6c70836f9d3bf Tie-EncryptedHash-1.21.tar.gz