Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63f32fe260 | ||
|
|
688875632d |
3 changed files with 23 additions and 12 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
/php-bacon-qr-code-2.0.0-eaac909.tar.gz
|
/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.0-eaac909.tgz
|
||||||
|
/php-bacon-qr-code2-2.0.1-6e53ced.tgz
|
||||||
|
/php-bacon-qr-code2-2.0.2-add6d9f.tgz
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
# remirepo/fedora spec file for php-bacon-qr-code2
|
# remirepo/fedora spec file for php-bacon-qr-code2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017-2019 Remi Collet
|
# Copyright (c) 2017-2020 Remi Collet
|
||||||
# License: CC-BY-SA
|
# License: CC-BY-SA
|
||||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||||
#
|
#
|
||||||
# Please, preserve the changelog entries
|
# Please, preserve the changelog entries
|
||||||
#
|
#
|
||||||
%global gh_commit eaac909da3ccc32b748a65b127acd8918f58d9b0
|
%bcond_without tests
|
||||||
|
|
||||||
|
%global gh_commit add6d9ff97336b62f95a3b94f75cea4e085465b2
|
||||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||||
%global gh_owner Bacon
|
%global gh_owner Bacon
|
||||||
%global gh_project BaconQrCode
|
%global gh_project BaconQrCode
|
||||||
|
|
@ -18,10 +20,9 @@
|
||||||
%global ns_project %{gh_project}
|
%global ns_project %{gh_project}
|
||||||
%global php_home %{_datadir}/php
|
%global php_home %{_datadir}/php
|
||||||
%global major 2
|
%global major 2
|
||||||
%global with_tests 0%{!?_without_tests:1}
|
|
||||||
|
|
||||||
Name: php-%{pk_project}%{major}
|
Name: php-%{pk_project}%{major}
|
||||||
Version: 2.0.0
|
Version: 2.0.2
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: QR code generator for PHP
|
Summary: QR code generator for PHP
|
||||||
|
|
||||||
|
|
@ -32,7 +33,7 @@ Source0: %{name}-%{version}-%{gh_short}.tgz
|
||||||
Source1: makesrc.sh
|
Source1: makesrc.sh
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with_tests}
|
%if %{with tests}
|
||||||
# For tests
|
# For tests
|
||||||
BuildRequires: php(language) >= 7.1
|
BuildRequires: php(language) >= 7.1
|
||||||
BuildRequires: php-iconv
|
BuildRequires: php-iconv
|
||||||
|
|
@ -43,10 +44,11 @@ BuildRequires: php-xmlwriter
|
||||||
BuildRequires: php-reflection
|
BuildRequires: php-reflection
|
||||||
BuildRequires: (php-composer(dasprid/enum) >= 1.0 with php-composer(dasprid/enum) < 2)
|
BuildRequires: (php-composer(dasprid/enum) >= 1.0 with php-composer(dasprid/enum) < 2)
|
||||||
# From composer.json, "require-dev": {
|
# From composer.json, "require-dev": {
|
||||||
# "phpunit/phpunit": "^6.4",
|
# "phpunit/phpunit": "^7 | ^8 | ^9",
|
||||||
# "squizlabs/php_codesniffer": "^3.1",
|
# "squizlabs/php_codesniffer": "^3.1",
|
||||||
# "phly/keep-a-changelog": "^1.4"
|
# "phly/keep-a-changelog": "^1.4"
|
||||||
BuildRequires: phpunit6
|
%global phpunit %{_bindir}/phpunit9
|
||||||
|
BuildRequires: %{phpunit}
|
||||||
# Required by autoloader
|
# Required by autoloader
|
||||||
BuildRequires: php-composer(fedora/autoloader)
|
BuildRequires: php-composer(fedora/autoloader)
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -109,7 +111,7 @@ cp -pr src %{buildroot}%{php_home}/%{ns_project}%{major}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with_tests}
|
%if %{with tests}
|
||||||
if php -r 'exit(PHP_INT_SIZE<8 ? 0 : 1);'
|
if php -r 'exit(PHP_INT_SIZE<8 ? 0 : 1);'
|
||||||
then
|
then
|
||||||
: ignore test suite because of https://github.com/Bacon/BaconQrCode/issues/31
|
: ignore test suite because of https://github.com/Bacon/BaconQrCode/issues/31
|
||||||
|
|
@ -123,9 +125,10 @@ require '%{buildroot}%{php_home}/%{ns_project}%{major}/autoload.php';
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
for cmd in php php71 php72 php73 php74; do
|
for cmd in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do
|
||||||
if which $cmd; then
|
if which $cmd; then
|
||||||
$cmd %{_bindir}/phpunit6 --verbose || ret=1
|
set $cmd
|
||||||
|
$1 ${2:-%{_bindir}/phpunit9} --verbose || ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
@ -142,6 +145,13 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 11 2020 Remi Collet <remi@remirepo.net> - 2.0.2-1
|
||||||
|
- update to 2.0.2
|
||||||
|
- switch to phpunit9
|
||||||
|
|
||||||
|
* Wed Jul 15 2020 Remi Collet <remi@remirepo.net> - 2.0.1-1
|
||||||
|
- update to 2.0.1
|
||||||
|
|
||||||
* Mon Sep 2 2019 Remi Collet <remi@remirepo.net> - 2.0.0-1
|
* Mon Sep 2 2019 Remi Collet <remi@remirepo.net> - 2.0.0-1
|
||||||
- update to 2.0.0
|
- update to 2.0.0
|
||||||
- rename to php-bacon-qr-code2
|
- rename to php-bacon-qr-code2
|
||||||
|
|
|
||||||
3
sources
3
sources
|
|
@ -1,2 +1 @@
|
||||||
SHA512 (php-bacon-qr-code-2.0.0-eaac909.tar.gz) = 7bb152c2aa374b1a754a08fd3e1224617e209012d064b94ca4920597b2b4a3101c096f473fb623bd00b8252a69498eaa94366176c5f9b389d0141108af5260ef
|
SHA512 (php-bacon-qr-code2-2.0.2-add6d9f.tgz) = 47f77d07f3f249b30fda653aca7c5a7b75db2271555c28701aad8a48a27b3e018addfa00f80d14923b2f7ffaf2ff880a3732c4d331741f93b723b037e597472f
|
||||||
SHA512 (php-bacon-qr-code2-2.0.0-eaac909.tgz) = 62d898771109832eea0369a7999e85dd27dc7a7dfb8bc0f53d7dc177100d195af919714aff119b793fed9468560f3ec992e50e953d18e4c0113e7dc1139327f1
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue