From fc540ae91e3f136e569047a9d7a62609b2ad517932dd79f7c1ec630ad5fd24fc Mon Sep 17 00:00:00 2001 From: Eric Schirra Date: Mon, 22 May 2017 19:16:16 +0000 Subject: [PATCH] Accepting request 497378 from home:ecsos:server minimal correction for update to 12.0.0 OBS-URL: https://build.opensuse.org/request/show/497378 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=16 --- README.SUSE | 14 ++++++++++++++ nextcloud.spec | 9 ++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 README.SUSE diff --git a/README.SUSE b/README.SUSE new file mode 100644 index 0000000..3f6252f --- /dev/null +++ b/README.SUSE @@ -0,0 +1,14 @@ +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 + diff --git a/nextcloud.spec b/nextcloud.spec index 91a7e7e..c820520 100644 --- a/nextcloud.spec +++ b/nextcloud.spec @@ -59,7 +59,8 @@ Source0: https://download.nextcloud.com/server/releases/%{name}-%{version 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,8 +118,10 @@ hosting services and using them. cp %{SOURCE2} . cp %{SOURCE3} . cp %{SOURCE4} . +cp %{SOURCE5} . #%%patch0 -p0 -rm `find . -name ".gitignore" -or -name ".gitkeep"` +# git files should not be removed, otherwise nextcloud rise up ntegrity check failure. +#rm `find . -name ".gitignore" -or -name ".gitkeep"` %build @@ -236,7 +239,7 @@ rm -f %{statedir}/occ_maintenance_mode_during_nextcloud_install %defattr(644,root,root,755) %exclude %{apache_serverroot}/%{name}/README %exclude %{apache_serverroot}/%{name}/README.SELinux -%doc README README.SELinux +%doc README README.SUSE README.SELinux %{apache_serverroot}/%{name} %attr(-,wwwrun,www) %{apache_serverroot}/%{name}/occ %config(noreplace) %{apache_confdir}/nextcloud.conf