1 |
%define version 8.1.10 |
%define version 8.1.10 |
2 |
%define rel 1 |
%define rel 2 |
3 |
%define prerel %{nil} |
%define prerel %{nil} |
4 |
|
|
5 |
%if "%{prerel}" != "%{nil}" |
%if "%{prerel}" != "%{nil}" |
30 |
Requires: php-gd |
Requires: php-gd |
31 |
Requires: php-curl |
Requires: php-curl |
32 |
Requires: php-iconv |
Requires: php-iconv |
33 |
Recommends: php-sqlite3 php-pdo_sqlite |
Recommends: php-sqlite3 php-pdo_sqlite php-opcache |
34 |
BuildArch: noarch |
BuildArch: noarch |
35 |
|
|
36 |
%description |
%description |
45 |
mkdir -p %{buildroot}%{_datadir}/%{name} |
mkdir -p %{buildroot}%{_datadir}/%{name} |
46 |
cp -pr * %{buildroot}%{_datadir}/%{name} |
cp -pr * %{buildroot}%{_datadir}/%{name} |
47 |
|
|
48 |
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name} |
49 |
|
mv %{buildroot}%{_datadir}/%{name}/config/ca-bundle.crt %{buildroot}%{_sysconfdir}/%{name} |
50 |
rm -rf %{buildroot}%{_datadir}/%{name}/config |
rm -rf %{buildroot}%{_datadir}/%{name}/config |
51 |
rm -f %{buildroot}%{_datadir}/%{name}/AUTHORS |
rm -f %{buildroot}%{_datadir}/%{name}/AUTHORS |
52 |
rm -f %{buildroot}%{_datadir}/%{name}/COPYING-AGPL |
rm -f %{buildroot}%{_datadir}/%{name}/COPYING-AGPL |
53 |
rm -f %{buildroot}/.htaccess |
rm -f %{buildroot}/.htaccess |
54 |
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{name} |
|
55 |
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} |
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name} |
56 |
pushd %{buildroot}%{_datadir}/%{name} |
pushd %{buildroot}%{_datadir}/%{name} |
57 |
ln -s ../../..%{_sysconfdir}/%{name} config |
ln -s ../../..%{_sysconfdir}/%{name} config |
162 |
%_datadir/%name/.htaccess |
%_datadir/%name/.htaccess |
163 |
%attr(-,root,apache) %{_datadir}/%{name}/apps |
%attr(-,root,apache) %{_datadir}/%{name}/apps |
164 |
%attr(-,root,apache) %{_sysconfdir}/%{name} |
%attr(-,root,apache) %{_sysconfdir}/%{name} |
165 |
|
%attr(-,root,apache) %{_sysconfdir}/%{name}/ca-bundle.crt |
166 |
%attr(-,apache,apache) %{_localstatedir}/lib/%{name} |
%attr(-,apache,apache) %{_localstatedir}/lib/%{name} |
167 |
%config(noreplace) %{webappconfdir}/%{name}.conf |
%config(noreplace) %{webappconfdir}/%{name}.conf |