66 lines
1.8 KiB
RPMSpec
66 lines
1.8 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-Search-Query
|
||
|
Version: 0.18
|
||
|
Release: 0
|
||
|
Summary: Polyglot query parsing
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/K/KA/KARMAN/Search-Query-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/Search-Query
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(Test::More)
|
||
|
BuildRequires: perl(Scalar::Util)
|
||
|
BuildRequires: perl(Module::Pluggable)
|
||
|
BuildRequires: perl(Data::Dump)
|
||
|
BuildRequires: perl(Rose::ObjectX::CAF) >= 0.03
|
||
|
BuildRequires: perl(Data::Transformer)
|
||
|
Requires: perl(Scalar::Util)
|
||
|
Requires: perl(Module::Pluggable)
|
||
|
Requires: perl(Data::Dump)
|
||
|
Requires: perl(Rose::ObjectX::CAF) >= 0.03
|
||
|
Requires: perl(Data::Transformer)
|
||
|
%if 0%{?suse_version} >= 1120
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
This class provides documentation and class methods.
|
||
|
Search::Query started as a fork of the excellent Search::QueryParser
|
||
|
module and was then rewritten to provide support for alternate query
|
||
|
dialects.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "Search-Query-%{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
|
||
|
%{_bindir}/sqd
|
||
|
%doc %{_mandir}/man1/sqd.1%{ext_man}
|
||
|
%dir %{perl_vendorlib}/Search
|
||
|
%{perl_vendorlib}/Search/Query.pm
|
||
|
%{perl_vendorlib}/Search/Query
|
||
|
%doc %{perl_man3dir}/Search::Query.%{perl_man3ext}%{ext_man}
|
||
|
%doc %{perl_man3dir}/Search::Query::*.%{perl_man3ext}%{ext_man}
|
||
|
|