%define pkg_name SOAP-MIME %define pkg_version 0.55-7 %define rpm_pkg_version 0.55.7 %define rpm_pkg_release 5.n0i.1 %define __perl_requires %{_tmppath}/%{name}-%{version}-%{release}.requires %define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}.provides Summary: MIME attachments extension for SOAP::Lite Name: perl-%{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _) %endif Group: Development/Libraries License: GPL or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/B/BY/BYRNE/SOAP/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) Requires: perl(SOAP::Lite) >= 0.55 %{!?_without_test:BuildRequires: perl(SOAP::Lite) >= 0.55} %description SOAP::Lite (http://www.soaplite.com/) is a SOAP Toolkit that allows users to create SOAP clients and services. As of June 12, 2002, MIME support in SOAP::Lite was minimal. It could parse MIME formatted messages, but the data contained in those attachments was "lost." This Perl module, patches SOAP::Lite so that those MIME attachments are stored and placed into a SOAP::SOM object. %prep %setup -n %{pkg_name}-%{pkg_version} find . -type f | xargs -r chmod 0644 %build PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name .packlist -delete || : find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || : find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || : %{__chmod} -R u+w $RPM_BUILD_ROOT/* find $RPM_BUILD_ROOT | xargs -r touch grep -rsl '^#!.*perl' examples/ \ | xargs -r %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' # custom requires script %{__cat} < %{__perl_requires} #!%{_buildshell} %{__cat} | %{__grep} -v $RPM_BUILD_ROOT%{_docdir} | /usr/lib/rpm/perl.req $* EOF %{__chmod} 700 %{__perl_requires} # custom provides script %{__cat} < %{__perl_provides} #!%{_buildshell} %{__cat} | %{__grep} -v $RPM_BUILD_ROOT%{_docdir} | /usr/lib/rpm/perl.prov $* EOF %{__chmod} 700 %{__perl_provides} %clean %{__rm} -rf $RPM_BUILD_ROOT %{__rm} -f %{__perl_requires} %{__rm} -f %{__perl_provides} %files %defattr(-,root,root,-) %doc CHANGE_LOG examples/ README %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Sat Jul 30 2005 Marius Feraru 0.55.7-5.n0i.1.0.55_7 - spec file (re)created using N0i::CPAN::RPMizer/0.1 - rebuild on perl 5.8.7 * Fri Apr 01 2005 Marius FERARU 0:0.55.7-1.n0i.3 - rebuild * Mon Dec 06 2004 Marius FERARU 0:0.55.7-1.n0i.2 - rebuild - no dependencies are to be computed based on files in %%docdir * Wed May 05 2004 Marius Feraru 0:0.55.7-1.n0i.1 - version 0.55 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401