summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-04-07 10:03:46 +0200
committerRemi Collet <remi@php.net>2023-04-07 10:03:46 +0200
commit14efe88e0a68af5f1f399e5f43ea3169740fd99b (patch)
treec2c5476b372e7586cb99538369c69b590d1da8e3
parent1ec10d0f90cdeced72f43bb293ff56b67591a56f (diff)
update to 1.1HEADmaster
raise dependency on PHP 7.2 use fedora/autoloader
-rw-r--r--Makefile2
-rw-r--r--composer.json4
-rw-r--r--php-psr-http-message.spec21
3 files changed, 17 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 91b0fd5..13af741 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
SRCDIR := $(shell pwd)
NAME := $(shell basename $(SRCDIR))
-include ../../common/Makefile
+include ../../../common/Makefile
diff --git a/composer.json b/composer.json
index b0d2937..56e8c0a 100644
--- a/composer.json
+++ b/composer.json
@@ -11,7 +11,7 @@
}
],
"require": {
- "php": ">=5.3.0"
+ "php": "^7.2 || ^8.0"
},
"autoload": {
"psr-4": {
@@ -20,7 +20,7 @@
},
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "1.1.x-dev"
}
}
}
diff --git a/php-psr-http-message.spec b/php-psr-http-message.spec
index 4428e64..25875be 100644
--- a/php-psr-http-message.spec
+++ b/php-psr-http-message.spec
@@ -2,7 +2,7 @@
#
# RPM spec file for php-psr-http-message
#
-# Copyright (c) 2014-2016 Shawn Iwinski <shawn.iwinski@gmail.com>
+# Copyright (c) 2014-2023 Shawn Iwinski <shawn.iwinski@gmail.com>
#
# License: MIT
# http://opensource.org/licenses/MIT
@@ -12,8 +12,8 @@
%global github_owner php-fig
%global github_name http-message
-%global github_version 1.0.1
-%global github_commit f6561bf28d520154e4b0ec72be95418abe6d9363
+%global github_version 1.1
+%global github_commit cb6ce4845ce34a8ad9e68117c10ee90a29919eba
%global composer_vendor psr
%global composer_project http-message
@@ -32,13 +32,15 @@ Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{githu
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-# Autoload generation
-BuildRequires: %{_bindir}/phpab
+# Autoloader generation
+BuildRequires: php-fedora-autoloader-devel
# For tests
BuildRequires: php-cli
# phpcompatinfo (computed from version 1.0)
-Requires: php(language) >= 5.3.0
+Requires: php(language) >= 7.2
+# Autoloader
+Requires: php-composer(fedora/autoloader)
# Composer
Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
@@ -60,7 +62,7 @@ Autoloader: %{phpdir}/Psr/Http/Message/autoload.php
%build
: Generate autoloader
-%{_bindir}/phpab --nolower --output src/autoload.php src
+%{_bindir}/phpab --template fedora --output src/autoload.php src
%install
@@ -93,6 +95,11 @@ rm -rf %{buildroot}
%changelog
+* Fri Apr 7 2023 Remi Collet <remi@remirepo.net> - 1.1-1
+- update to 1.1
+- raise dependency on PHP 7.2
+- use fedora/autoloader
+
* Sun Aug 7 2016 Remi Collet <remi@remirepo.net> - 1.0.1-1
- update to 1.0.1 (only comments)
- add check for autoloader