diff --git a/.gitlab-ci-files/test.yml b/.gitlab-ci-files/test.yml index de254a7..5b65f11 100644 --- a/.gitlab-ci-files/test.yml +++ b/.gitlab-ci-files/test.yml @@ -36,6 +36,7 @@ debian11-test: - debian11-package script: - pwd + - apt update - apt install -y ./build/*.deb - cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi - composer install --dev diff --git a/Makefile b/Makefile index 8754e8c..9e70daf 100644 --- a/Makefile +++ b/Makefile @@ -82,14 +82,14 @@ deb-only: fakeroot alien -g -k --scripts $(OUTPUT_DIR)/rpmbuild/tmp.rpm rm -r $(OUTPUT_DIR)/rpmbuild rm -rf $(OUTPUT_DIR)/*.orig - sed -i 's/Depends:.*/Depends: $${shlibs:Depends}, php, php-xml, php-pdo, php-gd, php-redis, php-mysql, php-mbstring, php-sqlite3/g' $(OUTPUT_DIR)/bc-flexisip-account-manager*/debian/control + sed -i 's/Depends:.*/Depends: $${shlibs:Depends}, php (>= 8.0), php-xml, php-pdo, php-gd, php-redis, php-mysql, php-mbstring, php-sqlite3/g' $(OUTPUT_DIR)/bc-flexisip-account-manager*/debian/control cd `ls -rt $(OUTPUT_DIR) | tail -1` && dpkg-buildpackage --no-sign @echo "๐Ÿ“ฆโœ… DEB Package Created" @echo "๐Ÿงน Cleanup" ls -d */ | cut -f1 -d'/' | grep bc-flexisip-account-manager | xargs rm -rf - ls bc-flexisip-account-manager* | grep -v deb | xargs rm + ls bc-flexisip-account-manager* | grep -v "\.deb" | xargs rm mv *.deb build/. diff --git a/flexisip-account-manager.spec b/flexisip-account-manager.spec index 98e3d5e..4b495f4 100644 --- a/flexisip-account-manager.spec +++ b/flexisip-account-manager.spec @@ -33,7 +33,7 @@ License: GPL URL: http://www.linphone.org Source0: flexisip-account-manager.tar.gz -Requires: php php-gd php-xmlrpc php-pdo php-redis php-mysqlnd php-mbstring +Requires: php >= 8.0, php-gd, php-xmlrpc, php-pdo, php-redis, php-mysqlnd, php-mbstring %description PHP server for Linphone and Flexisip providing module for account creation.