# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Catalyst %define pnam Plugin-XMLRPC Summary: Catalyst::Plugin::XMLRPC - Dispatch XMLRPC methods with Catalyst Summary(pl.UTF-8): Catalyst::Plugin::XMLRPC - przekazywanie metod XMLRPC przy użyciu Catalysta Name: perl-Catalyst-Plugin-XMLRPC Version: 1.0 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-authors/id/S/SR/SRI/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 1422792644bb42bf7e1874f116df48ef URL: http://search.cpan.org/dist/Catalyst-Plugin-XMLRPC/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Catalyst >= 5.64 BuildRequires: perl-RPC-XML %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This plugin allows your controller class to dispatch XMLRPC methods from its own class. %description -l pl.UTF-8 Ta wtyczka pozwala klasie kontrolera przekazywać metody XMLRPC ze swojej własnej klasy. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes %{perl_vendorlib}/Catalyst/Plugin/*.pm %{perl_vendorlib}/Catalyst/Plugin/XMLRPC %{_mandir}/man3/*