diff --git a/nextcloud.spec b/nextcloud.spec index 492d018..2b4260b 100644 --- a/nextcloud.spec +++ b/nextcloud.spec @@ -5,7 +5,7 @@ %endif Name: nextcloud -Version: 33.0.3 +Version: 34.0.3 Release: %autorelease Summary: Private file sync and share server # Automatically converted from old format: AGPLv3+ and MIT and BSD and ASL 2.0 and WTFPL and CC-BY-SA and GPLv3+ and Adobe - review is highly recommended. @@ -47,7 +47,7 @@ BuildArch: noarch # Set this to the minimum supported php version Nextcloud will run on # Exists to prevent accidental building on distros with outdated php's -BuildRequires: php(language) >= 8.1 +BuildRequires: php(language) >= 8.2 BuildRequires: systemd-rpm-macros BuildRequires: sed @@ -191,7 +191,12 @@ find . -name .gitignore -type f -delete -print find . -name .github -type d -prune -exec rm -r {} \; -print # fix CLI upgrade advice on splash screen -sed -i -e 's#\./\(occ upgrade\)#sudo -u apache php /usr/share/nextcloud/\1#' dist/9396-9396.js.map +if ! file=$(grep -l 'occ upgrade' dist/*.map); then + echo "Could not find the occ upgrade instructions in dist/*.map" + exit 1 +fi +echo "Updating occ upgrade instructions in $file" +sed -i -e 's#\./\(occ upgrade\)#sudo -u apache php /usr/share/nextcloud/\1#' $file # prepare package doc cp %{SOURCE300} README.%{distro} diff --git a/sources b/sources index 2d982a8..95997de 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nextcloud-33.0.3.tar.bz2) = c41aea23c0b45acfca8bf16101acb4c3559ab6179ac75f668a3c8bb7f3d3029fb539278e1e0e49e405fc0dfa905b15dfa58ec52866f9fd3e57aed07f65d33f66 +SHA512 (nextcloud-34.0.3.tar.bz2) = 3463dbbdeae5275a0791b115cf86aed41c5a138fdd19bb32ec12837a6698106b6f172e24fb1264a2d4e20b2b805bcf7841b2338e4e02f1fd5394fbed830cc695