Hello community,

here is the log from the commit of package nextcloud for openSUSE:Factory 
checked in at 2019-11-07 23:21:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nextcloud (Old)
 and      /work/SRC/openSUSE:Factory/.nextcloud.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nextcloud"

Thu Nov  7 23:21:29 2019 rev:35 rq:746388 version:17.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/nextcloud/nextcloud.changes      2019-10-02 
12:00:37.878764794 +0200
+++ /work/SRC/openSUSE:Factory/.nextcloud.new.2990/nextcloud.changes    
2019-11-07 23:21:32.596859238 +0100
@@ -1,0 +2,11 @@
+Thu Nov  7 17:21:19 UTC 2019 - [email protected]
+
+- Update to 17.0.1
+  - No changelog from upstream.
+
+-------------------------------------------------------------------
+Wed Oct  2 10:45:46 UTC 2019 - [email protected]
+
+- Add missing CronJob for Nextcloud.
+
+-------------------------------------------------------------------

Old:
----
  nextcloud-17.0.0.tar.bz2

New:
----
  nextcloud-17.0.1.tar.bz2
  nextcloud-cron
  nextcloud-cron.service
  nextcloud-cron.timer

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nextcloud.spec ++++++
--- /var/tmp/diff_new_pack.hqv8ro/_old  2019-11-07 23:21:34.824861627 +0100
+++ /var/tmp/diff_new_pack.hqv8ro/_new  2019-11-07 23:21:34.828861632 +0100
@@ -49,7 +49,7 @@
 %endif
 
 Name:           nextcloud
-Version:        17.0.0
+Version:        17.0.1
 Release:        0
 Summary:        File hosting service
 License:        AGPL-3.0-only
@@ -61,17 +61,22 @@
 Source3:        README.SELinux
 Source4:        README.SUSE
 Source5:        robots.txt
+Source10:       %{name}-cron
+Source11:       %{name}-cron.service
+Source12:       %{name}-cron.timer
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
 %if 0%{?suse_version}
 BuildRequires:  apache2 >= 2.4
+BuildRequires:  cron
 %if 0%{?suse_version} > 1020
 BuildRequires:  fdupes
 %endif
 BuildRequires:  unzip
 %endif
 #
+Requires:       cron
 Requires:       curl
 Requires:       libxml2-2
 Requires:       mysql
@@ -110,6 +115,7 @@
 Requires:       php-zip
 Requires:       php-zlib
 Recommends:     sqlite3
+%{?systemd_requires}
 %endif
 # Database connectors:
 Recommends:     php-sqlite
@@ -184,7 +190,16 @@
 %fdupes -s $RPM_BUILD_ROOT/%{apache_serverroot}/%{name}
 %endif
 
+# CronJob
+install -d -m 0755 %{buildroot}%{_sysconfdir}/cron.d
+install -D -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/cron.d/%{name}
+install -D -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-cron.service
+install -D -m 0644 %{SOURCE12} %{buildroot}%{_unitdir}/%{name}-cron.timer
+mkdir -p %{buildroot}%{_sbindir}
+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
 #
@@ -226,6 +241,7 @@
 fi
 
 %post
+%service_add_post %{name}-cron.timer %{name}-cron.service
 if [ $1 -eq 1 ]; then
     echo "%{name} First install complete"
 else
@@ -272,12 +288,22 @@
 rm -f %{statedir}/apache_stopped_during_nextcloud_install
 rm -f %{statedir}/occ_maintenance_mode_during_nextcloud_install
 
+%preun
+%service_del_preun %{name}-cron.timer %{name}-cron.service
+
+%postun
+%service_del_postun %{name}-cron.timer %{name}-cron.service
+
 %files
 %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.SUSE README.SELinux
+%config(noreplace) %{_sysconfdir}/cron.d/%{name}
+%{_sbindir}/rc%{name}-cron
+%{_unitdir}/%{name}-cron.service
+%{_unitdir}/%{name}-cron.timer
 %{apache_serverroot}/%{name}
 %attr(-,wwwrun,www) %{apache_serverroot}/%{name}/occ
 %config(noreplace) %{apache_confdir}/nextcloud.conf

++++++ nextcloud-17.0.0.tar.bz2 -> nextcloud-17.0.1.tar.bz2 ++++++
/work/SRC/openSUSE:Factory/nextcloud/nextcloud-17.0.0.tar.bz2 
/work/SRC/openSUSE:Factory/.nextcloud.new.2990/nextcloud-17.0.1.tar.bz2 differ: 
char 11, line 1

++++++ nextcloud-cron ++++++
# 
# Nextcloud CronJob every 15 minutes.
#
# Uncomment to enable it.

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin

#*/15 * * * * wwwrun /usr/bin/php -f /srv/www/htdocs/nextcloud/cron.php 
/dev/null 2>&1
++++++ nextcloud-cron.service ++++++
[Unit]
Description=Nextcloud CronJob

[Service]
User=wwwrun
ExecStart=/usr/bin/php -f /srv/www/htdocs/nextcloud/cron.php

[Install]
WantedBy=basic.target
++++++ nextcloud-cron.timer ++++++
[Unit]
Description=Nextcloud CronJob - run every 5 minutes

[Timer]
OnBootSec=5min
OnUnitActiveSec=5min
Unit=nextcloud-cron.service

[Install]
WantedBy=timers.target

Reply via email to