summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-10-25 14:01:06 +0200
committerRemi Collet <remi@php.net>2021-10-25 14:01:06 +0200
commit1d85b6aeaf0783f0d3217922bfadef235c60a026 (patch)
treefad9ab7fa0748feb41b229b09e324537ab279f01
parent5922e594daaf52b933f195ef681a491b0205eceb (diff)
update to 2.0.1
rename to php-psr-container2 install in /usr/share/php/Psr/Container2
-rw-r--r--composer.json5
-rw-r--r--php-psr-container2.spec23
2 files changed, 20 insertions, 8 deletions
diff --git a/composer.json b/composer.json
index 3797a25..4bc837a 100644
--- a/composer.json
+++ b/composer.json
@@ -18,5 +18,10 @@
"psr-4": {
"Psr\\Container\\": "src/"
}
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
}
}
diff --git a/php-psr-container2.spec b/php-psr-container2.spec
index 431e1b6..5a9d44c 100644
--- a/php-psr-container2.spec
+++ b/php-psr-container2.spec
@@ -7,20 +7,22 @@
# Please, preserve the changelog entries
#
-%global gh_commit 8622567409010282b7aeebe4bb841fe98b58dcaf
+%global gh_commit 2ae37329ee82f91efadc282cc2d527fd6065a5ef
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner php-fig
%global gh_project container
+%global major 2
+
%global pk_vendor psr
%global pk_project container
%{!?phpdir: %global phpdir %{_datadir}/php}
-Name: php-%{pk_vendor}-%{pk_project}
-Version: 1.1.1
+Name: php-%{pk_vendor}-%{pk_project}%{major}
+Version: 2.0.1
Release: 1%{?dist}
-Summary: Common Container Interface
+Summary: Common Container Interface version %{major}
License: MIT
URL: https://github.com/%{gh_owner}/%{gh_project}
@@ -49,7 +51,7 @@ This package holds all interfaces/classes/traits related to PSR-11.
Note that this is not a container implementation of its own.
-Autoloader: %{_datadir}/php/Psr/Container/autoload.php
+Autoloader: %{_datadir}/php/Psr/Container%{major}/autoload.php
%prep
@@ -72,13 +74,13 @@ AUTOLOAD
%install
mkdir -p %{buildroot}%{_datadir}/php/Psr
-cp -rp src %{buildroot}%{_datadir}/php/Psr/Container
+cp -rp src %{buildroot}%{_datadir}/php/Psr/Container%{major}
%check
: Test autoloader
php -r '
-require "%{buildroot}%{_datadir}/php/Psr/Container/autoload.php";
+require "%{buildroot}%{_datadir}/php/Psr/Container%{major}/autoload.php";
exit (interface_exists("Psr\\Container\\ContainerInterface") ? 0 : 1);
'
@@ -90,10 +92,15 @@ exit (interface_exists("Psr\\Container\\ContainerInterface") ? 0 : 1);
%doc *.md
%doc composer.json
%dir %{_datadir}/php/Psr
- %{_datadir}/php/Psr/Container
+ %{_datadir}/php/Psr/Container%{major}
%changelog
+* Mon Oct 25 2021 Remi Collet <remi@remirepo.net> - 2.0.1-1
+- update to 2.0.1
+- rename to php-psr-container2
+- install in /usr/share/php/Psr/Container2
+
* Wed Apr 14 2021 Remi Collet <remi@remirepo.net> - 1.1.1-1
- update to 1.1.1
- raise dependency on PHP 7.2