diff --git a/nextcloud.spec b/nextcloud.spec index a218dcb..2b4260b 100644 --- a/nextcloud.spec +++ b/nextcloud.spec @@ -5,7 +5,7 @@ %endif Name: nextcloud -Version: 32.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 @@ -190,8 +190,13 @@ find . -name \*.orig -type f -delete -print find . -name .gitignore -type f -delete -print find . -name .github -type d -prune -exec rm -r {} \; -print -# fix CLI upgrade advise on splash screen -sed -i -e 's#\./\(occ upgrade\)#sudo -u apache php /usr/share/nextcloud/\1#' core/templates/update.admin.php +# fix CLI upgrade advice on splash screen +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 af1201e..95997de 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nextcloud-32.0.3.tar.bz2) = fd06cd687ddfcb0baac2e0b03db690d1b4f9119e28c5cfbd26d911b214240f8273d7a805540afe83f7cc92f1377487c82fe65eb0b22ad9028410652ec55381fb +SHA512 (nextcloud-34.0.3.tar.bz2) = 3463dbbdeae5275a0791b115cf86aed41c5a138fdd19bb32ec12837a6698106b6f172e24fb1264a2d4e20b2b805bcf7841b2338e4e02f1fd5394fbed830cc695