%define perl_vendorarch %(eval "`%{_bindir}/perl -V:installvendorarch`"; echo $installvendorarch) %define perl_vendorarch64 %(eval "`%{_bindir}/perl_64bit -V:installvendorarch`"; echo $installvendorarch) Name: perl-Compress-Bzip2 Version: 2.09 Release: 1 Summary: Interface to Bzip2 compression library Group: Development/Libraries License: GPL+ URL: http://search.cpan.org/dist/Compress-Bzip2/ Source0: http://www.cpan.org/authors/id/A/AR/ARJAY/Compress-Bzip2-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: bzip2-devel, findutils Requires: perl(:MODULE_COMPAT_%(eval "`%{_bindir}/perl -V:version`"; echo $version)) Requires: perl >= 5.8.8 Requires: bzip2 %description The Compress::Bzip2 module provides a Perl interface to the Bzip2 compression library. A relevant subset of the functionality provided by Bzip2 is available in Compress::Bzip2. %prep %setup -q -n Compress-Bzip2-%{version} mkdir ../32bit mv * ../32bit mv ../32bit . mkdir 64bit cp -r 32bit/* 64bit/ %build cd 32bit %{_bindir}/perl Makefile.PL INSTALLDIRS="vendor" make cd ../64bit %{_bindir}/perl_64bit Makefile.PL INSTALLDIRS="vendor" make %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} cd 32bit make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} cd ../64bit make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} /opt/freeware/bin/find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';' /opt/freeware/bin/find ${RPM_BUILD_ROOT} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' /opt/freeware/bin/find ${RPM_BUILD_ROOT} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w ${RPM_BUILD_ROOT}/* %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc 32bit/ANNOUNCE 32bit/Changes 32bit/COPYING 32bit/NEWS 32bit/README %{perl_vendorarch}/* %{perl_vendorarch64}/* %{_mandir}/man3/*.3* %changelog * Fri Oct 17 2008 Michael Perzl - 2.09-1 - first version for AIX V5.1 and higher