1 %define package Solarium
2 %define php_min_version 5.3.0
3 Summary: Solarium PHP Solr client library
4 Name: php-solarium-Solarium
8 Group: Development/Languages/PHP
9 Source0: https://github.com/basdenooijer/solarium/archive/%{version}/%{package}-%{version}.tar.gz
10 # Source0-md5: 99fa934be12783063b140717c819ebac
11 URL: http://www.solarium-project.org/
12 BuildRequires: rpm-php-pearprov >= 4.4.2-11
13 BuildRequires: rpmbuild(macros) >= 1.610
14 Requires: php(core) >= %{php_min_version}
20 Requires: php-symfony2-EventDispatcher
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Solarium is a PHP Solr client library that accurately model Solr
26 concepts. Where many other Solr libraries only handle the
27 communication with Solr, Solarium also relieves you of handling all
28 the complex Solr query parameters using a well documented API.
31 %setup -q -n solarium-%{version}
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{php_data_dir},%{_examplesdir}/%{name}-%{version}}
36 cp -a library/Solarium $RPM_BUILD_ROOT%{php_data_dir}
37 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
44 %doc README.md COPYING
45 %{php_data_dir}/Solarium
46 %{_examplesdir}/%{name}-%{version}