From c3dd4826eb141fff67df687d5d2246dd52dc214ebdb4a79de654cb555aea0c17 Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Tue, 6 Jul 2021 18:23:14 +0000 Subject: [PATCH 1/3] Accepting request 904402 from home:stroeder:network Update to 22.0.0 OBS-URL: https://build.opensuse.org/request/show/904402 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=151 --- nextcloud-21.0.3.tar.bz2 | 3 --- nextcloud-22.0.0.tar.bz2 | 3 +++ nextcloud.changes | 22 ++++++++++++++++++++++ nextcloud.spec | 14 +++++++------- 4 files changed, 32 insertions(+), 10 deletions(-) delete mode 100644 nextcloud-21.0.3.tar.bz2 create mode 100644 nextcloud-22.0.0.tar.bz2 diff --git a/nextcloud-21.0.3.tar.bz2 b/nextcloud-21.0.3.tar.bz2 deleted file mode 100644 index fa39895..0000000 --- a/nextcloud-21.0.3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8adcd175c7a70c33332586fa9ce36d03ba02d1df5d4c334d1210201d3fb953ee -size 129433656 diff --git a/nextcloud-22.0.0.tar.bz2 b/nextcloud-22.0.0.tar.bz2 new file mode 100644 index 0000000..e396b03 --- /dev/null +++ b/nextcloud-22.0.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3911d3754c37aca7c9b5f3b2b37513c0f2b5bb979af00816c1117b1eedbc5d7a +size 144386509 diff --git a/nextcloud.changes b/nextcloud.changes index 969e654..8ff825a 100644 --- a/nextcloud.changes +++ b/nextcloud.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Tue Jul 6 14:22:09 UTC 2021 - Michael Ströder + +- Update to 22.0.0 + * User-defined groups with Circles that makes it easier to manage teams + where you can share files or assign tasks to circles, or create chat + rooms for a circle + * Integrated chat and task management where you can simply share a deck + card into a chat room or turn a chat message into a task + * Easy approval workflow, where an administrator can define a new + approval flow in the settings and users can, on a document, request + approval + * Getting your document signatures easy with integrated PDF signing with + DocuSign, EIDEasy, and LibreSign + * Integrated knowledge management Nextcloud puts knowledge available to + everyone at a moments' notice, providing easy search, sharing, and + portable access + * Groupware improvements bringing a trash bin feature in Calendar, + resource booking to facilitate the handling of resources in + organizations. Nextcloud Mail features improved threading, email tagging, + and support for Sieve filtering + ------------------------------------------------------------------- Thu Jul 1 18:34:13 UTC 2021 - ecsos diff --git a/nextcloud.spec b/nextcloud.spec index c9781da..debd394 100644 --- a/nextcloud.spec +++ b/nextcloud.spec @@ -47,7 +47,7 @@ %endif Name: nextcloud -Version: 21.0.3 +Version: 22.0.0 Release: 0 Summary: File hosting service License: AGPL-3.0-only @@ -121,8 +121,8 @@ Recommends: php-gmp # For enhanced server performance: Recommends: php-APCu Recommends: php7-bcmath -# For preview generation: -Recommends: php-imagick +# For preview generation: +Recommends: php-imagick Recommends: php-ffmpeg #Recommends: libreoffice # For command line processing: @@ -151,10 +151,10 @@ cp %{SOURCE2} . cp %{SOURCE3} . cp %{SOURCE4} . cp %{SOURCE5} . -### Don't remove git files!! +### Don't remove git files!! ### git files should not be removed, otherwise nextcloud rise up integrity check failure in some situations. ### -## delete unneeded gitfiles +## delete unneeded gitfiles #rm -r `find . -name ".gitignore" -or -name ".gitkeep" -or -name ".github"` ## remove entries in signature.json to prevent integrity check failure #find . -iname signature.json \ @@ -212,9 +212,9 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-cron # https://github.com/nextcloud # # We don't do this for new installs. Only for updates. -# If the first argument to pre is 1, the RPM operation is an initial installation. If the argument is 2, +# If the first argument to pre is 1, the RPM operation is an initial installation. If the argument is 2, # the operation is an upgrade from an existing version to a new one. -if [ $1 -gt 1 -a ! -s %{statedir}/apache_stopped_during_nextcloud_install ]; then +if [ $1 -gt 1 -a ! -s %{statedir}/apache_stopped_during_nextcloud_install ]; then echo "%{name} update: Checking for running Apache" # FIXME: this above should make it idempotent -- a requirement with openSUSE. # it does not work. From 70d616bf75f3bb97af73c327ec8af2a013d49fd9d715e592c3515ca3d5a9f31c Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Tue, 6 Jul 2021 18:23:47 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=152 --- nextcloud.changes | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nextcloud.changes b/nextcloud.changes index 8ff825a..795a4b3 100644 --- a/nextcloud.changes +++ b/nextcloud.changes @@ -2,20 +2,20 @@ Tue Jul 6 14:22:09 UTC 2021 - Michael Ströder - Update to 22.0.0 - * User-defined groups with Circles that makes it easier to manage teams + - User-defined groups with Circles that makes it easier to manage teams where you can share files or assign tasks to circles, or create chat rooms for a circle - * Integrated chat and task management where you can simply share a deck + - Integrated chat and task management where you can simply share a deck card into a chat room or turn a chat message into a task - * Easy approval workflow, where an administrator can define a new + - Easy approval workflow, where an administrator can define a new approval flow in the settings and users can, on a document, request approval - * Getting your document signatures easy with integrated PDF signing with + - Getting your document signatures easy with integrated PDF signing with DocuSign, EIDEasy, and LibreSign - * Integrated knowledge management Nextcloud puts knowledge available to + - Integrated knowledge management Nextcloud puts knowledge available to everyone at a moments' notice, providing easy search, sharing, and portable access - * Groupware improvements bringing a trash bin feature in Calendar, + - Groupware improvements bringing a trash bin feature in Calendar, resource booking to facilitate the handling of resources in organizations. Nextcloud Mail features improved threading, email tagging, and support for Sieve filtering From 8c100659944c873d8e61c784f17e7499e4621137ce3101ef9ea121fcbbbefa9b Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Tue, 6 Jul 2021 20:48:03 +0000 Subject: [PATCH 3/3] Accepting request 904435 from home:ecsos:server - Fix some scriptlet and their output text. OBS-URL: https://build.opensuse.org/request/show/904435 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=153 --- nextcloud.changes | 5 +++++ nextcloud.spec | 48 ++++++++++++++++++++--------------------------- 2 files changed, 25 insertions(+), 28 deletions(-) diff --git a/nextcloud.changes b/nextcloud.changes index 795a4b3..fc5247c 100644 --- a/nextcloud.changes +++ b/nextcloud.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 6 19:58:39 UTC 2021 - ecsos + +- Fix some scriptlet and their output text. + ------------------------------------------------------------------- Tue Jul 6 14:22:09 UTC 2021 - Michael Ströder diff --git a/nextcloud.spec b/nextcloud.spec index debd394..fc9d721 100644 --- a/nextcloud.spec +++ b/nextcloud.spec @@ -36,14 +36,14 @@ %endif %endif -%define nc_user %{apache_user} -%define nc_dir %{apache_myserverroot}/%{name} -%define ocphp_bin /usr/bin +%define nc_user %{apache_user} +%define nc_dir %{apache_myserverroot}/%{name} +%define ocphp_bin /usr/bin %if 0%{?rhel} == 600 || 0%{?rhel_version} == 600 || 0%{?centos_version} == 600 -%define statedir /var/run +%define statedir /var/run %else -%define statedir /run +%define statedir /run %endif Name: nextcloud @@ -208,6 +208,7 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-cron %pre %service_add_pre %{name}-cron.timer %{name}-cron.service + # avoid fatal php errors, while we are changing files # https://github.com/nextcloud # @@ -215,35 +216,30 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-cron # If the first argument to pre is 1, the RPM operation is an initial installation. If the argument is 2, # the operation is an upgrade from an existing version to a new one. if [ $1 -gt 1 -a ! -s %{statedir}/apache_stopped_during_nextcloud_install ]; then - echo "%{name} update: Checking for running Apache" + echo "o %{name} pre-install: Checking for running Apache" # FIXME: this above should make it idempotent -- a requirement with openSUSE. # it does not work. %if 0%{?suse_version} && 0 -%if 0%{?suse_version} <= 1110 - rcapache2 status | grep running > %{statedir}/apache_stopped_during_nextcloud_install - rcapache2 stop -%else service apache2 status | grep running > %{statedir}/apache_stopped_during_nextcloud_install service apache2 stop %endif -%endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} service httpd status | grep running > %{statedir}/apache_stopped_during_nextcloud_install service httpd stop %endif fi if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then - echo "%{name} pre-install: Stopping Apache" + echo "o %{name} pre-install: Stopping Apache" fi if [ $1 -eq 1 ]; then - echo "%{name}-server: First install starting" + echo "o %{name} pre-install: First install starting" else - echo "%{name}-server: Upgrade starting ..." + echo "o %{name} pre-install: Upgrade starting ..." fi # https://github.com/nextcloud if [ -x %{ocphp_bin}/php -a -f %{nc_dir}/occ ]; then - echo "%{name}: occ maintenance:mode --on" + echo "o %{name} pre-install: occ maintenance:mode --on" su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --on" || true echo yes > %{statedir}/occ_maintenance_mode_during_nextcloud_install fi @@ -262,15 +258,11 @@ a2enmod php5 fi if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then - echo "%{name} post-install: Restarting Apache" + echo "o %{name} post-install: Restarting Apache" ## If we stopped apache in pre section, we now should restart. -- but *ONLY* then! ## Maybe delegate that task to occ upgrade? They also need to handle this, somehow. %if 0%{?suse_version} -%if 0%{?suse_version} <= 1310 - rcapache2 start -%else - rcapache2 restart apache2.service -%endif + service apache2 start %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} service httpd start @@ -278,18 +270,18 @@ if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then fi if [ -s %{statedir}/occ_maintenance_mode_during_nextcloud_install ]; then -echo "%{name}: occ maintenance:repair (fix possible errors)" +echo "o %{name} post-install: occ maintenance:repair (fix possible errors)" su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:repair" || true -echo "%{name}: occ db:add-missing-* (add missing db things)" +echo "o %{name} post-install: occ db:add-missing-* (add missing db things)" su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mimetype:update-db" || true su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-columns" || true su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-indices" || true su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-primary-keys" || true -echo "%{name}: occ update apps" +echo "o %{name} post-install: occ update apps" su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ app:update --all" || true -echo "%{name}: occ upgrade" +echo "o %{name} post-install: occ upgrade" su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ upgrade" || true -echo "%{name}: occ maintenance:mode --off" +echo "o %{name} post-install: occ maintenance:mode --off" su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --off" || true fi @@ -297,9 +289,9 @@ rm -f %{statedir}/apache_stopped_during_nextcloud_install rm -f %{statedir}/occ_maintenance_mode_during_nextcloud_install if [ $1 -eq 1 ]; then - echo "%{name}-server: First install complete" + echo "o %{name} post-install: First install complete" else - echo "%{name}-server: Upgrade complete" + echo "o %{name} post-install: Upgrade complete" fi %preun