# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Crypt %define pnam CAST5_PP Summary: Crypt::CAST5_PP Perl module - CAST5 block cipher implemented in pure Perl Summary(pl): Moduł Perla Crypt::CAST5_PP - szyfr blokowy CAST5 zaimplementowany w samym Perlu Name: perl-Crypt-CAST5_PP Version: 1.02 Release: 2 License: Artistic or GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: d112ab9aaff337db460c9f2bc243bc4f BuildRequires: perl-devel >= 5.6 BuildRequires: perl-Test-Simple >= 0.1 BuildRequires: rpm-perlprov >= 4.1-13 Provides: perl(Crypt::CAST5_PP::Tables) BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module provides a pure Perl implementation of the CAST5 block cipher. CAST5 is also known as CAST-128. It is a product of the CAST design procedure developed by C. Adams and S. Tavares. The CAST5 cipher is available royalty-free. %description -l pl Ten moduł zawiera implementację szyfru blokowego CAST5 napisaną w samym Perlu. CAST5 jest znany także jako CAST-128 i jest produktem procesu projektowania CAST, tworzonego przez C. Adamsa i S. Tavaresa. Szyfr CAST5 jest dostępny bezpłatnie. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Crypt/CAST5_PP.pm %{perl_vendorlib}/Crypt/CAST5_PP %dir %{perl_vendorlib}/auto/Crypt/CAST5_PP %{perl_vendorlib}/auto/Crypt/CAST5_PP/autosplit.ix %{perl_vendorlib}/auto/Crypt/CAST5_PP/*.al %{_mandir}/man3/*