OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-WebService-Solr?expand=0&rev=4
61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-WebService-Solr
|
|
Version: 0.11
|
|
Release: 0
|
|
Summary: Module to interface with the Solr (Lucene) Webservice
|
|
Source: http://search.cpan.org/CPAN/authors/id/B/BR/BRICAS/WebService-Solr-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/WebService-Solr/
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: make perl
|
|
BuildRequires: perl(Moose) perl(HTTP::Headers) perl(Test::Mock::LWP)
|
|
BuildRequires: perl(XML::Simple) perl(XML::Generator)
|
|
BuildRequires: perl(Data::Page) perl(Data::Pageset)
|
|
BuildRequires: perl(JSON::XS)
|
|
BuildRequires: perl(common::sense)
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
Requires: perl(Moose) perl(HTTP::Headers) perl(Test::Mock::LWP)
|
|
Requires: perl(XML::Simple) perl(XML::Generator)
|
|
Requires: perl(Data::Page) perl(Data::Pageset)
|
|
Requires: perl(JSON::XS)
|
|
Requires: perl(common::sense)
|
|
|
|
%description
|
|
WebService::Solr is a client library for Apache Lucene's Solr; an
|
|
enterprise-grade indexing and searching platform.
|
|
|
|
%prep
|
|
%setup -q -n "WebService-Solr-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes README
|
|
%dir %{perl_vendorlib}/WebService
|
|
%{perl_vendorlib}/WebService/Solr.pm
|
|
%{perl_vendorlib}/WebService/Solr
|
|
%dir %{perl_vendorarch}/auto/WebService
|
|
%{perl_vendorarch}/auto/WebService/Solr
|
|
%doc %{perl_man3dir}/WebService::Solr.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/WebService::Solr::*.%{perl_man3ext}%{ext_man}
|
|
|