From 76bbe78ce30ddaca27644c641b114d6ae3e4bde1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 9 Oct 2019 12:09:34 +0200 Subject: - update to 1.5.3 - add patch for PHP 7.4 from https://github.com/simplepie/simplepie/pull/628 --- makesrc.sh | 1 + php-simplepie.spec | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 120000 makesrc.sh diff --git a/makesrc.sh b/makesrc.sh new file mode 120000 index 0000000..a8d5ab3 --- /dev/null +++ b/makesrc.sh @@ -0,0 +1 @@ +php-simplepie-makesrc.sh \ No newline at end of file diff --git a/php-simplepie.spec b/php-simplepie.spec index e60947d..b1c34f6 100644 --- a/php-simplepie.spec +++ b/php-simplepie.spec @@ -7,11 +7,11 @@ # # Please preserve changelog entries # -%global gh_commit 0e8fe72132dad765d25db4cabc69a91139af1263 +%global gh_commit 173663382a9346acd53df60c7ffb20689c9cf1f6 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner simplepie %global gh_project simplepie -%global gh_version 1.5.2 +%global gh_version 1.5.3 %global with_tests 0%{!?_without_tests:1} Name: php-%{gh_project} @@ -30,6 +30,8 @@ Source1: %{name}-makesrc.sh # Adapt autoloader for installation tree Patch0: %{name}-rpm.patch +# PHP 7.4 +Patch1: https://patch-diff.githubusercontent.com/raw/simplepie/simplepie/pull/628.patch BuildArch: noarch %if %{with_tests} @@ -89,6 +91,7 @@ Autoloader: %{_datadir}/php/%{name}/autoloader.php %setup -qn %{gh_project}-%{gh_commit} %patch0 -p1 -b .rpm +%patch1 -p1 # fix rpmlint warnings find . -type f -exec chmod -x {} \; @@ -114,7 +117,7 @@ sed -e 's:@PATH@:%{buildroot}/%{_datadir}/php/%{name}:' \ -i tests/bootstrap.php ret=0 -for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72 php73; do +for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72 php73 php74; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1 @@ -134,6 +137,11 @@ exit $ret %changelog +* Wed Oct 9 2019 Remi Collet - 1.5.3-1 +- update to 1.5.3 +- add patch for PHP 7.4 from + https://github.com/simplepie/simplepie/pull/628 + * Tue Oct 2 2018 Remi Collet - 1.5.2-1 - update to 1.5.2 - raise dependency on PHP 5.6 -- cgit