forked from NethServer/nethserver-nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnethserver-nextcloud.spec
322 lines (230 loc) · 13.3 KB
/
nethserver-nextcloud.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
Summary: NethServer Nextcloud configuration
Name: nethserver-nextcloud
Version: 1.17.0
Release: 1%{?dist}
License: GPL
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.tar.gz
%define nc_version 21.0.2
Source2: https://download.nextcloud.com/server/releases/nextcloud-%{nc_version}.tar.bz2
# See https://github.com/nextcloud/files_pdfviewer/issues/381
Source3: https://raw.githubusercontent.com/nextcloud/files_pdfviewer/6d81ffbb65c3758bece144e0aff07b4a0ad20eef/js/files_pdfviewer-main.js
BuildArch: noarch
URL: %{url_prefix}/%{name}
BuildRequires: nethserver-devtools
Provides: nextcloud
Obsoletes: nextcloud
Requires: nethserver-httpd
Requires: nethserver-rh-mariadb105 rh-mariadb105-mariadb-server-utils
Requires: nethserver-rh-php73-php-fpm >= 1.0.0
Requires: samba-client
# Required php packages
Requires: rh-php73
Requires: rh-php73-php-fpm
Requires: rh-php73-php-gd
Requires: rh-php73-php-pdo
Requires: rh-php73-php-mbstring
Requires: rh-php73-php-imagick
# Recommended php packages
Requires: rh-php73-php-intl
Requires: rh-php73-php-gmp
# Required php packages for specific apps
Requires: rh-php73-php-ldap
Requires: sclo-php73-php-smbclient
# Required php packages for MariaDB
Requires: rh-php73-php-pdo_mysql
%description
NethServer Nextcloud files and configuration.
%prep
%setup
%build
perl createlinks
sed -i 's/_RELEASE_/%{version}/' %{name}.json
%install
rm -rf %{buildroot}
(cd root; find . -depth -print | cpio -dump %{buildroot})
mkdir -p %{buildroot}/usr/share/nextcloud/{config,data,etc,assets,updater}
tar xf %{SOURCE2} -C %{buildroot}/usr/share
cp %{SOURCE3} %{buildroot}/usr/share/nextcloud/apps/files_pdfviewer/js/files_pdfviewer-main.js
mkdir -p %{buildroot}/var/lib/nethserver/nextcloud
mkdir -p %{buildroot}/usr/share/cockpit/%{name}/
mkdir -p %{buildroot}/usr/share/cockpit/nethserver/applications/
mkdir -p %{buildroot}/usr/libexec/nethserver/api/%{name}/
tar xvf %{SOURCE1} -C %{buildroot}/usr/share/cockpit/%{name}/
cp -a %{name}.json %{buildroot}/usr/share/cockpit/nethserver/applications/
cp -a api/* %{buildroot}/usr/libexec/nethserver/api/%{name}/
mkdir -p %{buildroot}/var/opt/rh/rh-mariadb105/lib/mysql-nextcloud
%{genfilelist} %{buildroot} \
--file /etc/sudoers.d/50_nsapi_nethserver_nextcloud 'attr(0440,root,root)' \
--dir /var/lib/nethserver/nextcloud 'attr(0755,apache,apache)' | grep -v -e '/usr/share/nextcloud' -e '/var/opt/rh/rh-mariadb105/lib/mysql-nextcloud' > %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%doc COPYING
%dir %{_nseventsdir}/%{name}-update
%config %attr (0440,root,root) %{_sysconfdir}/sudoers.d/90_nethserver_nextcloud
%config(noreplace) %{_sysconfdir}/opt/rh/rh-php73/php-fpm.d/000-nextcloud.conf
%config(noreplace) %attr(0644,apache,apache) /usr/share/nextcloud/.user.ini
%dir %attr(0755,root,apache) /usr/share/nextcloud
%dir %attr(0755,mysql,mysql) /var/opt/rh/rh-mariadb105/lib/mysql-nextcloud
%attr(-,apache,apache) /usr/share/nextcloud
%attr(0755,apache,apache) /usr/share/nextcloud/occ
%attr(0775,apache,apache) /usr/share/nextcloud/data
%changelog
* Mon Jun 21 2021 Giacomo Sanchietti <[email protected]> - 1.17.0-1
- Nextcloud 21.0.2 - NethServer/dev#6506
* Fri Apr 16 2021 Giacomo Sanchietti <[email protected]> - 1.16.7-1
- Nextcloud 20.0.9 - NethServer/dev#6478
* Thu Mar 11 2021 Giacomo Sanchietti <[email protected]> - 1.16.6-1
- Nextcloud 20.0.8 - NethServer/dev#6452
* Mon Feb 08 2021 Giacomo Sanchietti <[email protected]> - 1.16.5-1
- Nextcloud 20.0.7 - NethServer/dev#6415
* Fri Jan 29 2021 Giacomo Sanchietti <[email protected]> - 1.16.4-1
- Nextcloud 20.0.6 - NethServer/dev#6404
* Wed Jan 20 2021 Giacomo Sanchietti <[email protected]> - 1.16.3-1
- Nextcloud 20.0.5 - NethServer/dev#6394
* Tue Jan 05 2021 Giacomo Sanchietti <[email protected]> - 1.16.2-1
- Nextcloud installation fails if no account provider is installed - Bug NethServer/dev#6384
* Thu Dec 17 2020 Giacomo Sanchietti <[email protected]> - 1.16.1-1
- Nextcloud 20.0.4 - NethServer/dev#6363
* Mon Nov 30 2020 Giacomo Sanchietti <[email protected]> - 1.16.0-1
- Nextcloud 20.0.2 - NethServer/dev#6340
- PHP-fpm: php script use a bad file path with '//' - Bug NethServer/dev#6339
* Wed Nov 18 2020 Giacomo Sanchietti <[email protected]> - 1.15.0-1
- New NethServer 7.9.2009 defaults - NethServer/dev#6320
- Nextcloud 20.0.1 - NethServer/dev#6314
- StartTLS settings not honored by NextCloud conf - NethServer/dev#6318
* Tue Nov 03 2020 Davide Principi <[email protected]> - 1.14.2-1
- StartTLS settings not honored by NextCloud conf - NethServer/dev#6318
* Fri Oct 16 2020 Davide Principi <[email protected]> - 1.14.1-1
- Add constraints to Nextcloud users count fact - NethServer/dev#6307
* Mon Sep 14 2020 Giacomo Sanchietti <[email protected]> - 1.14.0-1
- Nextcloud 19.0.3 - NethServer/dev#6266
* Thu Sep 03 2020 Giacomo Sanchietti <[email protected]> - 1.13.0-1
- Nextcloud 19.0.2 - NethServer/dev#6257
- Event interface-update fails with Nextcloud - Bug NethServer/dev#6250
* Tue Aug 11 2020 Stephane de Labrusse <[email protected]> - 1.12.4-1
- Nextcloud: Increase php memory for cron job - Bug NethServer/dev#6249
* Mon Jul 20 2020 Giacomo Sanchietti <[email protected]> - 1.12.3-1
- Nextcloud 19.0.1 - NethServer/dev#6232
* Thu Jul 09 2020 Giacomo Sanchietti <[email protected]> - 1.12.2-1
- Nextcloud facter. Remove useless "size" attribute - Bug Nethserver/dev#6225
* Thu Jul 02 2020 Giacomo Sanchietti <[email protected]> - 1.12.1-1
- Human readable numbers in Cockpit dashboards - NethServer/dev#6206
* Mon Jun 15 2020 Giacomo Sanchietti <[email protected]> - 1.12.0-1
- Nextcloud: files shared with group are not listed in the UI - Bug NethServer/dev#6202
* Mon Jun 08 2020 Giacomo Sanchietti <[email protected]> - 1.11.0-1
- Nextcloud 19.0.0 - NethServer/dev#6178
* Thu May 07 2020 Giacomo Sanchietti <[email protected]> - 1.10.1-1
- Nextcloud 18.0.4 - NethServer/dev#6155
* Tue Apr 28 2020 Giacomo Sanchietti <[email protected]> - 1.10.0-1
- Update Nextcloud stack to PHP 7.3 - NethServer/dev#6120
* Thu Mar 26 2020 Giacomo Sanchietti <[email protected]> - 1.9.2-1
- Nextcloud 18.0.3 - NethServer/dev#6098
* Wed Mar 25 2020 Giacomo Sanchietti <[email protected]> - 1.9.1-1
- Nextcloud 18.0.2 - NethServer/dev#6095
* Wed Feb 26 2020 Giacomo Sanchietti <[email protected]> - 1.9.0-1
- Nextcloud trusted domains are not deleted - Bug NethServer/dev#6067
- Nextcloud 18.0.1 - NethServer/dev#6062
* Mon Jan 27 2020 Giacomo Sanchietti <[email protected]> - 1.8.5-1
- Update to Nextcloud 18 - NethServer/dev#6039
* Thu Jan 16 2020 Giacomo Sanchietti <[email protected]> - 1.8.4-1
- facter: improve user count - NethServer/nethserver-nextcloud/69
* Wed Jan 15 2020 Giacomo Sanchietti <[email protected]> - 1.8.3-1
- Nextcloud: upgrade to v17.0.2 - NethServer/dev#6016
- Cockpit: change package Dashboard page title - NethServer/dev#6004
* Thu Dec 19 2019 Davide Principi <[email protected]> - 1.8.2-1
- Nextcloud: php-fpm with a linux socket - NethServer/dev#5997
* Mon Dec 09 2019 Giacomo Sanchietti <[email protected]> - 1.8.1-1
- Inventory: add new application facts - NethServer/dev#5979
* Mon Dec 02 2019 Giacomo Sanchietti <[email protected]> - 1.8.0-1
- Update to Nextcloud 17 - NethServer/dev#5958
* Wed Oct 09 2019 Giacomo Sanchietti <[email protected]> - 1.7.1-1
- Nextcloud: upgrade to v16.0.5 - NethServer/dev#5858
- Cockpit: improve English labels - NethServer/dev#5856
* Tue Oct 01 2019 Giacomo Sanchietti <[email protected]> - 1.7.0-1
- Sudoers based authorizations for Cockpit UI - NethServer/dev#5805
* Tue Sep 03 2019 Giacomo Sanchietti <[email protected]> - 1.6.2-1
- Nextcloud: upgrade to v16.0.4 - NethServer/dev#5818
- Cockpit. List correct application version - NethServer/dev#5819
* Mon Aug 05 2019 Giacomo Sanchietti <[email protected]> - 1.6.1-1
- Nextcloud: upgrade to v16.0.3 - NethServer/dev#5798
* Wed Jul 17 2019 Giacomo Sanchietti <[email protected]> - 1.6.0-1
- Nextcloud Cockpit UI - NethServer/dev#5789
* Tue Jul 09 2019 Davide Principi <[email protected]> - 1.5.2-1
- Nextcloud: upgrade to v16.0.2 - nethserver/dev#5784
- Cockpit legacy apps implementation - NethServer/dev#5782
* Fri May 24 2019 Davide Principi <[email protected]> - 1.5.1-1
- Nextcloud: upgrade to v16.0.1 - NethServer/dev#5762
* Wed May 08 2019 Giacomo Sanchietti <[email protected]> - 1.5.0-1
- Nextcloud 16 - NethServer/dev#5753
- Switch from PHP 7.1 to PHP 7.2
* Mon Apr 29 2019 Alessandro Polidori <[email protected]> - 1.4.4-1
- Nextcloud: upgrade to v15.0.7 - NethServer/dev#5742
* Thu Mar 07 2019 Alessandro Polidori <[email protected]> - 1.4.3-1
- Nextcloud: upgrade to v15.0.5 - nethserver/dev#5726
* Tue Feb 12 2019 Giacomo Sanchietti <[email protected]> - 1.4.2-1
- Nextcloud: upgrade to 15.0.4 - NethServer/dev#5708
* Thu Jan 17 2019 Giacomo Sanchietti <[email protected]> - 1.4.1-1
- Nextcloud: upgrade to 15.0.2 - nethserver/dev#5692
* Thu Dec 20 2018 Giacomo Sanchietti <[email protected]> - 1.4.0-1
- Nextcloud: upgrade to 15.0.0 - NethServer/dev#5674
* Mon Dec 03 2018 Davide Principi <[email protected]> - 1.3.0-1
- Nextcloud: upgrade to 14.0.4 - NethServer/dev#5658
* Wed Oct 17 2018 Giacomo Sanchietti <[email protected]> - 1.2.7-1
- Nextcloud: upgrade to 14.0.3 - NethServer/dev#5604
* Wed Sep 26 2018 Giacomo Sanchietti <[email protected]> - 1.2.6-1
- Nextcloud: upgrade to 14.0.1 - nethserver/dev#5588
* Tue Sep 25 2018 Giacomo Sanchietti <[email protected]> - 1.2.5-1
- Nextcloud: upgrade to 14.0.0 - nethserver/dev#5578
* Thu Sep 06 2018 Giacomo Sanchietti <[email protected]> - 1.2.4-1
- Nextcloud: upgrade to 13.0.6 - NethServer/dev#5577
* Wed Aug 01 2018 Giacomo Sanchietti <[email protected]> - 1.2.3-1
- Nextcloud: upgrade to 13.0.5 - NethServer/dev#5556
* Thu Jun 14 2018 Giacomo Sanchietti <[email protected]> - 1.2.2-1
- Improve SSL configuration - NethServer/dev#5509
- Upgrade nextcloud to 13.0.4 - NethServer/dev#5523
- Apache Virtualhost Collision - Bug NethServer/dev#5517
* Tue May 08 2018 Giacomo Sanchietti <[email protected]> - 1.2.1-1
- Nextcloud: upgrade to 13.0.2 - NethServer/dev#5474
* Tue Mar 20 2018 Giacomo Sanchietti <[email protected]> - 1.2.0-1
- Nextcloud: upgrade to v13 & optimizations - NethServer/dev#5427
* Tue Jan 30 2018 Giacomo Sanchietti <[email protected]> - 1.1.11-1
- Nextcloud: upgrade to 12.0.5 - NethServer/dev#5416
* Tue Jan 23 2018 Giacomo Sanchietti <[email protected]> - 1.1.10-1
- Nextcloud: integrity check after upgrade - Bug NethServer/dev#5409
* Tue Dec 19 2017 Giacomo Sanchietti <[email protected]> - 1.1.9-1
- Nextcloud: upgrade to 12.0.4 - NethServer/#5398
* Fri Oct 06 2017 Giacomo Sanchietti <[email protected]> - 1.1.8-1
- Nextcloud 12.0.3 - NS 7.4
* Wed Aug 30 2017 Alessandro Polidori <[email protected]> - 1.1.7-1
- Nextcloud 12.0.2 - NethServer/dev#5342
* Mon Jul 24 2017 Davide Principi <[email protected]> - 1.1.6-1
- ownCloud migration script fixes
* Wed Jul 12 2017 Davide Principi <[email protected]> - 1.1.5-1
- Nextcloud: add logrotate - NethServer/dev#5329
* Wed May 31 2017 Giacomo Sanchietti <[email protected]> - 1.1.4-1
- Nextcloud: update to 12.0.0 - NethServer/dev#5306
* Mon May 22 2017 Giacomo Sanchietti <[email protected]> - 1.1.3-1
- Nextcloud: update to 11.0.3 - NethServer/dev#5285
- Default userPrincipalName is not an email address - Bug NethServer/dev#5284
* Wed May 10 2017 Giacomo Sanchietti <[email protected]> - 1.1.2-1
- Requirements not met for Nextcloud's External Storage App using CIFS/SMB - Bug NethServer/dev#5276
- Upgrade from NS 6 via backup and restore - NethServer/dev#5234
* Mon Apr 24 2017 Giacomo Sanchietti <[email protected]> - 1.1.1-1
- Nextcloud config not backuped - Bug NethServer/dev#5273
* Tue Apr 04 2017 Davide Principi <[email protected]> - 1.1.0-1
- Nextcloud 11 - NethServer/dev#5242
- Upgrade from NS 6 via backup and restore - NethServer/dev#5234
* Thu Dec 15 2016 Giacomo Sanchietti <[email protected]> - 1.0.4-1
- Enable LDAPs protocol on Active Directory clients - NethServer/dev#5161
- Nextcloud: upgrade to version 10.0.2 - NethServer/dev#5155
* Mon Nov 14 2016 Giacomo Sanchietti <[email protected]> - 1.0.3-1
- LDAP account with read-only privileges - NethServer/dev#5145
- Fix https redirect
* Thu Sep 01 2016 Giacomo Sanchietti <[email protected]> - 1.0.2-1
- Apache vhost-default template expansion - NethServer/dev#5088
- Nextcloud: upgrade to version 10 - NethServer/dev#5096
* Wed Aug 24 2016 Giacomo Sanchietti <[email protected]> - 1.0.1-1
- Nextcloud: trusted domains not updated on IP change - NethServer/dev#5076
* Mon Aug 01 2016 Giacomo Sanchietti <[email protected]> - 1.0.0-1
- First Nextcloud release - NethServer/dev#5055