summaryrefslogtreecommitdiffstats
path: root/php-tecnickcom-tc-lib-file.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-01-02 09:44:46 +0100
committerRemi Collet <remi@remirepo.net>2018-01-02 09:44:46 +0100
commit0fe99a693c83c96871d18e4092fb72ac2460c7e5 (patch)
tree5c9222c1a944a52c992f09f76b38ff4ff10159e3 /php-tecnickcom-tc-lib-file.spec
parent32a15cdd3bb2b2e86efd3feff8ff84aa93f67405 (diff)
v1.6.6
Diffstat (limited to 'php-tecnickcom-tc-lib-file.spec')
-rw-r--r--php-tecnickcom-tc-lib-file.spec32
1 files changed, 12 insertions, 20 deletions
diff --git a/php-tecnickcom-tc-lib-file.spec b/php-tecnickcom-tc-lib-file.spec
index 56d958e..a51ddb7 100644
--- a/php-tecnickcom-tc-lib-file.spec
+++ b/php-tecnickcom-tc-lib-file.spec
@@ -1,12 +1,12 @@
# remirepo/fedora spec file for php-tecnickcom-tc-lib-file
#
-# Copyright (c) 2016-2017 Remi Collet
+# Copyright (c) 2016-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
-%global gh_commit 69a5aed25e0a98b1f7c86b2aa9ede38ff18146ee
+%global gh_commit f373192e4e6f408633a0ffbb4b5eb2da0d33a24d
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global c_vendor tecnickcom
%global gh_owner tecnickcom
@@ -15,7 +15,7 @@
%global with_tests 0%{!?_without_tests:1}
Name: php-%{gh_owner}-%{gh_project}
-Version: 1.6.5
+Version: 1.6.6
Release: 1%{?dist}
Summary: PHP library to read byte-level data from files
@@ -24,7 +24,6 @@ License: LGPLv3+
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{?gh_short}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%if %{with_tests}
# For tests
@@ -73,7 +72,6 @@ grep -q '^%{version}$' VERSION
%install
-rm -rf %{buildroot}
mkdir -p $(dirname %{buildroot}%{php_project})
cp -pr src %{buildroot}%{php_project}
cp -p resources/autoload.php \
@@ -90,18 +88,14 @@ EOF
sed -i 's:src:File:g' -i test/DirTest.php
-%{phpunit} --no-coverage --verbose
-
-#remirepo:12
ret=0
-for cmd in php56; do
- if which $cmd; then
- $cmd %{_bindir}/phpunit --no-coverage --verbose || ret=1
- fi
-done
-for cmd in php70 php71; do
+for cmd in "php %{phpunit}" \
+ "php56 %{_bindir}/phpunit" \
+ "php70 %{_bindir}/phpunit6" \
+ "php71 %{_bindir}/phpunit6" \
+ "php72 %{_bindir}/phpunit6"; do
if which $cmd; then
- $cmd %{_bindir}/phpunit6 --no-coverage --verbose || ret=1
+ $cmd --no-coverage --verbose || ret=1
fi
done
exit $ret
@@ -110,12 +104,7 @@ exit $ret
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc composer.json
@@ -126,6 +115,9 @@ rm -rf %{buildroot}
%changelog
+* Tue Jan 2 2018 Remi Collet <remi@remirepo.net> - 1.6.6-1
+- Update to 1.6.6 (no change)
+
* Sun Feb 12 2017 Remi Collet <remi@remirepo.net> - 1.6.5-1
- update to 1.6.5 (no change)
- use phpunit6 on F26+