Hello community, here is the log from the commit of package nextcloud for openSUSE:Factory checked in at 2017-07-05 23:56:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nextcloud (Old) and /work/SRC/openSUSE:Factory/.nextcloud.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nextcloud" Wed Jul 5 23:56:58 2017 rev:3 rq:498187 version:12.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/nextcloud/nextcloud.changes 2017-04-26 21:44:24.245903620 +0200 +++ /work/SRC/openSUSE:Factory/.nextcloud.new/nextcloud.changes 2017-07-05 23:57:00.936258059 +0200 @@ -1,0 +2,12 @@ +Mon May 22 15:28:21 UTC 2017 - [email protected] + +- upstream update to version 12.0.0 + no changelog from upstream at this time + See https://github.com/nextcloud/server/issues?q=is%3Aissue+milestone%3A%22Nextcloud+12.0%22+is%3Aclosed + +------------------------------------------------------------------- +Fri Apr 28 22:46:46 UTC 2017 - [email protected] + +- fix boo#1036756: package security issue + +------------------------------------------------------------------- Old: ---- nextcloud-11.0.3.tar.bz2 New: ---- README.SUSE nextcloud-12.0.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nextcloud.spec ++++++ --- /var/tmp/diff_new_pack.uzIi0v/_old 2017-07-05 23:57:02.568028196 +0200 +++ /var/tmp/diff_new_pack.uzIi0v/_new 2017-07-05 23:57:02.572027633 +0200 @@ -48,7 +48,7 @@ %define statedir /run %endif Name: nextcloud -%define base_version 11.0.3 +%define base_version 12.0.0 Version: %{base_version} Release: 0 Summary: File hosting service @@ -59,7 +59,8 @@ Source1: apache_secure_data Source2: README Source3: README.SELinux -Source4: robots.txt +Source4: README.SUSE +Source5: robots.txt BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -117,7 +118,14 @@ cp %{SOURCE2} . cp %{SOURCE3} . cp %{SOURCE4} . -#%%patch0 -p0 +cp %{SOURCE5} . +# 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 \ + -exec sed -i "/\/.gitignore\": ./d" "{}" \; \ + -exec sed -i "/\/.gitkeep\": ./d" "{}" \; \ + -exec sed -i "/\/.github\": ./d" "{}" \; %build @@ -157,25 +165,25 @@ # 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, # the operation is an upgrade from an existing version to a new one. -if [ $1 -gt 1 -a ! -s /tmp/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. %if 0%{?suse_version} && 0 %if 0%{?suse_version} <= 1110 - rcapache2 status | grep running > /tmp/apache_stopped_during_nextcloud_install + rcapache2 status | grep running > %{statedir}/apache_stopped_during_nextcloud_install rcapache2 stop %else - service apache2 status | grep running > /tmp/apache_stopped_during_nextcloud_install + 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 > /tmp/apache_stopped_during_nextcloud_install + service httpd status | grep running > %{statedir}/apache_stopped_during_nextcloud_install service httpd stop %endif fi -if [ -s /tmp/apache_stopped_during_nextcloud_install ]; then +if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then echo "%{name} pre-install: Stopping Apache" fi @@ -205,7 +213,7 @@ perl -pani -e 's@^(APACHE_MODULES=")@${1}php5 @' /etc/sysconfig/apache2 %endif -if [ -s /tmp/apache_stopped_during_nextcloud_install ]; then +if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then echo "%{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. @@ -228,14 +236,23 @@ su %{oc_user} -s /bin/sh -c "cd %{oc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --off" || true fi -rm -f /tmp/apache_stopped_during_nextcloud_install +rm -f %{statedir}/apache_stopped_during_nextcloud_install +rm -f %{statedir}/occ_maintenance_mode_during_nextcloud_install %files -%defattr(-,wwwrun,www) +%defattr(644,root,root,755) %exclude %{apache_serverroot}/%{name}/README +%exclude %{apache_serverroot}/%{name}/README.SUSE %exclude %{apache_serverroot}/%{name}/README.SELinux -%doc README README.SELinux +%doc README README.SUSE README.SELinux %{apache_serverroot}/%{name} -%config %attr(0644,root,root) %{apache_confdir}/nextcloud.conf +%attr(-,wwwrun,www) %{apache_serverroot}/%{name}/occ +%config(noreplace) %{apache_confdir}/nextcloud.conf +%config(noreplace) %{apache_serverroot}/%{name}/.user.ini +%defattr(664,wwwrun,www,775) +%{apache_serverroot}/%{name}/apps +%defattr(660,wwwrun,www,770) +%{apache_serverroot}/%{name}/config +%{apache_serverroot}/%{name}/data %changelog ++++++ README.SUSE ++++++ To speed up nextcloud you should enable PHP OPcache The OPcache improves the performance of PHP applications by caching precompiled bytecode. We recommend at least following settings: Put this in this insert in /etc/php5/apache2/php.ini opcache.enable=On opcache.enable_cli=1 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=128 opcache.save_comments=1 opcache.revalidate_freq=1 ++++++ nextcloud-11.0.3.tar.bz2 -> nextcloud-12.0.0.tar.bz2 ++++++ /work/SRC/openSUSE:Factory/nextcloud/nextcloud-11.0.3.tar.bz2 /work/SRC/openSUSE:Factory/.nextcloud.new/nextcloud-12.0.0.tar.bz2 differ: char 11, line 1
