summaryrefslogtreecommitdiffstats
path: root/php-symfony-contracts.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-symfony-contracts.spec')
-rw-r--r--php-symfony-contracts.spec33
1 files changed, 23 insertions, 10 deletions
diff --git a/php-symfony-contracts.spec b/php-symfony-contracts.spec
index fee1791..c076192 100644
--- a/php-symfony-contracts.spec
+++ b/php-symfony-contracts.spec
@@ -6,7 +6,7 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit d3636025e8253c6144358ec0a62773cae588395b
+%global gh_commit b6e291a08e6b002fb56aa6f3e2a2beb6674d2b2f
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner symfony
%global gh_project contracts
@@ -21,7 +21,7 @@
%global with_tests 0%{!?_without_tests:1}
Name: php-%{pk_vendor}-%{pk_project}
-Version: 1.1.0
+Version: 1.1.1
Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist}
Summary: A set of abstractions extracted out of the Symfony
@@ -63,11 +63,12 @@ Requires: php(language) >= 7.1.3
# From composer.json, "suggest": {
# "psr/cache": "When using the Cache contracts",
# "psr/container": "When using the Service contracts",
-# "symfony/cache-contracts-implementation": "",
+# "psr/event-dispatcher": "When using the EventDispatcher contracts",
+# "symfony/cache-implementation": "",
# "symfony/event-dispatcher-implementation": "",
-# "symfony/http-client-contracts-implementation": "",
-# "symfony/service-contracts-implementation": "",
-# "symfony/translation-contracts-implementation": ""
+# "symfony/http-client-implementation": "",
+# "symfony/service-implementation": "",
+# "symfony/translation-implementation": ""
# remirepo:1
%if 0%{?fedora} >= 27 || 0%{?rhel} >=8
Recommends: (php-composer(psr/cache) >= 1.0 with php-composer(psr/cache) < 2)
@@ -83,7 +84,12 @@ Requires: php-intl
# Autoloader
Requires: php-composer(fedora/autoloader)
-Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
+Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
+Provides: php-composer(%{pk_vendor}/cache-contracts) = %{version}
+Provides: php-composer(%{pk_vendor}/event-dispatcher-contracts) = %{version}
+Provides: php-composer(%{pk_vendor}/http-client-contracts) = %{version}
+Provides: php-composer(%{pk_vendor}/service-contracts) = %{version}
+Provides: php-composer(%{pk_vendor}/translation-contracts) = %{version}
%description
@@ -98,6 +104,10 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+for i in */composer.json */LICENSE */README.md
+do
+ mv $i $(dirname $i)_$(basename $i)
+done
%build
: Create autoloader
@@ -131,7 +141,7 @@ require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}/autoload.php';
EOF
ret=0
-for cmd in php php71 php72 php73; do
+for cmd in php php71 php72 php73 php74; do
if which $cmd; then
$cmd %{phpunit} \
--no-coverage \
@@ -147,14 +157,17 @@ exit $ret
%files
# remirepo:1
%{!?_licensedir:%global license %%doc}
-%license LICENSE
-%doc composer.json
+%license *LICENSE
+%doc *composer.json
%doc *.md
%dir %{php_home}/%{ns_vendor}/
%{php_home}/%{ns_vendor}/%{ns_project}
%changelog
+* Tue May 28 2019 Remi Collet <remi@remirepo.net> - 1.1.1-1
+- update to 1.1.1
+
* Thu May 16 2019 Remi Collet <remi@remirepo.net> - 1.1.0-1
- update to 1.1.0