Fix #67 Requires PHP 8.0 minimum for the DEB and RPM package

Fix a grep selector in the cleanup lines
Update the Debian repositories before installing the deb package
This commit is contained in:
Timothée Jaussoin 2023-01-18 15:57:05 +01:00
parent 879fa89d1e
commit b177e03b19
3 changed files with 4 additions and 3 deletions

View file

@ -36,6 +36,7 @@ debian11-test:
- debian11-package - debian11-package
script: script:
- pwd - pwd
- apt update
- apt install -y ./build/*.deb - apt install -y ./build/*.deb
- cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi - cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi
- composer install --dev - composer install --dev

View file

@ -82,14 +82,14 @@ deb-only:
fakeroot alien -g -k --scripts $(OUTPUT_DIR)/rpmbuild/tmp.rpm fakeroot alien -g -k --scripts $(OUTPUT_DIR)/rpmbuild/tmp.rpm
rm -r $(OUTPUT_DIR)/rpmbuild rm -r $(OUTPUT_DIR)/rpmbuild
rm -rf $(OUTPUT_DIR)/*.orig 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 cd `ls -rt $(OUTPUT_DIR) | tail -1` && dpkg-buildpackage --no-sign
@echo "📦✅ DEB Package Created" @echo "📦✅ DEB Package Created"
@echo "🧹 Cleanup" @echo "🧹 Cleanup"
ls -d */ | cut -f1 -d'/' | grep bc-flexisip-account-manager | xargs rm -rf 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/. mv *.deb build/.

View file

@ -33,7 +33,7 @@ License: GPL
URL: http://www.linphone.org URL: http://www.linphone.org
Source0: flexisip-account-manager.tar.gz 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 %description
PHP server for Linphone and Flexisip providing module for account creation. PHP server for Linphone and Flexisip providing module for account creation.