# Conditional build: %bcond_with tests # perform "make test" # %define pdir SOAP %define pnam Lite %define real_version %(echo %{version} | sed 's/[a-zA-Z]//') Summary: SOAP::Lite - Client and server side SOAP implementation Summary(pl.UTF-8): SOAP::Lite - implementacja SOAP po stronie klienta i serwera Name: perl-SOAP-Lite Version: 1.27 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 7d067b73c3b0370cac2af01916590fcb Patch0: %{name}-warnings.patch URL: http://www.soaplite.com/ %if %{with tests} # this list is probably incomplete BuildRequires: apache-mod_perl BuildRequires: perl-Compress-Zlib BuildRequires: perl-Crypt-SSLeay BuildRequires: perl-FCGI BuildRequires: perl-IO-Socket-SSL BuildRequires: perl-MIME-Base64 BuildRequires: perl-MIME-Lite BuildRequires: perl-MIME-tools BuildRequires: perl-URI BuildRequires: perl-libnet BuildRequires: perl-libwww %endif BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 Obsoletes: perl-SOAP-Transport-TCP BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # optional %define _noautoreq_perl SOAP::Transport::HTTP IO::SessionSet IO::SessionData %description SOAP::Lite is a collection of Perl modules which provides a simple and lightweight interface to the Simple Object Access Protocol (SOAP) both on client and server side. %description -l pl.UTF-8 SOAP::Lite to zestaw modułów Perla udostępniających prosty i lekki interfejs do protokołu SOAP (Simple Object Access Protocol) zarówno po stronie klienta, jak i serwera. %package HTTP Summary: HTTP transport support for SOAP::Lite Summary(pl.UTF-8): Obsługa transportu HTTP dla SOAP::Lite Group: Development/Languages/Perl Requires: %{name} = %{version}-%{release} Requires: perl-libwww %description HTTP HTTP transport support for SOAP::Lite (SOAP::Transport::HTTP). %description HTTP -l pl.UTF-8 Obsługa transportu HTTP dla SOAP::Lite (SOAP::Transport::HTTP). %package examples Summary: SOAP::Lite - examples Summary(pl.UTF-8): Przykłady użycia SOAP::Lite Group: Development/Languages/Perl %description examples Examples for SOAP::Lite. %description examples -l pl.UTF-8 Przykłady użycia SOAP::Lite. %prep %setup -q -n %{pdir}-%{pnam}-%{real_version} %patch0 -p1 %build %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"SOAP::Lite")' \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} # don't package .pod rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/SOAP/*.pod # don't package OldDocs rm -f $RPM_BUILD_ROOT%{_mandir}/man3/OldDocs::* rm -rf $RPM_BUILD_ROOT%{perl_vendorlib}/OldDocs %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/Apache/*.pm %{perl_vendorlib}/SOAP/*.pm %dir %{perl_vendorlib}/SOAP/Lite %{perl_vendorlib}/SOAP/Lite/*.pm %dir %{perl_vendorlib}/SOAP/Lite/Deserializer %{perl_vendorlib}/SOAP/Lite/Deserializer/*.pm %dir %{perl_vendorlib}/SOAP/Transport %{perl_vendorlib}/SOAP/Transport/*.pm %exclude %{perl_vendorlib}/SOAP/Transport/HTTP.pm %{_mandir}/man3/Apache* %{_mandir}/man3/SOAP* %files HTTP %defattr(644,root,root,755) %{perl_vendorlib}/SOAP/Transport/HTTP.pm %files examples %defattr(644,root,root,755) %{_examplesdir}/%{name}-%{version}