diff --git a/.gitignore b/.gitignore index cf7640b..6741e09 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,10 @@ /php-sabre-xml2-2.2.0-705f5cb.tgz /php-sabre-xml2-2.2.1-41c6ba1.tgz /php-sabre-xml2-2.2.3-c3b959f.tgz +/php-sabre-xml2-2.2.5-a6af111.tgz +/php-sabre-xml2-2.2.6-9cde7cd.tgz +/php-sabre-xml2-2.2.7-f1d53d5.tgz +/php-sabre-xml2-2.2.8-1f89d65.tgz +/php-sabre-xml2-2.2.9-8828871.tgz +/php-sabre-xml2-2.2.10-0734b7a.tgz +/php-sabre-xml2-2.2.11-01a7927.tgz diff --git a/php-sabre-xml2.spec b/php-sabre-xml2.spec index 8d4c32d..3fd3555 100644 --- a/php-sabre-xml2.spec +++ b/php-sabre-xml2.spec @@ -1,13 +1,16 @@ # remirepo/fedora spec file for php-sabre-xml2 # -# Copyright (c) 2016-2020 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2016-2024 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # + +%bcond_without tests + # Github -%global gh_commit c3b959f821c19b36952ec4a595edd695c216bfc6 +%global gh_commit 01a7927842abf3e10df3d9c2d9b0cc9d813a3fcc %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sabre-io %global gh_project xml @@ -18,21 +21,20 @@ %global ns_vendor Sabre %global ns_project Xml %global major 2 -%global with_tests 0%{!?_without_tests:1} Name: php-%{pk_vendor}-%{pk_project}%{major} Summary: XML library that you may not hate -Version: 2.2.3 -Release: 2%{?dist} +Version: 2.2.11 +Release: 3%{?dist} URL: https://github.com/%{gh_owner}/%{gh_project} -License: BSD +License: BSD-3-Clause # Git snapshot with tests, because of .gitattributes Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -%if %{with_tests} +%if %{with tests} BuildRequires: php(language) >= 7.1 BuildRequires: php-xmlwriter BuildRequires: php-xmlreader @@ -42,9 +44,11 @@ BuildRequires: php-libxml BuildRequires: php-pcre BuildRequires: php-spl # From composer.json, "require-dev": { +# "friendsofphp/php-cs-fixer": "~2.17.1||3.63.2", # "phpstan/phpstan": "^0.12", -# "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0" -BuildRequires: phpunit8 >= 8.5 +# "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6" +BuildRequires: phpunit9 >= 9.6 +%global phpunit %{_bindir}/phpunit9 %endif # Autoloader BuildRequires: php-fedora-autoloader-devel @@ -110,7 +114,14 @@ cp -pr lib %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major} %check -%if %{with_tests} +: Check version +php -r ' +require "%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload.php"; +echo Sabre\Xml\Version::VERSION . "\n"; +exit (Sabre\Xml\Version::VERSION === "%{version}" ? 0 : 1); +' + +%if %{with tests} mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 2.2.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sat Jan 18 2025 Fedora Release Engineering - 2.2.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Sep 6 2024 Remi Collet - 2.2.11-1 +- update to 2.2.11 + +* Wed Aug 28 2024 Remi Collet - 2.2.10-1 +- update to 2.2.10 (no change, CS only) + +* Fri Jul 26 2024 Remi Collet - 2.2.9-1 +- update to 2.2.9 + +* Thu Jul 25 2024 Remi Collet - 2.2.8-1 +- update to 2.2.8 + +* Fri Jul 19 2024 Fedora Release Engineering - 2.2.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Apr 18 2024 Remi Collet - 2.2.7-1 +- update to 2.2.7 + +* Thu Jan 25 2024 Fedora Release Engineering - 2.2.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 2.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 28 2023 Remi Collet - 2.2.6-1 +- update to 2.2.6 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.2.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.2.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Nov 4 2021 Remi Collet - 2.2.5-1 +- update to 2.2.5 + +* Fri Jul 23 2021 Fedora Release Engineering - 2.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Wed Jan 27 2021 Fedora Release Engineering - 2.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 7198854..069f1aa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-sabre-xml2-2.2.3-c3b959f.tgz) = 3eee3540306f6defdbf0f860a7dc7d40964cca56f28d2c73011ba4c8edc43d272182fdbca16f26e9901d81f269b19d7c46a92b2bf32e04fa44fa3bbbccdb6c7b +SHA512 (php-sabre-xml2-2.2.11-01a7927.tgz) = fa699fba7851bcf430664880f0d89296dd2215a51d65726f06387d37e2fd04b53724f8290a0f3c444e975b9f0f2b696a87e8d59529660ca060264d709a9aab3c