From 2d107d731617ca44a66477140103659fb9c16334 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 12 Feb 2019 09:17:28 +0100 Subject: v0.1.1 --- php-owncloud-tarstreamer.spec | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/php-owncloud-tarstreamer.spec b/php-owncloud-tarstreamer.spec index 41aef8c..0b14ccf 100644 --- a/php-owncloud-tarstreamer.spec +++ b/php-owncloud-tarstreamer.spec @@ -1,12 +1,12 @@ # remirepo/fedora spec file for php-owncloud-tarstreamer # -# Copyright (c) 2016-2017 Remi Collet +# Copyright (c) 2016-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit 859a0170de120c66b042e6c0dbc1a9979c74669b +%global gh_commit 2d99636ded9c8a8a1ecd8129e7976dcd606106d9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner owncloud %global gh_project TarStreamer @@ -15,18 +15,17 @@ %global ns_project TarStreamer Name: php-owncloud-tarstreamer -Version: 0.1.0 +Version: 0.1.1 Release: 1%{?dist} Summary: Streaming dynamic tar files -Group: Development/Libraries License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}%{?prever}-%{gh_short}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php-composer(theseer/autoload) +BuildRequires: php-fedora-autoloader-devel %if %{with_tests} BuildRequires: php(language) >= 5.3.8 BuildRequires: php-date @@ -59,11 +58,10 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php %build : Generate a simple autoloader -%{_bindir}/phpab -o src/autoload.php src +%{_bindir}/phpab -t fedora -o src/autoload.php src %install -rm -rf %{buildroot} : Create a PSR-0 tree mkdir -p %{buildroot}%{_datadir}/php/%{ns_vendor} cp -pr src %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project} @@ -79,24 +77,20 @@ require_once '/usr/share/pear/Archive/Tar.php'; EOF : Run test suite +ret=0 cd tests -%{_bindir}/phpunit - -if which php70; then - : Run test suite with PHP 7.0 SCL - php70 %{_bindir}/phpunit -fi +for cmd in php php70 php71 php72 php73; do + if which $cmd; then + $cmd %{_bindir}/phpunit || ret=1 + fi +done +exit $ret %else : Test suite disabled %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc composer.json @@ -104,6 +98,9 @@ rm -rf %{buildroot} %changelog +* Tue Feb 12 2019 Remi Collet - 0.1.1-1 +- update to 0.1.1 + * Mon May 2 2016 Remi Collet - 0.1.0-1 - update to 0.1.0 -- cgit