forked from pool/pgadmin4
- Fix shebang of pgadmin4-desktop to use python3.11 - New pgadmin4-cloud subpackage that includes now the cloud dependencies and make the pgadmin4-cloud package optional so it's now optional to depend on the azure/aws/google python packages. - Add patch to let pgadmin4 work without cloud support: * make-cloud-packages-optional.patch - Add a optipng script that actually uses pngcrush to compress png images so we don't depend on optipng which is not available in SLE. - Fix pgadmin4-desktop to use a timer instead of threads. It seems there's an issue the way python threads were used with Qt5 that made the script fail to update the systray menu when pgadmin was started. - Add missing python-typer dependency - Add pgadmin4-user.conf file to create the pgadmin user/group using systemd with the new system-user-pgadmin package. - Replace yarn (which is not available in SLE) with local-npm-registry. - Add node_modules service and node_modules.obscpio / node_modules.spec.inc source files which replace vendor.tar.xz that is now removed. - package_deps.patch - dependency fixes - package_git_local.patch - dependency fixes that are needed *after* generating package-lock.json since only registry-supplied packages are available locally. - Update update-vendor.sh script. OBS-URL: https://build.opensuse.org/request/show/1145351 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgadmin4?expand=0&rev=65
33 lines
806 B
Bash
33 lines
806 B
Bash
#!/bin/bash
|
|
#
|
|
# This script updates the vendor source package.
|
|
# It should be run in the developer system in each pgadmin version update
|
|
#
|
|
# -- Antonio Larrosa <alarrosa@suse.com>
|
|
#
|
|
|
|
version=`grep ^Version: *.spec | sed -e "s/^Version: *//"`
|
|
if [ -d pgadmin4-$version ]; then
|
|
echo "The directory pgadmin4-$version already exists. Please remove it in order to recreate it from scratch by running"
|
|
echo "rm -Rf pgadmin4-$version"
|
|
exit 1
|
|
fi
|
|
|
|
quilt setup pgadmin4.spec
|
|
pushd pgadmin4-$version/web
|
|
quilt push -a
|
|
# remove the last, which is fixups
|
|
quilt pop
|
|
|
|
echo "Generating new package-lock.json ..."
|
|
npm i --package-lock-only --legacy-peer-deps
|
|
mv package-lock.json ../..
|
|
popd
|
|
|
|
echo "Fetching updated dependencies ..."
|
|
osc service mr
|
|
|
|
echo "Removed old deps:"
|
|
find -maxdepth 1 -name \*.tgz -print -delete
|
|
|