summaryrefslogtreecommitdiffstats
path: root/php-webmozart-assert2.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-04-14 11:12:09 +0200
committerRemi Collet <remi@php.net>2026-04-14 11:12:09 +0200
commit057273406fa2e5500164966dd065b18078abc6b4 (patch)
tree0f74f7aa7bcfab63feb1f5e91fd2037d8638629f /php-webmozart-assert2.spec
parentf3ab63949f84c6d518b39b69f14ff470f51d7a51 (diff)
update to 2.3.0HEADmaster
Diffstat (limited to 'php-webmozart-assert2.spec')
-rw-r--r--php-webmozart-assert2.spec59
1 files changed, 26 insertions, 33 deletions
diff --git a/php-webmozart-assert2.spec b/php-webmozart-assert2.spec
index 780fd1f..6fa72e7 100644
--- a/php-webmozart-assert2.spec
+++ b/php-webmozart-assert2.spec
@@ -9,66 +9,53 @@
# Please preserve changelog entries
#
-# enable bootstrap when need to provide a new autoloader
-%global bootstrap 0
-%global github_owner webmozart
-%global github_name assert
-%global github_version 2.1.6
-%global github_commit ff31ad6efc62e66e518fbab1cde3453d389bcdc8
-%global github_short %(c=%{github_commit}; echo ${c:0:7})
+%bcond_without tests
+
+%global gh_owner webmozart
+%global gh_project assert
%global major 2
%global composer_vendor webmozart
%global composer_project assert
# "php": "^8.2"
-%global php_min_ver 8.2
+%global php_min_ver 8.2
# PHPUnit
-%global phpunit_require phpunit11
-%global phpunit_exec phpunit11
+%global phpunit_require phpunit11
+%global phpunit_exec phpunit11
-%if %{bootstrap}
-# Build using "--with tests" to enable tests
-%global with_tests 0%{?_with_tests:1}
-%else
-# Build using "--without tests" to disable tests
-%global with_tests 0%{!?_without_tests:1}
-%endif
+%global phpdir %{_datadir}/php
-%{!?phpdir: %global phpdir %{_datadir}/php}
Name: php-%{composer_vendor}-%{composer_project}%{major}
-Version: %{github_version}
-Release: 1%{?github_release}%{?dist}
Summary: Assertions to validate method input/output with nice error messages
-
License: MIT
-URL: https://github.com/%{github_owner}/%{github_name}
+Version: 2.3.0
+Release: 1%{?dist}
+URL: https://github.com/%{gh_owner}/%{gh_project}
# GitHub export does not include tests.
-# Run php-webmozart-assert-get-source.sh to create full source.
-Source0: %{name}-%{github_version}-%{github_short}.tar.gz
-Source1: %{name}-get-source.sh
+# Run makesrc.sh to create full source.
+Source0: %{name}-%{version}.tgz
+Source1: makesrc.sh
BuildArch: noarch
# Tests
-%if %{with_tests}
+%if %{with tests}
## composer.json
BuildRequires: php(language) >= %{php_min_ver}
-BuildRequires: php-ctype
BuildRequires: %{phpunit_require}
-## phpcompatinfo (computed from version 1.7.0)
+## phpcompatinfo (computed from version 2.2.0)
BuildRequires: php-mbstring
BuildRequires: php-simplexml
+%endif
## Autoloader
BuildRequires: php-composer(fedora/autoloader)
-%endif
# composer.json
Requires: php(language) >= %{php_min_ver}
-Requires: php-ctype
-# phpcompatinfo (computed from version 1.7.0)
+# phpcompatinfo (computed from version 2.2.0)
Requires: php-mbstring
# Autoloader
Requires: php-composer(fedora/autoloader)
@@ -88,7 +75,7 @@ Autoloader: %{phpdir}/Webmozart/Assert%{major}/autoload.php
%prep
-%setup -qn %{github_name}-%{github_commit}
+%setup -qn %{gh_project}-%{version}
%build
@@ -109,8 +96,8 @@ mkdir -p %{buildroot}%{phpdir}/Webmozart
cp -rp src %{buildroot}%{phpdir}/Webmozart/Assert%{major}
+%if %{with tests}
%check
-%if %{with_tests}
: Create tests bootstrap
cat <<'BOOTSTRAP' | tee bootstrap.php
<?php
@@ -145,6 +132,12 @@ exit $RETURN_CODE
%changelog
+* Tue Apr 14 2026 Remi Collet <remi@remirepo.net> - 2.3.0-1
+- update to 2.3.0
+
+* Fri Apr 10 2026 Remi Collet <remi@remirepo.net> - 2.2.0-1
+- update to 2.2.0
+
* Fri Feb 27 2026 Remi Collet <remi@remirepo.net> - 2.1.6-1
- update to 2.1.6