summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-04-21 11:45:51 +0200
committerRemi Collet <remi@php.net>2023-04-21 11:45:51 +0200
commitf8f61ed2afd906e08dce17fdc31a4d080fcf7c9a (patch)
tree5f76bfb823589a7924c8301145c32f2c649e0a55
parentd87ce0a1899a62a9580bec0c974969c19898acff (diff)
use SPDX License idHEADmaster
-rw-r--r--composer.json4
-rw-r--r--php-sebastian-code-unit-reverse-lookup2.spec30
2 files changed, 21 insertions, 13 deletions
diff --git a/composer.json b/composer.json
index 6535006..cff9616 100644
--- a/composer.json
+++ b/composer.json
@@ -18,10 +18,10 @@
"sort-packages": true
},
"require": {
- "php": "^7.3 || ^8.0"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^9.0"
+ "phpunit/phpunit": "^9.3"
},
"autoload": {
"classmap": [
diff --git a/php-sebastian-code-unit-reverse-lookup2.spec b/php-sebastian-code-unit-reverse-lookup2.spec
index 62865b3..ba496b9 100644
--- a/php-sebastian-code-unit-reverse-lookup2.spec
+++ b/php-sebastian-code-unit-reverse-lookup2.spec
@@ -1,13 +1,13 @@
# remirepo/fedora spec file for php-sebastian-code-unit-reverse-lookup2
#
-# Copyright (c) 2016-2020 Remi Collet
-# License: CC-BY-SA
+# Copyright (c) 2016-2023 Remi Collet
+# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global bootstrap 0
-%global gh_commit ee51f9bb0c6d8a43337055db3120829fa14da819
+%global gh_commit ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project code-unit-reverse-lookup
@@ -26,11 +26,11 @@
%endif
Name: php-%{pk_vendor}-%{pk_project}%{major}
-Version: 2.0.2
-Release: 1%{?dist}
-Summary: Looks up which function or method a line of code belongs to
+Version: 2.0.3
+Release: 7%{?dist}
+Summary: Looks up which function or method a line of code belongs to, version %{major}
-License: BSD
+License: BSD-3-Clause
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
@@ -40,12 +40,12 @@ BuildRequires: php(language) >= 7.3
BuildRequires: php-fedora-autoloader-devel
%if %{with tests}
# from composer.json, "require-dev": {
-# "phpunit/phpunit": "^9.0"
-BuildRequires: phpunit9
+# "phpunit/phpunit": "^9.3"
+BuildRequires: phpunit9 >= 9.3
%endif
# from composer.json, "require": {
-# "php": "^7.3 || ^8.0"
+# "php": ">=7.3"
Requires: php(language) >= 7.3
# From phpcompatinfo report for version 2.0.0
Requires: php-reflection
@@ -58,6 +58,8 @@ Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
%description
Looks up which function or method a line of code belongs to.
+This package provides version %{major} of %{pk_vendor}/%{pk_project} library.
+
Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
@@ -82,7 +84,7 @@ touch vendor/autoload.php
: Run upstream test suite
ret=0
-for cmd in php php73 php74 php80; do
+for cmd in php php80 php81 php82; do
if which $cmd; then
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
%{_bindir}/phpunit9 --verbose || ret=1
@@ -105,6 +107,12 @@ exit $ret
%changelog
+* Fri Apr 21 2023 Remi Collet <remi@remirepo.net> - 2.0.3-7
+- use SPDX License id
+
+* Mon Sep 28 2020 Remi Collet <remi@remirepo.net> - 2.0.3-1
+- update to 2.0.3 (no change)
+
* Mon Jun 29 2020 Remi Collet <remi@remirepo.net> - 2.0.2-1
- update to 2.0.2