summaryrefslogtreecommitdiffstats
path: root/php-solarium4.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-solarium4.spec')
-rw-r--r--php-solarium4.spec20
1 files changed, 11 insertions, 9 deletions
diff --git a/php-solarium4.spec b/php-solarium4.spec
index 1284211..3e526b7 100644
--- a/php-solarium4.spec
+++ b/php-solarium4.spec
@@ -1,4 +1,4 @@
-# remirepo/fedora spec file for php-solarium
+# remirepo/fedora spec file for php-solarium4
#
# Copyright (c) 2013-2017 Remi Collet
# License: CC-BY-SA
@@ -10,20 +10,19 @@
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner solariumphp
%global gh_project solarium
+%global major 4
%global with_tests 0%{!?_without_tests:1}
-Name: php-%{gh_project}
+Name: php-%{gh_project}%{major}
Summary: Solarium PHP Solr client library
Version: 4.0.0
Release: 1%{?dist}
URL: http://www.solarium-project.org/
License: BSD
-Group: Development/Libraries
Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if %{with_tests}
# For tests
@@ -115,7 +114,7 @@ EOF
%install
mkdir -p %{buildroot}%{_datadir}/php
-cp -pr src %{buildroot}%{_datadir}/php/Solarium
+cp -pr src %{buildroot}%{_datadir}/php/Solarium%{major}
%check
@@ -124,7 +123,7 @@ cp -pr src %{buildroot}%{_datadir}/php/Solarium
mkdir vendor
cat << 'EOF' | tee vendor/autoload.php
<?php
-require_once '%{buildroot}%{_datadir}/php/Solarium/autoload.php';
+require_once '%{buildroot}%{_datadir}/php/Solarium%{major}/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('Solarium\\Tests\\', dirname(__DIR__) . '/tests');
\Fedora\Autoloader\Dependencies::required([
'%{_datadir}/php/GuzzleHttp6/autoload.php',
@@ -145,18 +144,21 @@ exit $ret
%files
-%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license COPYING
-%doc composer.json *.md examples
-%{_datadir}/php/Solarium
+%doc composer.json
+%doc *.md examples
+%{_datadir}/php/Solarium%{major}
%changelog
* Tue Jun 12 2018 Remi Collet <remi@remirepo.net> - 4.0.0-1
- update to 4.0.0
+- rename to php-solarium4
+- move to /usr/share/php/Solarium5
- raise dependency on PHP 7.0
- raise dependency on symfony 2.7 and allow symfony 4
+
* Thu Oct 5 2017 Remi Collet <remi@remirepo.net> - 3.8.1-4
- fix autoloader for Symfony 3, FTBFS from Koschei