Compare commits
30 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0058a65b3c | ||
|
|
fc983a9abc | ||
|
|
86f2b63ec9 | ||
|
|
ae4cd23307 | ||
|
|
be3824befe | ||
|
|
253a0185f5 | ||
|
|
075d1aa433 | ||
|
|
c183c52f92 | ||
|
|
4ff3725e69 | ||
|
|
20701506f1 | ||
|
|
b2ec7189ca | ||
|
|
5c37d14039 | ||
|
|
d2bcf82735 | ||
|
|
de7020dd06 | ||
|
|
fcbfaefc24 | ||
|
|
39408a9f92 | ||
|
|
ce6c506121 | ||
|
|
54003394ac | ||
|
|
1b90a14f71 | ||
|
|
3631e45797 | ||
|
|
b8baf13448 | ||
|
|
2e56f513d3 | ||
|
|
a3b0eb1ff5 | ||
|
|
583b0b9da0 | ||
|
|
ad3767cb8c | ||
|
|
d299fe9412 | ||
|
|
8e1858a790 | ||
|
|
1d8b9b428d | ||
|
|
f03b42b3d5 | ||
|
|
04aa900e44 |
11 changed files with 368 additions and 246 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,3 +1,3 @@
|
|||
/nextcloud-10.0.3.tar.bz2
|
||||
/nextcloud-10.0.4.tar.bz2
|
||||
/nextcloud-18.0.0.tar.bz2
|
||||
/nextcloud-*.tar.bz2
|
||||
/nextcloud
|
||||
*.pkgtmp
|
||||
|
|
|
|||
20
0000-disable-update-version-check.patch
Normal file
20
0000-disable-update-version-check.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
diff -Naur a/lib/private/Updater.php b/lib/private/Updater.php
|
||||
--- a/lib/private/Updater.php 2020-10-24 10:37:44.000000000 +0200
|
||||
+++ b/lib/private/Updater.php 2020-11-10 10:51:10.511861549 +0100
|
||||
@@ -197,14 +197,11 @@
|
||||
}
|
||||
|
||||
if ($currentVendor === 'nextcloud') {
|
||||
- return isset($allowedPreviousVersions[$currentVendor][$majorMinor])
|
||||
- && (version_compare($oldVersion, $newVersion, '<=') ||
|
||||
- $this->config->getSystemValue('debug', false));
|
||||
+ return true;
|
||||
}
|
||||
|
||||
// Check if the instance can be migrated
|
||||
- return isset($allowedPreviousVersions[$currentVendor][$majorMinor]) ||
|
||||
- isset($allowedPreviousVersions[$currentVendor][$oldVersion]);
|
||||
+ return true;
|
||||
}
|
||||
|
||||
/**
|
||||
9
0001-mangle-shebang.patch
Normal file
9
0001-mangle-shebang.patch
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
diff -Naur a/occ b/occ
|
||||
--- a/occ 2020-10-24 10:37:44.000000000 +0200
|
||||
+++ b/occ 2020-11-10 19:39:56.523178958 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env php
|
||||
+#!/usr/bin/php
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2013 Thomas Müller <thomas.mueller@tmit.eu>
|
||||
11
README.md
Normal file
11
README.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
### Installation, setup & updating
|
||||
|
||||
Nextcloud requires some additional steps after installation/upgrade that are not part of the package update process. After installation/update, visiting your install's website will automatically trigger the internal Nextcloud updater which will take care of these steps. For more details, see this package's documentation files.
|
||||
|
||||
### Other versions
|
||||
|
||||
Nextcloud maintains multiple stable branches at the same time. To install those, check out the [modular nextcloud package](https://src.fedoraproject.org/modules/nextcloud).
|
||||
|
||||
### CentOS/RHEL
|
||||
|
||||
For CentOS/RHEL 8+, nextcloud is available through the [modular repository](https://src.fedoraproject.org/modules/nextcloud). Due to incompatible PHP versions, nextcloud is no longer available for CentOS/RHEL 7 or older.
|
||||
9
gating.yml
Normal file
9
gating.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_stable
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
26
get-bundled-versions.py
Executable file
26
get-bundled-versions.py
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/env python
|
||||
|
||||
import os
|
||||
import json
|
||||
|
||||
for root, dirs, files in os.walk("apps"):
|
||||
for file in files:
|
||||
if file == 'composer.lock':
|
||||
with open(os.path.join(root, file)) as f:
|
||||
lockdata = json.load(f)
|
||||
try:
|
||||
for i in lockdata['packages']:
|
||||
print("Provides: bundled(php-composer(" + i['name'] + ")) = " + i['version'].strip('v'))
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
for root, dirs, files in os.walk("3rdparty"):
|
||||
for file in files:
|
||||
if file == 'composer.lock':
|
||||
with open(os.path.join(root, file)) as f:
|
||||
lockdata = json.load(f)
|
||||
try:
|
||||
for i in lockdata['packages']:
|
||||
print("Provides: bundled(php-composer(" + i['name'] + ")) = " + i['version'].strip('v'))
|
||||
except KeyError:
|
||||
pass
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
[nextcloud]
|
||||
user = apache
|
||||
group = apache
|
||||
listen = /run/php-fpm/nextcloud.sock
|
||||
listen.allowed_clients = 127.0.0.1
|
||||
pm = dynamic
|
||||
pm.max_children = 50
|
||||
pm.start_servers = 5
|
||||
pm.min_spare_servers = 5
|
||||
pm.max_spare_servers = 35
|
||||
slowlog = /var/log/php-fpm/nextcloud-slow.log
|
||||
php_admin_value[error_log] = /var/log/php-fpm/nextcloud-error.log
|
||||
php_admin_flag[log_errors] = on
|
||||
php_value[session.save_handler] = files
|
||||
php_value[session.save_path] = /var/lib/php/session
|
||||
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
|
||||
php_value[upload_max_filesize] = 10G
|
||||
php_value[post_max_size] = 10G
|
||||
env[HOSTNAME] = $HOSTNAME
|
||||
env[PATH] = /usr/local/bin:/usr/bin:/bin
|
||||
env[TMP] = /tmp
|
||||
env[TMPDIR] = /tmp
|
||||
env[TEMP] = /tmp
|
||||
|
||||
505
nextcloud.spec
505
nextcloud.spec
|
|
@ -1,58 +1,55 @@
|
|||
Name: nextcloud
|
||||
Version: 18.0.0
|
||||
Version: 18.0.13
|
||||
Release: 1%{?dist}
|
||||
Summary: Private file sync and share server
|
||||
|
||||
License: AGPLv3+ and MIT and BSD and ASL 2.0 and WTFPL and CC-BY-SA and GPLv3+ and Adobe
|
||||
URL: http://nextcloud.com
|
||||
|
||||
Source0: https://download.nextcloud.com/server/releases/%{name}-%{version}.tar.bz2
|
||||
|
||||
Source1: %{name}-httpd.conf
|
||||
Source2: %{name}-access-httpd.conf.avail
|
||||
|
||||
Source200: %{name}-default-nginx.conf
|
||||
Source201: %{name}-conf-nginx.conf
|
||||
Source202: %{name}-php-fpm.conf
|
||||
Source203: %{name}-el7-php-fpm.conf
|
||||
|
||||
# Config snippets
|
||||
Source100: %{name}-auth-any.inc
|
||||
Source101: %{name}-auth-local.inc
|
||||
Source102: %{name}-auth-none.inc
|
||||
Source103: %{name}-defaults.inc
|
||||
# packaging notes and doc
|
||||
Source3: %{name}-README.fedora
|
||||
Source4: %{name}-mysql.txt
|
||||
Source5: %{name}-postgresql.txt
|
||||
Source6: %{name}-MIGRATION.fedora
|
||||
# config.php containing just settings we want to specify, nextcloud's
|
||||
# basic nextcloud config.php, nextcloud's
|
||||
# initial setup will fill out other settings appropriately
|
||||
Source7: %{name}-config.php
|
||||
|
||||
# Our autoloader for core
|
||||
Source8: %{name}-fedora-autoloader.php
|
||||
|
||||
Source1: %{name}-config.php
|
||||
# Systemd timer for background jobs
|
||||
Source10: %{name}-systemd-timer.service
|
||||
Source11: %{name}-systemd-timer.timer
|
||||
Source2: %{name}-systemd-timer.service
|
||||
Source3: %{name}-systemd-timer.timer
|
||||
# httpd config files
|
||||
Source100: %{name}-httpd.conf
|
||||
Source101: %{name}-access-httpd.conf.avail
|
||||
Source102: %{name}-auth-any.inc
|
||||
Source103: %{name}-auth-local.inc
|
||||
Source104: %{name}-auth-none.inc
|
||||
Source105: %{name}-defaults.inc
|
||||
# nginx/php-fpm config files
|
||||
Source200: %{name}-default-nginx.conf
|
||||
Source201: %{name}-conf-nginx.conf
|
||||
Source202: %{name}-php-fpm.conf
|
||||
# packaging notes and doc
|
||||
Source300: %{name}-README.fedora
|
||||
Source301: %{name}-mysql.txt
|
||||
Source302: %{name}-postgresql.txt
|
||||
Source303: %{name}-MIGRATION.fedora
|
||||
|
||||
# Remove updater version check, we know that updates across more than one
|
||||
# version are possible
|
||||
Patch0: 0000-disable-update-version-check.patch
|
||||
# Change occ shebang to /usr/bin/php
|
||||
Patch1: 0001-mangle-shebang.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
# For the systemd macros
|
||||
%{?systemd_requires}
|
||||
%if 0%{?fedora} > 29
|
||||
BuildRequires: systemd-rpm-macros
|
||||
%else
|
||||
BuildRequires: systemd
|
||||
|
||||
%endif
|
||||
# expand pear macros on install
|
||||
BuildRequires: php-pear
|
||||
|
||||
# For sanity %%check
|
||||
BuildRequires: php-cli
|
||||
|
||||
|
||||
# Require one webserver and database backend
|
||||
Requires: %{name}-webserver = %{version}-%{release}
|
||||
Requires: %{name}-database = %{version}-%{release}
|
||||
|
||||
# Require php CLI for occ command
|
||||
Requires: php-cli
|
||||
# Core PHP libs/extensions required by OC core
|
||||
Requires: php-curl
|
||||
Requires: php-dom
|
||||
|
|
@ -72,22 +69,104 @@ Requires: php-xmlwriter
|
|||
Requires: php-spl
|
||||
Requires: php-zip
|
||||
Requires: php-filter
|
||||
Requires: php-mysqlnd
|
||||
Requires: php-pgsql
|
||||
Requires: php-ldap
|
||||
Requires: php-smbclient
|
||||
Requires: php-imap
|
||||
Requires: php-gmp
|
||||
Requires: php-process
|
||||
Requires: php-pecl-imagick
|
||||
Requires: php-pecl-memcached
|
||||
Requires: php-pecl-apcu
|
||||
Requires: php-pecl-redis5
|
||||
# For systemd support during install/uninstall
|
||||
%{?systemd_requires}
|
||||
# the CA cert bundle is linked to from the config dir
|
||||
Requires: %{_sysconfdir}/pki/tls/certs/ca-bundle.crt
|
||||
|
||||
|
||||
# Need to label the httpd rw stuff correctly until base selinux policy updated
|
||||
Requires(post): %{_sbindir}/semanage
|
||||
Requires(postun): %{_sbindir}/semanage
|
||||
|
||||
# Bundled composer libraries
|
||||
# many of these can be unbundled
|
||||
Provides: bundled(php-composer(icewind/smb)) = 3.2.7
|
||||
Provides: bundled(php-composer(icewind/streams)) = 0.7.1
|
||||
Provides: bundled(php-composer(aws/aws-sdk-php)) = 3.93.9
|
||||
Provides: bundled(php-composer(bantu/ini-get-wrapper)) = 1.0.1
|
||||
Provides: bundled(php-composer(christophwurst/id3parser)) = 0.1.1
|
||||
Provides: bundled(php-composer(deepdiver/zipstreamer)) = 1.1.1
|
||||
Provides: bundled(php-composer(deepdiver1975/tarstreamer)) = 0.1.0
|
||||
Provides: bundled(php-composer(doctrine/annotations)) = 1.6.0
|
||||
Provides: bundled(php-composer(doctrine/cache)) = 1.8.0
|
||||
Provides: bundled(php-composer(doctrine/collections)) = 1.5.0
|
||||
Provides: bundled(php-composer(doctrine/common)) = 2.10.0
|
||||
Provides: bundled(php-composer(doctrine/dbal)) = 2.9.2
|
||||
Provides: bundled(php-composer(doctrine/event-manager)) = 1.0.0
|
||||
Provides: bundled(php-composer(doctrine/inflector)) = 1.3.0
|
||||
Provides: bundled(php-composer(doctrine/lexer)) = 1.2.0
|
||||
Provides: bundled(php-composer(doctrine/persistence)) = 1.1.0
|
||||
Provides: bundled(php-composer(doctrine/reflection)) = 1.0.0
|
||||
Provides: bundled(php-composer(egulias/email-validator)) = 2.1.11
|
||||
Provides: bundled(php-composer(guzzlehttp/guzzle)) = 6.3.3
|
||||
Provides: bundled(php-composer(guzzlehttp/promises)) = 1.3.1
|
||||
Provides: bundled(php-composer(guzzlehttp/psr7)) = 1.5.2
|
||||
Provides: bundled(php-composer(guzzlehttp/ringphp)) = 1.1.0
|
||||
Provides: bundled(php-composer(guzzlehttp/streams)) = 3.0.0
|
||||
Provides: bundled(php-composer(icewind/searchdav)) = 1.0.2
|
||||
Provides: bundled(php-composer(icewind/streams)) = 0.7.1
|
||||
Provides: bundled(php-composer(interfasys/lognormalizer)) = 1.0
|
||||
Provides: bundled(php-composer(jeremeamia/SuperClosure)) = 2.4.0
|
||||
Provides: bundled(php-composer(justinrainbow/json-schema)) = 5.2.8
|
||||
Provides: bundled(php-composer(leafo/scssphp)) = 0.7.7
|
||||
Provides: bundled(php-composer(league/flysystem)) = 1.0.37
|
||||
Provides: bundled(php-composer(microsoft/azure-storage-blob)) = 1.2.0
|
||||
Provides: bundled(php-composer(microsoft/azure-storage-common)) = 1.2.0
|
||||
Provides: bundled(php-composer(mtdowling/jmespath.php)) = 2.4.0
|
||||
Provides: bundled(php-composer(nikic/php-parser)) = 4.2.1
|
||||
Provides: bundled(php-composer(patchwork/jsqueeze)) = 2.0.5
|
||||
Provides: bundled(php-composer(patchwork/utf8)) = 1.3.1
|
||||
Provides: bundled(php-composer(pear/archive_tar)) = 1.4.8
|
||||
Provides: bundled(php-composer(pear/console_getopt)) = 1.4.1
|
||||
Provides: bundled(php-composer(pear/pear-core-minimal)) = 1.10.3
|
||||
Provides: bundled(php-composer(pear/pear_exception)) = 1.0.0
|
||||
Provides: bundled(php-composer(php-opencloud/openstack)) = 3.0.6
|
||||
Provides: bundled(php-composer(phpseclib/phpseclib)) = 2.0.23
|
||||
Provides: bundled(php-composer(pimple/pimple)) = 3.2.3
|
||||
Provides: bundled(php-composer(psr/container)) = 1.0.0
|
||||
Provides: bundled(php-composer(psr/http-message)) = 1.0.1
|
||||
Provides: bundled(php-composer(psr/log)) = 1.1.0
|
||||
Provides: bundled(php-composer(punic/punic)) = 1.6.5
|
||||
Provides: bundled(php-composer(ralouphie/getallheaders)) = 2.0.5
|
||||
Provides: bundled(php-composer(react/promise)) = 2.2.1
|
||||
Provides: bundled(php-composer(sabre/dav)) = 3.2.3
|
||||
Provides: bundled(php-composer(sabre/event)) = 3.0.0
|
||||
Provides: bundled(php-composer(sabre/http)) = 4.2.4
|
||||
Provides: bundled(php-composer(sabre/uri)) = 1.2.1
|
||||
Provides: bundled(php-composer(sabre/vobject)) = 4.1.6
|
||||
Provides: bundled(php-composer(sabre/xml)) = 1.5.0
|
||||
Provides: bundled(php-composer(stecman/symfony-console-completion)) = 0.8.0
|
||||
Provides: bundled(php-composer(swiftmailer/swiftmailer)) = 6.2.3
|
||||
Provides: bundled(php-composer(symfony/console)) = 4.3.4
|
||||
Provides: bundled(php-composer(symfony/event-dispatcher)) = 4.3.4
|
||||
Provides: bundled(php-composer(symfony/event-dispatcher-contracts)) = 1.1.5
|
||||
Provides: bundled(php-composer(symfony/polyfill-iconv)) = 1.12.0
|
||||
Provides: bundled(php-composer(symfony/polyfill-intl-idn)) = 1.12.0
|
||||
Provides: bundled(php-composer(symfony/polyfill-mbstring)) = 1.12.0
|
||||
Provides: bundled(php-composer(symfony/polyfill-php56)) = 1.10.0
|
||||
Provides: bundled(php-composer(symfony/polyfill-php72)) = 1.12.0
|
||||
Provides: bundled(php-composer(symfony/polyfill-php73)) = 1.12.0
|
||||
Provides: bundled(php-composer(symfony/polyfill-util)) = 1.10.0
|
||||
Provides: bundled(php-composer(symfony/process)) = 4.3.4
|
||||
Provides: bundled(php-composer(symfony/routing)) = 4.3.4
|
||||
Provides: bundled(php-composer(symfony/service-contracts)) = 1.1.6
|
||||
Provides: bundled(php-composer(symfony/translation)) = 4.3.4
|
||||
Provides: bundled(php-composer(symfony/translation-contracts)) = 1.1.6
|
||||
Provides: bundled(php-composer(doctrine/cache)) = 1.7.1
|
||||
Provides: bundled(php-composer(doctrine/event-manager)) = 1.0.0
|
||||
# OpenIconic icons bundled via sabre-dav
|
||||
Provides: bundled(openiconic-fonts) = 1.0.0
|
||||
# jscolor bundled via themeing app
|
||||
Provides: bundled(jscolor) = 2.0.4
|
||||
# jquery-ui-multiselect bundled via user_ldap app
|
||||
Provides: bundled(jquery-ui-multiselect) = 0.3.1
|
||||
# zxcvbn bundled via core
|
||||
Provides: bundled(zxcvbn) = 4.4.2
|
||||
%description
|
||||
NextCloud gives you universal access to your files through a web interface or
|
||||
WebDAV. It also provides a platform to easily view & sync your contacts,
|
||||
|
|
@ -97,11 +176,9 @@ applications and plugins.
|
|||
|
||||
|
||||
%package httpd
|
||||
Summary: Httpd integration for NextCloud
|
||||
|
||||
Provides: %{name}-webserver = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Summary: Httpd integration for NextCloud
|
||||
Provides: %{name}-webserver = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# PHP dependencies
|
||||
Requires: php
|
||||
|
||||
|
|
@ -110,26 +187,22 @@ Requires: php
|
|||
|
||||
|
||||
%package nginx
|
||||
Summary: Nginx integration for NextCloud
|
||||
|
||||
Provides: %{name}-webserver = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Summary: Nginx integration for NextCloud
|
||||
Provides: %{name}-webserver = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# PHP dependencies
|
||||
Requires: php-fpm nginx
|
||||
Requires: php-fpm nginx
|
||||
|
||||
%description nginx
|
||||
%{summary}.
|
||||
|
||||
|
||||
%package mysql
|
||||
Summary: MySQL database support for NextCloud
|
||||
|
||||
Provides: %{name}-database = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Summary: MySQL database support for NextCloud
|
||||
Provides: %{name}-database = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# From getSupportedDatabases, mysql => pdo, mysql
|
||||
Requires: php-mysqlnd
|
||||
Requires: php-mysqlnd
|
||||
|
||||
%description mysql
|
||||
This package ensures the necessary dependencies are in place for NextCloud to
|
||||
|
|
@ -142,13 +215,11 @@ also install and enable a MySQL / MariaDB server package. See README.mysql for
|
|||
more details.
|
||||
|
||||
%package postgresql
|
||||
Summary: PostgreSQL database support for NextCloud
|
||||
|
||||
Provides: %{name}-database = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
Summary: PostgreSQL database support for NextCloud
|
||||
Provides: %{name}-database = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# From getSupportedDatabases, pgsql => function, pg_connect
|
||||
Requires: php-pgsql
|
||||
Requires: php-pgsql
|
||||
|
||||
%description postgresql
|
||||
This package ensures the necessary dependencies are in place for NextCloud to
|
||||
|
|
@ -162,12 +233,10 @@ for more details.
|
|||
|
||||
|
||||
%package sqlite
|
||||
Summary: SQLite 3 database support for NextCloud
|
||||
|
||||
Provides: %{name}-database = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Summary: SQLite 3 database support for NextCloud
|
||||
Provides: %{name}-database = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# From getSupportedDatabases, pgsql => class, SQLite3
|
||||
|
||||
%description sqlite
|
||||
This package ensures the necessary dependencies are in place for NextCloud to
|
||||
work with an SQLite 3 database stored on the local system.
|
||||
|
|
@ -182,131 +251,129 @@ find . -name .gitignore -type f -exec rm {} \; -print
|
|||
find . -name .github -type d -prune -exec rm -r {} \; -print
|
||||
|
||||
# prepare package doc
|
||||
cp %{SOURCE3} README.fedora
|
||||
cp %{SOURCE4} README.mysql
|
||||
cp %{SOURCE5} README.postgresql
|
||||
cp %{SOURCE6} MIGRATION.fedora
|
||||
cp %{SOURCE300} README.fedora
|
||||
cp %{SOURCE301} README.mysql
|
||||
cp %{SOURCE302} README.postgresql
|
||||
cp %{SOURCE303} MIGRATION.fedora
|
||||
|
||||
# Locate license files and put them sensibly in place
|
||||
mv apps/files_pdfviewer/vendor/pdfjs/LICENSE js-pdfjs-LICENSE
|
||||
mv apps/files_pdfviewer/vendor/pdfjs/web/cmaps/LICENSE js-pdfjs-cmaps-LICENSE
|
||||
mv apps/notifications/COPYING notifications-LICENSE
|
||||
mv apps/password_policy/LICENSE password_policy-LICENSE
|
||||
mv apps/serverinfo/COPYING serverinfo-LICENSE
|
||||
mv apps/survey_client/COPYING survey_client-LICENSE
|
||||
mv apps/user_ldap/vendor/ui-multiselect/MIT-LICENSE js-jqueryui-multiselect-LICENSE
|
||||
mv COPYING nextcloud-LICENSE
|
||||
|
||||
|
||||
mv core/vendor/zxcvbn/LICENSE.txt zxcvbn-LICENSE
|
||||
mv core/fonts/LICENSE_OFL.txt fonts-LICENSE
|
||||
mv lib/composer/composer/LICENSE composer-LICENSE
|
||||
mv 3rdparty/sabre/vobject/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/dav/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/dav/lib/DAV/Browser/assets/openiconic/ICON-LICENSE sabre-ICON-LICENSE
|
||||
mv 3rdparty/sabre/event/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/http/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/xml/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/uri/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/nikic/php-parser/LICENSE nikic-LICENSE
|
||||
# find all using "find -name '*LICENSE*' -o -name '*COPYING*' | sort"
|
||||
mv 3rdparty/aws/aws-sdk-php/LICENSE.md aws-LICENSE.md
|
||||
mv 3rdparty/bantu/ini-get-wrapper/LICENSE bantu-LICENSE
|
||||
mv '3rdparty/LICENSE INFO' 3rdparty-LICENSE_INFO
|
||||
mv 3rdparty/egulias/email-validator/LICENSE egulias-LICENSE
|
||||
mv 3rdparty/stecman/symfony-console-completion/LICENCE stecman-LICENCE
|
||||
mv 3rdparty/jeremeamia/SuperClosure/LICENSE.md jeremeamia-LICENSE
|
||||
mv 3rdparty/microsoft/azure-storage-blob/LICENSE microsoft-LICENSE
|
||||
mv 3rdparty/microsoft/azure-storage-common/LICENSE microsoft-LICENSE
|
||||
mv 3rdparty/justinrainbow/json-schema/LICENSE justinrainbow-LICENSE
|
||||
mv 3rdparty/christophwurst/id3parser/LICENSE christophwurst-LICENSE
|
||||
mv 3rdparty/composer/LICENSE composer-LICENSE
|
||||
mv 3rdparty/deepdiver1975/tarstreamer/LICENSE deepdiver1975-LICENSE
|
||||
mv 3rdparty/deepdiver/zipstreamer/COPYING deepdiver-COPYING
|
||||
mv 3rdparty/doctrine/annotations/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/cache/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/collections/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/event-manager/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/common/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/dbal/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/event-manager/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/inflector/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/persistence/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/reflection/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/inflector/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/cache/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/dbal/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/doctrine/annotations/LICENSE doctrine-LICENSE
|
||||
mv 3rdparty/deepdiver/zipstreamer/COPYING deepdiver-COPYING
|
||||
mv 3rdparty/mtdowling/jmespath.php/LICENSE mtdowling-LICENSE
|
||||
mv 3rdparty/punic/punic/LICENSE.txt punic-LICENSE.txt
|
||||
mv 3rdparty/punic/punic/UNICODE-LICENSE.txt punic-UNICODE-LICENSE
|
||||
mv 3rdparty/christophwurst/id3parser/LICENSE christophwurst-LICENSE
|
||||
mv 3rdparty/symfony/event-dispatcher-contracts/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/process/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/event-dispatcher/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-php56/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/routing/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-intl-idn/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-iconv/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-mbstring/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-php72/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/translation/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/console/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-php73/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/translation-contracts/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/service-contracts/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-util/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/react/promise/LICENSE react-LICENSE
|
||||
mv 3rdparty/composer/LICENSE composer-LICENSE
|
||||
mv 3rdparty/icewind/searchdav/LICENSE icewind-LICENSE
|
||||
mv 3rdparty/aws/aws-sdk-php/LICENSE.md aws-LICENSE.md
|
||||
mv 3rdparty/interfasys/lognormalizer/COPYING interfasys-COPYING
|
||||
mv 3rdparty/php-opencloud/openstack/LICENSE php-opencloud-LICENSE
|
||||
mv 3rdparty/league/flysystem/LICENSE league-LICENSE
|
||||
mv 3rdparty/phpseclib/phpseclib/LICENSE phpseclib-LICENSE
|
||||
mv 3rdparty/deepdiver1975/tarstreamer/LICENSE deepdiver1975-LICENSE
|
||||
mv 3rdparty/patchwork/jsqueeze/LICENSE.GPLv2 patchwork-LICENSE
|
||||
mv 3rdparty/patchwork/jsqueeze/LICENSE.ASL20 patchwork-LICENSE
|
||||
mv 3rdparty/patchwork/utf8/LICENSE-GPL patchwork-LICENSE-GPL
|
||||
mv 3rdparty/patchwork/utf8/LICENSE-APACHE patchwork-LICENSE-APACHE
|
||||
mv 3rdparty/guzzlehttp/streams/LICENSE guzzlehttp-LICENSE
|
||||
mv 3rdparty/egulias/email-validator/LICENSE egulias-LICENSE
|
||||
mv 3rdparty/guzzlehttp/guzzle/LICENSE guzzlehttp-LICENSE
|
||||
mv 3rdparty/guzzlehttp/promises/LICENSE guzzlehttp-LICENSE
|
||||
mv 3rdparty/guzzlehttp/ringphp/LICENSE guzzlehttp-LICENSE
|
||||
mv 3rdparty/guzzlehttp/psr7/LICENSE guzzlehttp-LICENSE
|
||||
mv 3rdparty/pear/pear_exception/LICENSE pear-LICENSE
|
||||
mv 3rdparty/pear/console_getopt/LICENSE pear-LICENSE
|
||||
mv 3rdparty/guzzlehttp/ringphp/LICENSE guzzlehttp-LICENSE
|
||||
mv 3rdparty/guzzlehttp/streams/LICENSE guzzlehttp-LICENSE
|
||||
mv 3rdparty/icewind/searchdav/LICENSE icewind-LICENSE
|
||||
mv 3rdparty/interfasys/lognormalizer/COPYING interfasys-COPYING
|
||||
mv 3rdparty/jeremeamia/SuperClosure/LICENSE.md jeremeamia-LICENSE
|
||||
mv 3rdparty/justinrainbow/json-schema/LICENSE justinrainbow-LICENSE
|
||||
mv 3rdparty/leafo/scssphp/LICENSE.md leafo-LICENSE
|
||||
mv 3rdparty/ralouphie/getallheaders/LICENSE ralouphie-LICENSE
|
||||
mv 3rdparty/psr/log/LICENSE psr-LICENSE
|
||||
mv 3rdparty/psr/http-message/LICENSE psr-LICENSE
|
||||
mv 3rdparty/league/flysystem/LICENSE league-LICENSE
|
||||
mv '3rdparty/LICENSE INFO' 3rdparty-LICENSE_INFO
|
||||
mv 3rdparty/microsoft/azure-storage-blob/LICENSE microsoft-LICENSE
|
||||
mv 3rdparty/microsoft/azure-storage-common/LICENSE microsoft-LICENSE
|
||||
mv 3rdparty/mtdowling/jmespath.php/LICENSE mtdowling-LICENSE
|
||||
mv 3rdparty/nikic/php-parser/LICENSE nikic-LICENSE
|
||||
mv 3rdparty/patchwork/jsqueeze/LICENSE.ASL20 patchwork-LICENSE-APACHE
|
||||
mv 3rdparty/patchwork/jsqueeze/LICENSE.GPLv2 patchwork-LICENSE-GPL
|
||||
mv 3rdparty/patchwork/utf8/LICENSE-APACHE patchwork-LICENSE-APACHE
|
||||
mv 3rdparty/patchwork/utf8/LICENSE-GPL patchwork-LICENSE-GPL
|
||||
mv 3rdparty/pear/console_getopt/LICENSE pear-LICENSE
|
||||
mv 3rdparty/pear/pear_exception/LICENSE pear-LICENSE
|
||||
mv 3rdparty/php-opencloud/openstack/LICENSE php-opencloud-LICENSE
|
||||
mv 3rdparty/phpseclib/phpseclib/LICENSE phpseclib-LICENSE
|
||||
mv 3rdparty/psr/container/LICENSE psr-LICENSE
|
||||
mv 3rdparty/psr/http-message/LICENSE psr-LICENSE
|
||||
mv 3rdparty/psr/log/LICENSE psr-LICENSE
|
||||
mv 3rdparty/punic/punic/LICENSE.txt punic-LICENSE.txt
|
||||
mv 3rdparty/punic/punic/UNICODE-LICENSE.txt punic-UNICODE-LICENSE
|
||||
mv 3rdparty/ralouphie/getallheaders/LICENSE ralouphie-LICENSE
|
||||
mv 3rdparty/react/promise/LICENSE react-LICENSE
|
||||
mv 3rdparty/sabre/dav/lib/DAV/Browser/assets/openiconic/ICON-LICENSE sabre-ICON-LICENSE
|
||||
mv 3rdparty/sabre/dav/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/event/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/http/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/uri/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/vobject/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/sabre/xml/LICENSE sabre-LICENSE
|
||||
mv 3rdparty/stecman/symfony-console-completion/LICENCE stecman-LICENSE
|
||||
mv 3rdparty/symfony/console/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/event-dispatcher-contracts/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/event-dispatcher/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-iconv/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-intl-idn/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-mbstring/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-php56/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-php72/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-php73/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/polyfill-util/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/process/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/routing/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/service-contracts/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/translation-contracts/LICENSE symfony-LICENSE
|
||||
mv 3rdparty/symfony/translation/LICENSE symfony-LICENSE
|
||||
mv apps/accessibility/composer/composer/LICENSE accessibility-LICENSE
|
||||
mv apps/admin_audit/composer/composer/LICENSE admin_audit-LICENSE
|
||||
mv apps/cloud_federation_api/composer/composer/LICENSE cloud_federation_api-LICENSE
|
||||
mv apps/cloud_federation_api/LICENSE cloud_federation_api-LICENSE
|
||||
mv apps/comments/composer/composer/LICENSE comments-LICENSE
|
||||
mv apps/dav/composer/composer/LICENSE dav-LICENSE
|
||||
mv apps/encryption/composer/composer/LICENSE encryption-LICENSE
|
||||
mv apps/federatedfilesharing/composer/composer/LICENSE federatedfilesharing-LICENSE
|
||||
mv apps/theming/js/3rdparty/jscolor/LICENSE.txt jscolor-LICENSE
|
||||
mv apps/viewer/COPYING viewer-COPYING
|
||||
mv apps/workflowengine/composer/composer/LICENSE workflowengine-LICENSE
|
||||
mv apps/dav/composer/composer/LICENSE dav-LICENSE
|
||||
mv apps/nextcloud_announcements/COPYING nextcloud_announcements-COPYING
|
||||
mv apps/files_trashbin/composer/composer/LICENSE files_trashbin-LICENSE
|
||||
mv apps/photos/COPYING photos-COPYING
|
||||
mv apps/comments/composer/composer/LICENSE comments-LICENSE
|
||||
mv apps/files_external/3rdparty/composer/LICENSE files_external-LICENSE
|
||||
mv apps/files_external/3rdparty/icewind/streams/LICENCE icewind_streams-LICENCE
|
||||
mv apps/files_external/3rdparty/icewind/smb/LICENSE.txt icewind_smb-LICENSE
|
||||
mv apps/oauth2/composer/composer/LICENSE oauth2-LICENSE
|
||||
mv apps/systemtags/composer/composer/LICENSE systemtags-LICENSE
|
||||
mv apps/accessibility/composer/composer/LICENSE accessibility-LICENSE
|
||||
mv apps/updatenotification/composer/composer/LICENSE updatenotification-LICENSE
|
||||
mv apps/cloud_federation_api/LICENSE cloud_federation_api-LICENSE
|
||||
mv apps/cloud_federation_api/composer/composer/LICENSE cloud_federation_api-LICENSE
|
||||
mv apps/provisioning_api/composer/composer/LICENSE provisioning_api-LICENSE
|
||||
mv apps/admin_audit/composer/composer/LICENSE admin_audit-LICENSE
|
||||
mv apps/files_sharing/composer/composer/LICENSE files_sharing-LICENSE
|
||||
mv apps/federation/composer/composer/LICENSE federation-LICENSE
|
||||
mv apps/recommendations/LICENSE recommendations-LICENSE
|
||||
mv apps/settings/composer/composer/LICENSE settings-LICENSE
|
||||
mv apps/user_ldap/composer/composer/LICENSE user_ldap-LICENSE
|
||||
mv apps/files/composer/composer/LICENSE files-LICENSE
|
||||
mv apps/files_external/3rdparty/composer/LICENSE files_external-LICENSE
|
||||
mv apps/files_external/3rdparty/icewind/smb/LICENSE.txt icewind-smb-LICENSE
|
||||
mv apps/files_external/3rdparty/icewind/streams/LICENCE icewind-streams-LICENSE
|
||||
mv apps/files_pdfviewer/vendor/pdfjs/LICENSE js-pdfjs-LICENSE
|
||||
mv apps/files_pdfviewer/vendor/pdfjs/web/cmaps/LICENSE js-pdfjs-cmaps-LICENSE
|
||||
mv apps/files_rightclick/COPYING files_rightclick-COPYING
|
||||
mv apps/files_rightclick/LICENSE files_rightclick-LICENSE
|
||||
mv apps/sharebymail/composer/composer/LICENSE sharebymail-LICENSE
|
||||
mv apps/privacy/COPYING privacy-COPYING
|
||||
mv apps/files_sharing/composer/composer/LICENSE files_sharing-LICENSE
|
||||
mv apps/files_trashbin/composer/composer/LICENSE files_trashbin-LICENSE
|
||||
mv apps/files_versions/composer/composer/LICENSE files_versions-LICENSE
|
||||
mv apps/files/composer/composer/LICENSE files-LICENSE
|
||||
mv apps/twofactor_backupcodes/composer/composer/LICENSE twofactor_backupcodes-LICENSE
|
||||
mv apps/lookup_server_connector/composer/composer/LICENSE lookup_server_connector-LICENSE
|
||||
mv apps/nextcloud_announcements/COPYING nextcloud_announcements-COPYING
|
||||
mv apps/notifications/COPYING notifications-LICENSE
|
||||
mv apps/oauth2/composer/composer/LICENSE oauth2-LICENSE
|
||||
mv apps/password_policy/LICENSE password_policy-LICENSE
|
||||
mv apps/photos/COPYING photos-COPYING
|
||||
mv apps/privacy/COPYING privacy-COPYING
|
||||
mv apps/provisioning_api/composer/composer/LICENSE provisioning_api-LICENSE
|
||||
mv apps/recommendations/LICENSE recommendations-LICENSE
|
||||
mv apps/serverinfo/COPYING serverinfo-LICENSE
|
||||
mv apps/settings/composer/composer/LICENSE settings-LICENSE
|
||||
mv apps/sharebymail/composer/composer/LICENSE sharebymail-LICENSE
|
||||
mv apps/survey_client/COPYING survey_client-LICENSE
|
||||
mv apps/systemtags/composer/composer/LICENSE systemtags-LICENSE
|
||||
mv apps/text/COPYING text-COPYING
|
||||
|
||||
mv apps/theming/js/3rdparty/jscolor/LICENSE.txt jscolor-LICENSE
|
||||
mv apps/twofactor_backupcodes/composer/composer/LICENSE twofactor_backupcodes-LICENSE
|
||||
mv apps/updatenotification/composer/composer/LICENSE updatenotification-LICENSE
|
||||
mv apps/user_ldap/composer/composer/LICENSE user_ldap-LICENSE
|
||||
mv apps/user_ldap/vendor/ui-multiselect/MIT-LICENSE js-jqueryui-multiselect-LICENSE
|
||||
mv apps/viewer/COPYING viewer-COPYING
|
||||
mv apps/workflowengine/composer/composer/LICENSE workflowengine-LICENSE
|
||||
mv COPYING nextcloud-LICENSE
|
||||
mv core/fonts/LICENSE_OFL.txt fonts-LICENSE
|
||||
mv core/vendor/zxcvbn/LICENSE.txt zxcvbn-LICENSE
|
||||
mv lib/composer/composer/LICENSE composer-LICENSE
|
||||
|
||||
|
||||
%check
|
||||
|
|
@ -336,10 +403,13 @@ for d in $(find . -mindepth 1 -maxdepth 1 -type d | grep -v config); do
|
|||
cp -a "$d" %{buildroot}%{_datadir}/%{name}
|
||||
done
|
||||
|
||||
for f in {*.php,*.html,occ,robots.txt}; do
|
||||
for f in {*.php,*.html,robots.txt}; do
|
||||
install -pm 644 "$f" %{buildroot}%{_datadir}/%{name}
|
||||
done
|
||||
|
||||
# occ should be executable
|
||||
install -pm 755 occ %{buildroot}%{_datadir}/%{name}
|
||||
|
||||
# symlink config dir
|
||||
ln -sf %{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/config
|
||||
|
||||
|
|
@ -347,14 +417,14 @@ ln -sf %{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/config
|
|||
ln -sf %{_sysconfdir}/pki/tls/certs/ca-bundle.crt %{buildroot}%{_sysconfdir}/%{name}/ca-bundle.crt
|
||||
|
||||
# set default config
|
||||
install -pm 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/%{name}/config.php
|
||||
install -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/config.php
|
||||
|
||||
# httpd config
|
||||
install -Dpm 644 %{SOURCE1} \
|
||||
install -Dpm 644 %{SOURCE100} \
|
||||
%{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
|
||||
install -Dpm 644 %{SOURCE2} \
|
||||
install -Dpm 644 %{SOURCE101} \
|
||||
%{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}-access.conf.avail
|
||||
install -Dpm 644 %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} \
|
||||
install -Dpm 644 %{SOURCE102} %{SOURCE103} %{SOURCE104} %{SOURCE105} \
|
||||
%{buildroot}%{_sysconfdir}/httpd/conf.d/
|
||||
|
||||
# nginx config
|
||||
|
|
@ -362,18 +432,12 @@ install -Dpm 644 %{SOURCE200} \
|
|||
%{buildroot}%{_sysconfdir}/nginx/default.d/%{name}.conf
|
||||
install -Dpm 644 %{SOURCE201} \
|
||||
%{buildroot}%{_sysconfdir}/nginx/conf.d/%{name}.conf
|
||||
|
||||
%if 0%{?el7}
|
||||
install -Dpm 644 %{SOURCE203} \
|
||||
%{buildroot}%{_sysconfdir}/php-fpm.d/%{name}.conf
|
||||
%else
|
||||
install -Dpm 644 %{SOURCE202} \
|
||||
%{buildroot}%{_sysconfdir}/php-fpm.d/%{name}.conf
|
||||
%endif
|
||||
|
||||
# Install the systemd timer
|
||||
install -Dpm 644 %{SOURCE10} %{buildroot}%{_unitdir}/nextcloud-cron.service
|
||||
install -Dpm 644 %{SOURCE11} %{buildroot}%{_unitdir}/nextcloud-cron.timer
|
||||
install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/nextcloud-cron.service
|
||||
install -Dpm 644 %{SOURCE3} %{buildroot}%{_unitdir}/nextcloud-cron.timer
|
||||
|
||||
%post httpd
|
||||
/usr/bin/systemctl reload httpd.service > /dev/null 2>&1 || :
|
||||
|
|
@ -384,16 +448,8 @@ if [ $1 -eq 0 ]; then
|
|||
fi
|
||||
|
||||
%post nginx
|
||||
%if 0%{?el7}
|
||||
# Work around missing php session directory for php-fpm in el7 bz#1338444
|
||||
if [ ! -d /var/lib/php/session ]
|
||||
then
|
||||
mkdir /var/lib/php/session
|
||||
fi
|
||||
/usr/bin/chown apache /var/lib/php/session
|
||||
%endif
|
||||
/usr/bin/systemctl reload nginx.service > /dev/null 2>&1 || :
|
||||
/usr/bin/systemctl reload php-fpm.service > /dev/null 2>&1 || :
|
||||
/usr/bin/systemctl reload nginx.service > /dev/null 2>&1 || :
|
||||
/usr/bin/systemctl reload php-fpm.service > /dev/null 2>&1 || :
|
||||
|
||||
%postun nginx
|
||||
if [ $1 -eq 0 ]; then
|
||||
|
|
@ -401,48 +457,26 @@ if [ $1 -eq 0 ]; then
|
|||
/usr/bin/systemctl reload php-fpm.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
# the selinux policies only cover owncloud right now
|
||||
# once this package is accepted pull request for selinux-policy to add
|
||||
# these will be made
|
||||
%post
|
||||
touch '%{_sysconfdir}/%{name}/CAN_INSTALL'
|
||||
semanage fcontext -a -t httpd_sys_rw_content_t '%{_sysconfdir}/%{name}/config.php' 2>/dev/null || :
|
||||
semanage fcontext -a -t httpd_sys_rw_content_t '%{_sysconfdir}/%{name}' 2>/dev/null || :
|
||||
semanage fcontext -a -t httpd_sys_rw_content_t '%{_localstatedir}/lib/%{name}(/.*)?' 2>/dev/null || :
|
||||
restorecon -R %{_sysconfdir}/%{name} || :
|
||||
restorecon -R %{_localstatedir}/lib/%{name} || :
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
semanage fcontext -d -t httpd_sys_rw_content_t '%{_sysconfdir}/%{name}/config.php' 2>/dev/null || :
|
||||
semanage fcontext -d -t httpd_sys_rw_content_t '%{_sysconfdir}/%{name}' 2>/dev/null || :
|
||||
semanage fcontext -d -t httpd_sys_rw_content_t '%{_localstatedir}/lib/%{name}(/.*)?' 2>/dev/null || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%doc AUTHORS README.fedora MIGRATION.fedora config/config.sample.php
|
||||
|
||||
%license *-LICENSE
|
||||
|
||||
%dir %attr(-,apache,apache) %{_sysconfdir}/%{name}
|
||||
# contains sensitive data (dbpassword, passwordsalt)
|
||||
%config(noreplace) %attr(0600,apache,apache) %{_sysconfdir}/%{name}/config.php
|
||||
# need the symlink in confdir but it's not config
|
||||
%{_sysconfdir}/%{name}/ca-bundle.crt
|
||||
|
||||
%{_datadir}/%{name}
|
||||
%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}
|
||||
# user data must not be world readable
|
||||
%dir %attr(0750,apache,apache) %{_localstatedir}/lib/%{name}/data
|
||||
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}/apps
|
||||
|
||||
%{_unitdir}/nextcloud-cron.service
|
||||
%{_unitdir}/nextcloud-cron.timer
|
||||
|
||||
%files httpd
|
||||
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
|
||||
%{_sysconfdir}/httpd/conf.d/%{name}-access.conf.avail
|
||||
%{_sysconfdir}/httpd/conf.d/*.inc
|
||||
%{_sysconfdir}/httpd/conf.d/%{name}*.inc
|
||||
|
||||
%files nginx
|
||||
%config(noreplace) %{_sysconfdir}/nginx/default.d/%{name}.conf
|
||||
|
|
@ -457,6 +491,31 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Sat Jan 16 2021 Christopher Engelhard <ce@lcts.de> - 18.0.13-1
|
||||
- Update to Nextcloud 18.0.13
|
||||
- This is the final upstream release of the 18.x branch
|
||||
|
||||
* Mon Dec 28 2020 Christopher Engelhard <ce@lcts.de> - 18.0.12-2
|
||||
- Remove syslinux labeling
|
||||
- Remove duplicate dependencies
|
||||
- Add missing dependency on CA certs bundle
|
||||
- Add Provides: for bundled libraries
|
||||
|
||||
* Thu Dec 10 2020 Christopher Engelhard <ce@lcts.de> - 18.0.12-1
|
||||
- Update to Nextcloud 18.0.12
|
||||
|
||||
* Thu Nov 19 2020 Christopher Engelhard <ce@lcts.de> - 18.0.11-1
|
||||
- Update to Nextcloud 18.0.11
|
||||
|
||||
* Wed Nov 11 2020 Christopher Engelhard <ce@lcts.de> - 18.0.9-2
|
||||
- Add dependencies on php-cli (for occ) and php-process (for posix)
|
||||
- Remove unneeded BR on php-cli
|
||||
- Add patch to allow updates across more than one major version
|
||||
- Remove CentOS/RHEL 7 support from spec file
|
||||
|
||||
* Sun Oct 11 2020 Christopher Engelhard <ce@lcts.de> - 18.0.9-1
|
||||
- Update to Nextcloud 18.0.9
|
||||
|
||||
* Sat Feb 08 2020 Ivan Chavero <ichavero@redhat.com> - 18.0.0-1
|
||||
- Refactor spec file
|
||||
- Update to Nextcoud 18.0.0
|
||||
|
|
|
|||
11
plans/base.fmf
Normal file
11
plans/base.fmf
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
summary: Basic occ functionality
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://src.fedoraproject.org/tests/nextcloud
|
||||
prepare:
|
||||
how: install
|
||||
package: nextcloud
|
||||
environment:
|
||||
PACKAGES: nextcloud
|
||||
execute:
|
||||
how: tmt
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (nextcloud-18.0.0.tar.bz2) = c6a3b2bb2abed416fdebecd0c35b2547298370ef8a3a2cc884da877b39ab4a03d205653d94b20fdc0660fa355966771f65a7c0aa1c2117bb5abc85d2f091d4f7
|
||||
SHA512 (nextcloud-18.0.13.tar.bz2) = 8040dece29a2de2ac0e5c02aa26f899c05c936312c7e8a5f1b0d2f97fa12150f0c66ec9f08764ce81e92fc90ecc9bde45fa43da3293437d40ec4a3b16b6a744e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue