%define pkg_name SOAP %define pkg_version 0.28 %define rpm_pkg_version 0.28 %define rpm_pkg_release 3.n0i.2 %define __perl_requires %{_tmppath}/%{pkg_name}-%{version}-%{release}.requires Summary: SOAP/Perl language mapping 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/K/KB/KBROWN/%{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(XML::Parser::Expat) >= 2.27 Requires: perl(HTTP::Request) >= 1.26 Requires: perl(Apache) >= 1.26 Requires: perl(LWP) >= 5.47 %{!?_without_test:BuildRequires: perl(XML::Parser::Expat) >= 2.27} %{!?_without_test:BuildRequires: perl(HTTP::Request) >= 1.26} %{!?_without_test:BuildRequires: perl(Apache) >= 1.26} %{!?_without_test:BuildRequires: perl(LWP) >= 5.47} %description SOAP/Perl is a collection of Perl modules which provides a simple and consistent application programming interface (API) to the Simple Object Access Protocol (SOAP). %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} %if %{!?_without_test:1}%{?_without_test:0} if [ $(id -u) -gt 0 ] then echo "WARN: Sorry, you must be root to be able to run these tests :(" else %{__make} test fi %endif %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 # custom requires script %{__cat} < %{__perl_requires} #!%{_buildshell} %{__cat} | %{__grep} -v $RPM_BUILD_ROOT%{_docdir} | /usr/lib/rpm/perl.req $* \ | %{__grep} -v 'Apache' EOF %{__chmod} 700 %{__perl_requires} %clean %{__rm} -rf $RPM_BUILD_ROOT %{__rm} -f %{__perl_requires} %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man*/* %changelog * Fri Feb 03 2006 Marius Feraru - 0.28-3.n0i.2 - automatic rebuild (perl 5.8.8) * Sat Jul 30 2005 Marius Feraru 0.28-2.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/0.1 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:0.28-1.n0i.5 - automatic rebuild (perl 5.8.6) * Mon Dec 06 2004 Marius Feraru 0:0.28-1.n0i.4 - automatic rebuild (perl 5.8.6) * Wed May 05 2004 Marius Feraru 0:0.28-1.n0i.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - don't require Apache (mod_perl) as it is optional - rebuild (perl 5.8.4) * Fri Jan 30 2004 Marius FERARU 0:0.28-0.n0i.2 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001 - disabled tests by default as they require root privileges (icmp ping) - providing SOAP::Transport * Sun Jun 29 2003 Marius FERARU 0.28-0.n0i - Initial build.