mirror of
https://src.fedoraproject.org/rpms/nextcloud.git
synced 2025-01-10 10:51:54 +01:00
add epel compatibility
This commit is contained in:
parent
cda4bc06db
commit
3461401d17
@ -12,7 +12,7 @@ If not, make sure your webserver is running properly.
|
|||||||
|
|
||||||
Webserver
|
Webserver
|
||||||
---------
|
---------
|
||||||
Currently nextcloud in Fedora supports httpd (Apache) and nginx. You must install
|
Currently nextcloud in Fedora/EPEL supports httpd (Apache) and nginx. You must install
|
||||||
at least one webserver subpackage (nextcloud-<webserver>). These packages
|
at least one webserver subpackage (nextcloud-<webserver>). These packages
|
||||||
include additional configuration files for the webservers. Remote access is
|
include additional configuration files for the webservers. Remote access is
|
||||||
disabled by default on httpd. To enable access from any host for Apache **AFTER** you
|
disabled by default on httpd. To enable access from any host for Apache **AFTER** you
|
||||||
@ -67,7 +67,7 @@ ownership and SELinux context attributes.
|
|||||||
Logging
|
Logging
|
||||||
-------
|
-------
|
||||||
As specified by the configuration file, nextcloud sends messages to the system
|
As specified by the configuration file, nextcloud sends messages to the system
|
||||||
logger, which means in a standard Fedora configuration it will log to the
|
logger, which means in a standard Fedora/EPEL configuration it will log to the
|
||||||
systemd journal: try "journalctl -b -t Nextcloud". You can also change the
|
systemd journal: try "journalctl -b -t Nextcloud". You can also change the
|
||||||
loglevel or switch to the built-in log mechanism of nextcloud.
|
loglevel or switch to the built-in log mechanism of nextcloud.
|
||||||
|
|
||||||
@ -115,4 +115,4 @@ systemctl enable --now nextcloud-cron.timer
|
|||||||
Migration from owncloud
|
Migration from owncloud
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
For detailed instructions on this please read MIGRATION.fedora
|
For detailed instructions on this please read MIGRATION.distro
|
||||||
|
@ -13,6 +13,9 @@ Alias /nextcloud/apps-appstore /var/lib/nextcloud/apps
|
|||||||
Alias /nextcloud/assets /var/lib/nextcloud/assets
|
Alias /nextcloud/assets /var/lib/nextcloud/assets
|
||||||
Alias /nextcloud /usr/share/nextcloud
|
Alias /nextcloud /usr/share/nextcloud
|
||||||
|
|
||||||
|
# This must be set explicitly in some environments, such as el9
|
||||||
|
AddType text/javascript .mjs
|
||||||
|
|
||||||
# Allows compliant CalDAV / CardDAV clients to be configured using only
|
# Allows compliant CalDAV / CardDAV clients to be configured using only
|
||||||
# the domain name. For more details see # http://tools.ietf.org/html/rfc6764
|
# the domain name. For more details see # http://tools.ietf.org/html/rfc6764
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
%if 0%{?fedora}
|
||||||
|
%global distro fedora
|
||||||
|
%else
|
||||||
|
%global distro epel
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: nextcloud
|
Name: nextcloud
|
||||||
Version: 28.0.6
|
Version: 28.0.6
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
@ -38,12 +44,8 @@ Patch0: 0000-disable-update-version-check.patch
|
|||||||
Patch1: 0001-mangle-shebang.patch
|
Patch1: 0001-mangle-shebang.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# For the systemd macros
|
|
||||||
%if 0%{?fedora} > 29
|
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
%else
|
|
||||||
BuildRequires: systemd
|
|
||||||
%endif
|
|
||||||
# expand pear macros on install
|
# expand pear macros on install
|
||||||
BuildRequires: php-pear
|
BuildRequires: php-pear
|
||||||
|
|
||||||
@ -305,10 +307,13 @@ find . -name .github -type d -prune -exec rm -r {} \; -print
|
|||||||
sed -i -e 's#./\(occ upgrade\)#sudo -u apache php /usr/share/nextcloud/\1#' core/templates/update.admin.php
|
sed -i -e 's#./\(occ upgrade\)#sudo -u apache php /usr/share/nextcloud/\1#' core/templates/update.admin.php
|
||||||
|
|
||||||
# prepare package doc
|
# prepare package doc
|
||||||
cp %{SOURCE300} README.fedora
|
cp %{SOURCE300} README.%{distro}
|
||||||
cp %{SOURCE301} README.mysql
|
cp %{SOURCE301} README.mysql
|
||||||
cp %{SOURCE302} README.postgresql
|
cp %{SOURCE302} README.postgresql
|
||||||
cp %{SOURCE303} MIGRATION.fedora
|
cp %{SOURCE303} MIGRATION.%{distro}
|
||||||
|
|
||||||
|
# point the reader to the correct README filename
|
||||||
|
sed -i 's/distro/%{distro}/g' README.%{distro}
|
||||||
|
|
||||||
# Locate license files and put them sensibly in place
|
# Locate license files and put them sensibly in place
|
||||||
# get rid of all composer licenses
|
# get rid of all composer licenses
|
||||||
@ -421,7 +426,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS README.fedora MIGRATION.fedora config/config.sample.php
|
%doc AUTHORS README.%{distro} MIGRATION.%{distro} config/config.sample.php
|
||||||
%license *-LICENSE
|
%license *-LICENSE
|
||||||
%dir %attr(-,apache,apache) %{_sysconfdir}/%{name}
|
%dir %attr(-,apache,apache) %{_sysconfdir}/%{name}
|
||||||
# contains sensitive data (dbpassword, passwordsalt)
|
# contains sensitive data (dbpassword, passwordsalt)
|
||||||
|
Loading…
Reference in New Issue
Block a user