diff --git a/.gitignore b/.gitignore index 6851ea3..af4a17d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,2 @@ /php-bacon-qr-code-2.0.0-eaac909.tar.gz /php-bacon-qr-code2-2.0.0-eaac909.tgz -/php-bacon-qr-code2-2.0.1-6e53ced.tgz -/php-bacon-qr-code2-2.0.2-add6d9f.tgz -/php-bacon-qr-code2-2.0.3-3e9d791.tgz -/php-bacon-qr-code2-2.0.4-f73543a.tgz -/php-bacon-qr-code2-2.0.5-7190fc6.tgz -/php-bacon-qr-code2-2.0.6-0069435.tgz -/php-bacon-qr-code2-2.0.7-d70c840.tgz -/php-bacon-qr-code2-2.0.8-8674e51.tgz diff --git a/php-bacon-qr-code2.spec b/php-bacon-qr-code2.spec index 5715613..3dc1981 100644 --- a/php-bacon-qr-code2.spec +++ b/php-bacon-qr-code2.spec @@ -1,14 +1,12 @@ # remirepo/fedora spec file for php-bacon-qr-code2 # -# Copyright (c) 2017-2022 Remi Collet +# Copyright (c) 2017-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%bcond_without tests - -%global gh_commit 8674e51bb65af933a5ffaf1c308a660387c35c22 +%global gh_commit eaac909da3ccc32b748a65b127acd8918f58d9b0 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner Bacon %global gh_project BaconQrCode @@ -20,21 +18,21 @@ %global ns_project %{gh_project} %global php_home %{_datadir}/php %global major 2 +%global with_tests 0%{!?_without_tests:1} Name: php-%{pk_project}%{major} -Version: 2.0.8 -Release: 9%{?dist} +Version: 2.0.0 +Release: 1%{?dist} Summary: QR code generator for PHP Group: Development/Libraries -# Automatically converted from old format: BSD - review is highly recommended. -License: LicenseRef-Callaway-BSD +License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -%if %{with tests} +%if %{with_tests} # For tests BuildRequires: php(language) >= 7.1 BuildRequires: php-iconv @@ -45,20 +43,18 @@ BuildRequires: php-xmlwriter BuildRequires: php-reflection BuildRequires: (php-composer(dasprid/enum) >= 1.0 with php-composer(dasprid/enum) < 2) # From composer.json, "require-dev": { -# "phpunit/phpunit": "^7 | ^8 | ^9", -# "spatie/phpunit-snapshot-assertions": "^4.2.9", +# "phpunit/phpunit": "^6.4", # "squizlabs/php_codesniffer": "^3.1", # "phly/keep-a-changelog": "^1.4" -%global phpunit %{_bindir}/phpunit9 -BuildRequires: %{phpunit} +BuildRequires: phpunit6 # Required by autoloader BuildRequires: php-composer(fedora/autoloader) %endif # From composer.json, "require": { -# "php": "^7.1 || ^8.0", +# "php": "^7.1", # "ext-iconv": "*", -# "dasprid/enum": "^1.0.3" +# "dasprid/enum": "^1.0" Requires: php(language) >= 7.1 Requires: php-iconv # From composer.json, "suggest": { @@ -113,16 +109,13 @@ cp -pr src %{buildroot}%{php_home}/%{ns_project}%{major} %check -%if %{with tests} +%if %{with_tests} if php -r 'exit(PHP_INT_SIZE<8 ? 0 : 1);' then : ignore test suite because of https://github.com/Bacon/BaconQrCode/issues/31 exit 0 fi -: ignore test using spatie/phpunit-snapshot-assertions -rm test/Integration/ImagickRenderingTest.php - mkdir vendor cat << 'EOF' | tee vendor/autoload.php - 2.0.8-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sat Jan 18 2025 Fedora Release Engineering - 2.0.8-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Wed Sep 4 2024 Miroslav Suchý - 2.0.8-7 -- convert license to SPDX - -* Fri Jul 19 2024 Fedora Release Engineering - 2.0.8-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Thu Jan 25 2024 Fedora Release Engineering - 2.0.8-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Jan 21 2024 Fedora Release Engineering - 2.0.8-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jul 21 2023 Fedora Release Engineering - 2.0.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Fri Jan 20 2023 Fedora Release Engineering - 2.0.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Thu Dec 8 2022 Remi Collet - 2.0.8-1 -- update to 2.0.8 - -* Fri Jul 22 2022 Fedora Release Engineering - 2.0.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Mar 14 2022 Remi Collet - 2.0.7-1 -- update to 2.0.7 - -* Mon Feb 7 2022 Remi Collet - 2.0.6-1 -- update to 2.0.6 (no change) - -* Mon Jan 31 2022 Remi Collet - 2.0.5-1 -- update to 2.0.5 - -* Fri Jan 21 2022 Fedora Release Engineering - 2.0.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 2.0.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Mon Jun 21 2021 Remi Collet - 2.0.4-1 -- update to 2.0.4 - -* Wed Jan 27 2021 Fedora Release Engineering - 2.0.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Fri Oct 30 2020 Remi Collet - 2.0.3-1 -- update to 2.0.3 (no change) - -* Tue Aug 11 2020 Remi Collet - 2.0.2-1 -- update to 2.0.2 -- switch to phpunit9 - -* Tue Jul 28 2020 Fedora Release Engineering - 2.0.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jul 15 2020 Remi Collet - 2.0.1-1 -- update to 2.0.1 - -* Thu Jan 30 2020 Fedora Release Engineering - 2.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - * Mon Sep 2 2019 Remi Collet - 2.0.0-1 - update to 2.0.0 - rename to php-bacon-qr-code2 diff --git a/sources b/sources index 6f8e3cb..34864bb 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (php-bacon-qr-code2-2.0.8-8674e51.tgz) = 8ac49df86ff6efe11e978c1e82a658e500060958773db30daf39001c4b9a0fc64559729f2a0d23f5559d27d6a6986cb5ea3f9a7efb99a7b11e96d933362bab0c +SHA512 (php-bacon-qr-code-2.0.0-eaac909.tar.gz) = 7bb152c2aa374b1a754a08fd3e1224617e209012d064b94ca4920597b2b4a3101c096f473fb623bd00b8252a69498eaa94366176c5f9b389d0141108af5260ef +SHA512 (php-bacon-qr-code2-2.0.0-eaac909.tgz) = 62d898771109832eea0369a7999e85dd27dc7a7dfb8bc0f53d7dc177100d195af919714aff119b793fed9468560f3ec992e50e953d18e4c0113e7dc1139327f1