Blob Blame History Raw
Name:           perl-SOAP-Lite
Version:        0.60a
Release:        3%{?dist}
Summary:        Provides the Simple Object Access Protocol (SOAP) 

Group:          Development/Libraries
License:        GPL or Artistic
URL:            http://search.cpan.org/dist/SOAP-Lite/
Source0:        http://www.cpan.org/authors/id/B/BY/BYRNE/SOAP/SOAP-Lite-0.60a.tar.gz
Source1:        filter-requires.sh
Patch0:         SOAP-Lite-0.60a-paths.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  perl >= 1:5.6.1
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%define __perl_requires %{SOURCE1}

%description
SOAP::Lite for Perl 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.

This version of SOAP::Lite supports a subset of the SOAP 1.1 specification
and has initial support for SOAP 1.2 specification.


%prep
%setup -q -n SOAP-Lite-0.60   # Upstream tar is inconsistent.
%patch0 -p1 

# avoid dependencies
find examples -type f | xargs chmod 644


%build
# Despite the --noprompt, it prompts for a enter....
%{__perl} Makefile.PL INSTALLDIRS=vendor --noprompt << EOL

EOL
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'


%check || :
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README Changes examples
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*


%changelog
* Wed Oct 26 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.60a-3
- Fix build, doc permissions (#169821).

* Wed Apr 06 2005 Hunter Matthews <thm@duke.edu> 0.60a-2
- Review suggestions from José Pedro Oliveira

* Fri Mar 18 2005 Hunter Matthews <thm@duke.edu> 0.60a-1
- Initial packaging.