diff --git a/.gitignore b/.gitignore index 6741e09..edc0b31 100644 --- a/.gitignore +++ b/.gitignore @@ -2,11 +2,3 @@ /php-sabre-xml2-2.1.3-f08a58f.tgz /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 3fd3555..658dd74 100644 --- a/php-sabre-xml2.spec +++ b/php-sabre-xml2.spec @@ -1,16 +1,13 @@ # remirepo/fedora spec file for php-sabre-xml2 # -# Copyright (c) 2016-2024 Remi Collet -# License: CC-BY-SA-4.0 +# Copyright (c) 2016-2020 Remi Collet +# License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # - -%bcond_without tests - # Github -%global gh_commit 01a7927842abf3e10df3d9c2d9b0cc9d813a3fcc +%global gh_commit 41c6ba148966b10cafd31d1a4e5feb1e2138d95c %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sabre-io %global gh_project xml @@ -21,20 +18,21 @@ %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.11 -Release: 3%{?dist} +Version: 2.2.1 +Release: 1%{?dist} URL: https://github.com/%{gh_owner}/%{gh_project} -License: BSD-3-Clause +License: BSD # 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 @@ -44,17 +42,15 @@ 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.6" -BuildRequires: phpunit9 >= 9.6 -%global phpunit %{_bindir}/phpunit9 +# "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0" +BuildRequires: phpunit8 >= 8.5 %endif # Autoloader BuildRequires: php-fedora-autoloader-devel # From composer.json, "require" : { -# "php" : "^7.1 || ^8.0", +# "php" : "^7.1", # "ext-xmlwriter" : "*", # "ext-xmlreader" : "*", # "ext-dom" : "*", @@ -114,14 +110,7 @@ cp -pr lib %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major} %check -: 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} +%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 - -* Mon Oct 5 2020 Remi Collet - 2.2.3-1 -- update to 2.2.3 - -* Tue Jul 28 2020 Fedora Release Engineering - 2.2.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - * Mon May 11 2020 Remi Collet - 2.2.1-1 - update to 2.2.1 diff --git a/sources b/sources index 069f1aa..46ac062 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-sabre-xml2-2.2.11-01a7927.tgz) = fa699fba7851bcf430664880f0d89296dd2215a51d65726f06387d37e2fd04b53724f8290a0f3c444e975b9f0f2b696a87e8d59529660ca060264d709a9aab3c +SHA512 (php-sabre-xml2-2.2.1-41c6ba1.tgz) = fa4d6756a1163acf9f6e0fe12946defc329b7518684f131bba88798c770688d4b437620e261cfeadb90ee95624af0868740cbe5239d256e2801bc282d2038786