Name: hestiacp-php-selector Summary: Utility for manage php cli for HestiaCP Version: 0.2.0 Release: 1%{?dist}.%{brepo_dist}.. License: GPL-2.0-or-later Group: System Environment/Base URL: https://www.inferit.ru Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: golang BuildRequires: git Requires: alternatives %undefine _missing_build_ids_terminate_build %description Utility for manage php cli for HestiaCP %prep %setup -q %build make build %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" make DESTDIR=$RPM_BUILD_ROOT install %{__mkdir} -p "$RPM_BUILD_ROOT"%{_sysconfdir}/hestia_php_selector/system/ 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_remi.conf echo "/opt/brepo/php%s/bin/php" > "$RPM_BUILD_ROOT"%{_sysconfdir}/hestia_php_selector/php_sel_path_brepo.conf %check make check %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" %posttrans if [ $1 -eq 1 ]; then /usr/local/hestia_php_selector/hestiacp_php_selector_installer install fi %preun if [ $1 -eq 0 ]; then /usr/local/hestia_php_selector/hestiacp_php_selector_installer delete fi %files %defattr(-,root,root) %doc LICENSE %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/* /usr/local/hestia_php_selector/* %changelog * Thu Jan 16 2025 Alexey Berezhok 0.2.0-1 - Added support brepo php's * Wed Aug 21 2024 Alexey Berezhok 0.1.0-1 - Added hestiacp-php-selector