1 |
%define version 17.0.1 |
%define version 24.0.2 |
2 |
%define release 1 |
%define release 2 |
3 |
|
|
4 |
%define apache_serverroot /usr/share |
%define apache_serverroot /usr/share |
5 |
%define apache_confdir /etc/httpd/conf.d |
%define apache_confdir /etc/httpd/conf.d |
6 |
%define nc_dir %{apache_serverroot}/nextcloud |
%define nc_dir %{apache_serverroot}/nextcloud-src |
7 |
%define nc_config_dir %{nc_dir}/config |
%define nc_config_dir %{nc_dir}/config |
8 |
%define nc_data_dir %{nc_dir}/data |
%define nc_data_dir %{nc_dir}/data |
9 |
|
|
28 |
|
|
29 |
Requires: httpd |
Requires: httpd |
30 |
# Required php packages |
# Required php packages |
31 |
Requires: php71 |
Requires: php74 |
32 |
Requires: php71-php-fpm |
Requires: php74-php-fpm |
33 |
Requires: php71-php-gd |
Requires: php74-php-gd |
34 |
Requires: php71-php-pdo |
Requires: php74-php-pdo |
35 |
Requires: php71-php-mbstring |
Requires: php74-php-mbstring |
36 |
Requires: php71-php-pecl-zip |
Requires: php74-php-pecl-zip |
37 |
Requires: php71-php-imagick |
Requires: php74-php-imagick |
38 |
|
|
39 |
# Recommended php packages |
# Recommended php packages |
40 |
Requires: php71-php-intl |
Requires: php74-php-intl |
41 |
Requires: php71-php-mcrypt |
Requires: php74-php-mcrypt |
42 |
|
|
43 |
# Required php packages for specific apps |
# Required php packages for specific apps |
44 |
Requires: php71-php-ldap |
Requires: php74-php-ldap |
45 |
|
|
46 |
# Required php packages for MariaDB |
# Required php packages for MariaDB |
47 |
Requires: php71-php-mysqlnd |
Requires: php74-php-mysqlnd |
48 |
#rh-php71-php-pdo_mysql |
#rh-php71-php-pdo_mysql |
49 |
|
|
50 |
# Conflicts: nextcloud < 15 |
# Conflicts: nextcloud < 15 |
57 |
nc_data_dir: %{nc_data_dir} |
nc_data_dir: %{nc_data_dir} |
58 |
nc_config_dir: %{nc_config_dir} |
nc_config_dir: %{nc_config_dir} |
59 |
|
|
60 |
|
|
61 |
|
%package src |
62 |
|
Summary: Webtatic Repository |
63 |
|
%description src |
64 |
|
Nextcloud files and configuration. |
65 |
|
|
66 |
|
This package installs as follows: |
67 |
|
nc_dir: %{nc_dir} |
68 |
|
nc_data_dir: %{nc_data_dir} |
69 |
|
nc_config_dir: %{nc_config_dir} |
70 |
|
|
71 |
|
|
72 |
|
|
73 |
%pre |
%pre |
74 |
# true if $1 is greater than or equal $2 |
# true if $1 is greater than or equal $2 |
75 |
verlte() { |
verlte() { |
147 |
%install |
%install |
148 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
149 |
mkdir -p %{buildroot}/%{nc_data_dir} |
mkdir -p %{buildroot}/%{nc_data_dir} |
150 |
mkdir -p %{buildroot}/usr/share |
mkdir -p %{buildroot}/usr/share/nextcloud-src |
151 |
tar xf %{SOURCE0} -C %{buildroot}/usr/share |
tar xf %{SOURCE0} -C %{buildroot}/usr/share/nextcloud-src --strip-components 1 |
152 |
|
#mv %{buildroot}/usr/share/nextcloud %{buildroot}/usr/share/nextcloud-src |
153 |
|
|
154 |
mkdir -p %{buildroot}/%{nc_dir} |
mkdir -p %{buildroot}/%{nc_dir} |
155 |
mkdir -p %{buildroot}/%{nc_dir}/etc |
mkdir -p %{buildroot}/%{nc_dir}/etc |
162 |
cp %{SOURCE1} %{buildroot}/etc/httpd/conf.d |
cp %{SOURCE1} %{buildroot}/etc/httpd/conf.d |
163 |
|
|
164 |
|
|
165 |
%files |
%files src |
166 |
%defattr(0640,root,%{nc_group},0750) |
%defattr(0640,root,%{nc_group},0750) |
167 |
%dir %attr(0775,root,%{nc_group}) %{nc_dir} |
%dir %attr(0775,root,%{nc_group}) %{nc_dir} |
168 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/occ |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/occ |
174 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/lib |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/lib |
175 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/ocm-provider |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/ocm-provider |
176 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/core |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/core |
177 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/settings |
#%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/settings |
178 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/3rdparty |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/3rdparty |
179 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/resources |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/resources |
180 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/themes |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/themes |
185 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/index.html |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/index.html |
186 |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/robots.txt |
%attr(0755,%{nc_user},%{nc_group}) %{nc_dir}/robots.txt |
187 |
%attr(0644,%{nc_user},%{nc_group}) %{nc_dir}/.htaccess |
%attr(0644,%{nc_user},%{nc_group}) %{nc_dir}/.htaccess |
188 |
|
%attr(0644,%{nc_user},%{nc_group}) %{nc_dir}/dist |
189 |
|
|
190 |
%config(noreplace) %attr(0644,%{nc_user},%{nc_group}) %{nc_dir}/.user.ini |
%config(noreplace) %attr(0644,%{nc_user},%{nc_group}) %{nc_dir}/.user.ini |
191 |
%config(noreplace) %attr(0644,root,root) /etc/httpd/conf.d/nextcloud.conf |
%config(noreplace) %attr(0644,root,root) /etc/httpd/conf.d/nextcloud.conf |
194 |
|
|
195 |
|
|
196 |
%changelog |
%changelog |
197 |
|
* Fri Jul 08 2022 Jean-Philippe Pialasse <tests@pialasse.com> 24.0.2-2.sme |
198 |
|
- update to release 24.0.2 |
199 |
|
- make rpm a -src to avoid conflict between webupdates and rpm |
200 |
|
|
201 |
|
* Sun Nov 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 20.0.1-2.sme |
202 |
|
- first import in SME10 [SME: 11086] |
203 |
|
- update to release 20.0.1 |
204 |
|
|
205 |
* Sun Dec 15 2019 Jean-Philipe Pialasse <tests@pialasse.com> 17.0.1-1.sme |
* Sun Dec 15 2019 Jean-Philipe Pialasse <tests@pialasse.com> 17.0.1-1.sme |
206 |
- update to release 17.0.1 |
- update to release 17.0.1 |
207 |
|
|