summaryrefslogtreecommitdiffstats
path: root/php-slim3.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-04-29 13:12:06 +0200
committerRemi Collet <remi@remirepo.net>2019-04-29 13:12:06 +0200
commit50a19e83b6f21c08d5e29bc502baaefb1ad0ee80 (patch)
tree73d51f199b1f11ffa7a5810a199e304c0f4525ec /php-slim3.spec
parent6b29858370373767274b14d16ab2e7f10e05383f (diff)
From FedoraHEADmaster
* Sat Apr 27 2019 Johan Cwiklinski <johan AT x+tnd DOT be> - 3.12.1-1 - New upstream release * Sat Jul 14 2018 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.10.0-3 - php-Slim (for v2) has been retired, add provides and obsoletes
Diffstat (limited to 'php-slim3.spec')
-rw-r--r--php-slim3.spec19
1 files changed, 15 insertions, 4 deletions
diff --git a/php-slim3.spec b/php-slim3.spec
index 8f0c4f0..e6b5cfc 100644
--- a/php-slim3.spec
+++ b/php-slim3.spec
@@ -7,12 +7,12 @@
#
# Please preserve changelog entries
-%global gh_commit d8aabeacc3688b25e2f2dd2db91df91ec6fdd748
+%global gh_commit eaee12ef8d0750db62b8c548016d82fb33addb6b
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner slimphp
%global gh_project Slim
%global pk_project slim
-%global gh_version 3.10.0
+%global gh_version 3.12.1
%global php_home %{_datadir}/php
%global slim_home %{php_home}/Slim3
@@ -29,7 +29,6 @@ Source1: %{name}-makesrc.sh
URL: http://www.slimframework.com/
License: MIT
-Group: Development/Libraries
BuildArch: noarch
@@ -72,6 +71,12 @@ Requires: php-composer(nikic/fast-route) < 2.0
Provides: php-composer(%{pk_project}/%{pk_project}) = %{version}
Provides: php-composer(psr/http-message-implementation) = 1.0
+%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8
+#php-Slim (v2) ha been retired
+Provides: php-Slim = %{version}-%{release}
+Obsoletes: php-Slim <= 2.6.2-8
+%endif
+
%description
Slim is a PHP micro framework that helps you quickly write simple yet
@@ -130,7 +135,7 @@ cp -a %{gh_project}/* %{buildroot}%{slim_home}/
%check
sed -e \
"s|dirname(__DIR__) . '/vendor/autoload.php'|'%{buildroot}%{slim_home}/autoload.php'|" \
- -e "s|\$autoloader->addPsr4.*$|require 'autoload.php';|" \
+ -e "s|\$autoloader->addPsr4.*$|require 'autoload.php';\nrequire __DIR__ . '/Assets/PhpFunctionOverrides.php';|" \
-i tests/bootstrap.php
# OK (Tests: 512, Assertions: 820, Skipped: 13)
@@ -149,6 +154,12 @@ sed -e \
%changelog
+* Sat Apr 27 2019 Johan Cwiklinski <johan AT x+tnd DOT be> - 3.12.1-1
+- New upstream release
+
+* Sat Jul 14 2018 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.10.0-3
+- php-Slim (for v2) has been retired, add provides and obsoletes
+
* Sat Apr 21 2018 Johan Cwiklinski <johan AT x-tnd DOT be> - 3.10.0-1
- New upstream release