Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0988854677 | ||
|
|
435c34afe8 |
3 changed files with 25 additions and 15 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1 +1,3 @@
|
||||||
/tokenizer-1.1.0-cb2f008.tar.gz
|
clog
|
||||||
|
/tokenizer-1.1.1-06b6ce4.tar.gz
|
||||||
|
/tokenizer-1.1.2-1c42705.tar.gz
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
# remirepo/fedora spec file for php-theseer-tokenizer
|
# remirepo/fedora spec file for php-theseer-tokenizer
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 Remi Collet
|
# Copyright (c) 2017-2019 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 cb2f008f3f05af2893a87208fe6a6c4985483f8b
|
%global gh_commit 1c42705be2b6c1de5904f8afacef5895cab44bf8
|
||||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||||
%global gh_vendor theseer
|
%global gh_vendor theseer
|
||||||
%global gh_project tokenizer
|
%global gh_project tokenizer
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
%global ns_project Tokenizer
|
%global ns_project Tokenizer
|
||||||
|
|
||||||
Name: php-%{gh_vendor}-%{gh_project}
|
Name: php-%{gh_vendor}-%{gh_project}
|
||||||
Version: 1.1.0
|
Version: 1.1.2
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Library for converting tokenized PHP source code into XML
|
Summary: Library for converting tokenized PHP source code into XML
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
|
@ -33,7 +33,8 @@ BuildRequires: php-spl
|
||||||
# Autoloader
|
# Autoloader
|
||||||
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
|
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
|
||||||
# Tests
|
# Tests
|
||||||
BuildRequires: phpunit6
|
%global phpunit %{_bindir}/phpunit7
|
||||||
|
BuildRequires: %{phpunit}
|
||||||
|
|
||||||
# From composer.json, "require": {
|
# From composer.json, "require": {
|
||||||
# "php": "^7.0",
|
# "php": "^7.0",
|
||||||
|
|
@ -65,7 +66,7 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php
|
||||||
|
|
||||||
%build
|
%build
|
||||||
: Generate a simple classmap autoloader
|
: Generate a simple classmap autoloader
|
||||||
%{_bindir}/phpab --template fedora2 --output src/autoload.php src
|
%{_bindir}/phpab --template fedora --output src/autoload.php src
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
@ -75,19 +76,18 @@ cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
ret=0
|
ret=0
|
||||||
for cmd in php php70 php71 php72; do
|
for cmdarg in "php %{phpunit}" php71 php72 php73; do
|
||||||
if which $cmd; then
|
if which $cmdarg; then
|
||||||
$cmd -d include_path=.:%{buildroot}%{php_home}:%{php_home} \
|
set $cmdarg
|
||||||
%{_bindir}/phpunit6 \
|
$1 -d auto_prepend_file=%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php \
|
||||||
--bootstrap %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php \
|
${2:-%{_bindir}/phpunit7} \
|
||||||
--no-coverage --verbose || ret=1
|
--no-coverage --verbose || ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md composer.json
|
%doc README.md composer.json
|
||||||
%dir %{_datadir}/php/%{ns_vendor}
|
%dir %{_datadir}/php/%{ns_vendor}
|
||||||
|
|
@ -95,6 +95,14 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 4 2019 Remi Collet <remi@remirepo.net> - 1.1.2-1
|
||||||
|
- update to 1.1.2 (no change)
|
||||||
|
- switch back to phpunit 7
|
||||||
|
|
||||||
|
* Thu Apr 4 2019 Remi Collet <remi@remirepo.net> - 1.1.1-1
|
||||||
|
- update to 1.1.1
|
||||||
|
- use phpunit8
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (tokenizer-1.1.0-cb2f008.tar.gz) = ab6a8dde2296ccf7ffda86c8906b6d546309c442611f12e87b829b44635a8cd17a6cdd834d21ba33b7f346561420739dd81cf2293ba52900f121c0c4311dbed2
|
SHA512 (tokenizer-1.1.2-1c42705.tar.gz) = d0dd5e44d01327460fe583157842dec9d5a7202b656ddaf4fa59e5c13e47fa604959fe21a6e8eb7de00d0276d132ac94a33885057b03072be9a752ae8275e4d1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue