|
|
|
@ -29,7 +29,8 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
touch "$RPM_BUILD_ROOT"%{_sysconfdir}/hestia_php_selector/system/lock
|
|
|
|
|
%{__mkdir} -p "$RPM_BUILD_ROOT"/usr/local/hestia_php_selector/
|
|
|
|
|
%{__install} -D -m 755 installer.sh "$RPM_BUILD_ROOT"/usr/local/hestia_php_selector/hestiacp_php_selector_installer
|
|
|
|
|
echo "/usr/bin/php%s" > "$RPM_BUILD_ROOT"%{_sysconfdir}/hestia_php_selector/php_sel_path.conf
|
|
|
|
|
echo "/usr/bin/php%s" > "$RPM_BUILD_ROOT"%{_sysconfdir}/hestia_php_selector/php_sel_path_remi.conf
|
|
|
|
|
echo "/opt/brepo/php%s/bin/php" > "$RPM_BUILD_ROOT"%{_sysconfdir}/hestia_php_selector/php_sel_path_brepo.conf
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
@ -51,8 +52,10 @@ fi
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/hestia_php_selector/php_sel_path.conf
|
|
|
|
|
%attr(0644, root, root) %{_sysconfdir}/hestia_php_selector/php_sel_path.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/hestia_php_selector/php_sel_path_remi.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/hestia_php_selector/php_sel_path_brepo.conf
|
|
|
|
|
%attr(0644, root, root) %{_sysconfdir}/hestia_php_selector/php_sel_path_remi.conf
|
|
|
|
|
%attr(0644, root, root) %{_sysconfdir}/hestia_php_selector/php_sel_path_brepo.conf
|
|
|
|
|
%attr(0755, root, root) %{_bindir}/hestiacp-php-selector
|
|
|
|
|
%attr(0755, root, root) %{_bindir}/hestiacp-php-admin
|
|
|
|
|
%{_sysconfdir}/hestia_php_selector/*
|
|
|
|
|