diff --git a/README.md b/README.md index aaacf83..0c84a0f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Crypt-IDEA +This perl extension is an implementation of the IDEA block cipher algorithm. +The module implements the Crypt::BlockCipher interface. + diff --git a/perl-Crypt-IDEA.spec b/perl-Crypt-IDEA.spec new file mode 100644 index 0000000..24de9c9 --- /dev/null +++ b/perl-Crypt-IDEA.spec @@ -0,0 +1,71 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Crypt-IDEA +Version: 1.10 +Release: 1mamba +Summary: Crypt::IDEA - Perl interface to IDEA block cipher +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Crypt/Crypt-IDEA-%{version}.tar.gz +License: Systemics license +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +Provides: perl-Crypt-Idea = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: perl-Crypt-Idea +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This perl extension is an implementation of the IDEA block cipher algorithm. +The module implements the Crypt::BlockCipher interface. + +%prep +%setup -q -n Crypt-IDEA-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +find %{buildroot} -name ._test.pl -delete +sed -i -e "s,.*\._test.pl,," $packlist +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) +%doc COPYRIGHT + +%changelog +* Sun Jul 28 2013 Automatic Build System 1.10-1mamba +- automatic update by autodist + +* Sat Nov 10 2012 Silvan Calarco 1.08-3mamba +- perl 5.16 mass rebuild + +* Tue Nov 04 2008 Silvan Calarco 1.08-2mamba +- automatic rebuild by autodist + +* Tue Aug 28 2007 Stefano Cotta Ramusino 1.08-1mamba +- update to 1.08 +- renamed from perl-Crypt-Idea to perl-Crypt-IDEA +- fixed package license + +* Thu May 06 2004 Silvan Calarco 0.05-1qilnx +- first build \ No newline at end of file