# remirepo spec file for php-bolt # # SPDX-FileCopyrightText: Copyright 2024-2025 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # %{?scl:%scl_package php-bolt} %global debug_package %{nil} %global __debug_install_post /bin/true %global _build_id_links none %global extname bolt %global with_zts 0 %global ininame 40-%{extname}.ini Name: %{?scl_prefix}php-bolt Summary: Protect PHP Source Code Version: 1.0.7 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: Distribuable URL: https://phpbolt.com/ # see https://phpbolt.com/download-phpbolt/ Source0: https://phpbolt.com/wp-content/uploads/2025/11/phpBolt-extension-1.0.7.zip Source1: https://raw.githubusercontent.com/arshidkv12/phpBolt/master/encryption.php # Message from upstream: "You can redistribute" Source2: message.eml %ifarch x86_64 BuildRequires: (%{?scl_prefix}php-devel >= 7.0 with %{?scl_prefix}php-devel < 8.6) %else BuildRequires: (%{?scl_prefix}php-devel >= 8.4 with %{?scl_prefix}php-devel < 8.6) %endif # ABI check Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} %description Protect PHP Source Code * Encrypt and decrypt php source code. * Ensure only licensed people are using. * Free for small and medium companies. * Encode and run PHP files. * Ioncube alternative (free) Encode php source code from your php server. No need any additianal installation. Package built for PHP %(%{__php} -n -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. %prep %setup -q -c cp %{SOURCE1} . cp %{SOURCE2} . cat << 'EOF' | tee %{ininame} ; Enable "%{SUMMARY}" extension module extension = %{extname}.so EOF %build : Nothing to build as tarball provides binaries %install : configuration file install -D -m 644 %{ininame} %{buildroot}%{php_inidir}/%{ininame} : PHP extension ver=$(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;') cd phpBolt-extension-%{version}/linux*64/*$ver [ -d %{_arch}-linux ] && cd %{_arch}-linux if [ -f %{extname}.so ]; then install -D -pm 755 %{extname}.so %{buildroot}%{php_extdir}/%{extname}.so else : Module for PHP $ver not provided exit 1 fi %check : simple NTS module load test %{__php} --no-php-ini \ --define extension=%{buildroot}%{php_extdir}/%{extname}.so \ --ri %{extname} %{__php} --no-php-ini \ --define extension=%{buildroot}%{php_extdir}/%{extname}.so \ --modules | grep -E '^[Bb]olt$' %if %{with_zts} : simple ZTS module load test %{__ztsphp} --no-php-ini \ --define extension=%{buildroot}%{php_ztsextdir}/%{extname}.so \ --modules | grep -E '^[Bb]olt$' %endif %files %{!?_licensedir:%global license %%doc} %license message.eml %doc encryption.php %config(noreplace) %{php_inidir}/%{ininame} %{php_extdir}/%{extname}.so %if %{with_zts} %config(noreplace) %{php_ztsinidir}/%{ininame} %{php_ztsextdir}/%{extname}.so %endif %changelog * Thu Nov 6 2025 Remi Collet - 1.0.7-1 - update to 1.0.7 * Wed Sep 10 2025 Remi Collet - 1.0.6-1 - update to 1.0.6 - re-license spec file to CECILL-2.1 * Fri Mar 22 2024 Remi Collet - 1.0.5-1 - update to 1.0.5 * Fri Mar 15 2024 Remi Collet - 1.0.4-1 - initial package