Package perl-Apache2-SOAP: Specfile

# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(Exporter.pm) perl(SOAP/Lite.pm) perl(SOAP/Transport/HTTP.pm) perl-devel perl-podlators
# END SourceDeps(oneline)
%global perlname Apache2-SOAP

Name:      perl-Apache2-SOAP
Version:   0.73
Release:   alt1_13
Summary:   A replacement for Apache::SOAP designed to work with mod_perl 2

Group:     Development/Perl
License:   GPL+ or Artistic
URL:       http://search.cpan.org/dist/Apache2-SOAP/
Source:    http://search.cpan.org/CPAN/authors/id/R/RK/RKOBES/%{perlname}-%{version}.tar.gz

BuildArch: noarch

BuildRequires: perl(ExtUtils/MakeMaker.pm)
BuildRequires: apache2-mod_perl-devel
# perl(ModPerl::MM) is provided by mod_perl on EL5, by mod_perl-devel on Fedora
#BuildRequires: perl(ModPerl::MM)
# BR for test (disabled)
#BuildRequires: httpd, perl(SOAP::Lite), perl(LWP::UserAgent)
#BuildRequires: perl(Test::More)



Source44: import.info


%description
This Apache Perl module provides the ability to add support for SOAP
(Simple Object Access Protocol) protocol with easy configuration
(either in .conf or in .htaccess file). This functionality should
give you lightweight option for hosting SOAP services and greatly
simplify configuration aspects. This module inherites functionality
from SOAP::Transport::HTTP2::Apache component of SOAP::Lite module.


%prep
%setup -q -n %{perlname}-%{version}


%build
%{__perl} Makefile.PL INSTALLMAN1DIR=%_man1dir INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -print
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' -print
chmod -R u+rwX,go+rX,go-w %{buildroot}/*


%check
# Running apache on koji fails
#APACHE_TEST_HTTPD=%{_sbindir}/httpd make test


%files
%doc Changes README
%{perl_vendor_privlib}/Apache2
%{perl_vendor_privlib}/SOAP/Transport/HTTP2.pm


%changelog
* Sun Apr 14 2013 Igor Vlasenko <viy@altlinux.ru> 0.73-alt1_13
- fixed build

* Sun Sep 25 2011 Igor Vlasenko <viy@altlinux.ru> 0.73-alt1
- automated CPAN update

* Mon Dec 15 2008 Lebedev Sergey <barabashka@altlinux.org> 0.72-alt3.1
- moved back noarch, removed empty dir perl_vendor_autolib/Apache2*

* Mon Dec 15 2008 Lebedev Sergey <barabashka@altlinux.org> 0.72-alt3
- removed noarch from package due to perl_vendor_autolib/Apache2

* Mon Dec 15 2008 Lebedev Sergey <barabashka@altlinux.org> 0.72-alt2
- fixed ownership viloation 

* Sun Apr 06 2008 Sir Raorn <raorn@altlinux.ru> 0.72-alt1
- first build for ALT Linux Sisyphus