From b937d2c18d477fc5490181057949a5819be259f5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 17 Mar 2020 15:02:20 +0100 Subject: add backport stuff --- Makefile | 4 ++++ makesrc.sh | 1 + php-webimpress-safe-writer-get-source.sh | 1 + php-webimpress-safe-writer.spec | 3 ++- 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 120000 makesrc.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/makesrc.sh b/makesrc.sh new file mode 120000 index 0000000..ea46acb --- /dev/null +++ b/makesrc.sh @@ -0,0 +1 @@ +php-webimpress-safe-writer-get-source.sh \ No newline at end of file diff --git a/php-webimpress-safe-writer-get-source.sh b/php-webimpress-safe-writer-get-source.sh index b2ac62b..4a51e05 100755 --- a/php-webimpress-safe-writer-get-source.sh +++ b/php-webimpress-safe-writer-get-source.sh @@ -55,6 +55,7 @@ pushd $TEMP_DIR pushd $GIT_DIR print "Checking out commit..." $GIT checkout $GIT_COMMIT + cp composer.json ${SPEC_DIR}/composer.json popd TAR_DIR=${GIT_NAME}-${GIT_COMMIT} diff --git a/php-webimpress-safe-writer.spec b/php-webimpress-safe-writer.spec index 3f2e70d..3b524a9 100644 --- a/php-webimpress-safe-writer.spec +++ b/php-webimpress-safe-writer.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-webimpress-safe-writer, from: # # Fedora spec file for php-webimpress-safe-writer # @@ -102,7 +103,7 @@ sed 's/function testMultipleWriters/function SKIP_testMultipleWriters/' \ : Upstream tests RETURN_CODE=0 PHPUNIT=$(which phpunit8) -for PHP_EXEC in php php70 php71 php72 php73 php74; do +for PHP_EXEC in php php72 php73 php74; do if [ "php" == "$PHP_EXEC" ] || which $PHP_EXEC; then $PHP_EXEC $PHPUNIT --verbose \ --bootstrap %{buildroot}%{phpdir}/Webimpress/SafeWriter/autoload.php \ -- cgit