public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-extras] eln: PHP 8.0.12
@ 2026-10-28 15:08 Remi Collet
0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-10-28 15:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php-extras
Branch : eln
Commit : 61f6e09f69ef3f7efbeb1c8c1eed8a59b7476e06
Author : Remi Collet <remi@fedoraproject.org>
Date : 2021-12-06T16:07:43+01:00
Stats : +325/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/php-extras/c/61f6e09f69ef3f7efbeb1c8c1eed8a59b7476e06?branch=eln
Log:
PHP 8.0.12
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bef0323
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/php-8.0.12.tar.xz
diff --git a/php-extras.spec b/php-extras.spec
new file mode 100644
index 0000000..e2b439d
--- /dev/null
+++ b/php-extras.spec
@@ -0,0 +1,323 @@
+# EPEL 9.0, PHP 8.0
+
+# Enabled extension
+%bcond_without sodium
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=2029448
+%bcond_with tidy
+# https://bugzilla.redhat.com/show_bug.cgi?id=2029460
+%bcond_with firebird
+# https://bugzilla.redhat.com/show_bug.cgi?id=2029458
+%bcond_with freetds
+# https://bugzilla.redhat.com/show_bug.cgi?id=2029462
+%bcond_with aspell
+# dead library, not planed for now
+%bcond_with imap
+
+Name: php-extras
+Summary: Additional PHP extensions from the standard PHP distribution
+Version: 8.0.12
+Release: 1%{?dist}
+License: PHP
+URL: https://www.php.net/
+Source0: https://www.php.net/distributions/php-%{version}.tar.xz
+
+BuildRequires: (php-devel >= 8.0 with php-devel < 8.1)
+BuildRequires: php-pdo
+
+
+%description
+PHP is an HTML-embedded scripting language.
+
+This package contains various additional extension for PHP, which
+have not been included in the basic PHP package for RHEL.
+
+
+%if %{with imap}
+%package -n php-imap
+Summary: A module for PHP applications that use IMAP
+
+BuildRequires: krb5-devel, openssl-devel, libc-client-devel
+
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+
+%description -n php-imap
+The php-imap package module will add IMAP (Internet Message Access Protocol)
+support to PHP. IMAP is a protocol for retrieving and uploading e-mail messages
+on mail servers. PHP is an HTML-embedded scripting language. If you need IMAP
+support for PHP applications, you will need to install this package.
+%endif
+
+
+%if %{with tidy}
+%package -n php-tidy
+Summary: Standard PHP module provides tidy library support
+
+BuildRequires: libtidy-devel
+
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+
+%description -n php-tidy
+The php-tidy package contains a dynamic shared object that will
+add support for using the tidy library to PHP.
+%endif
+
+
+%if %{with freetds}
+%package -n php-pdo-dblib
+Summary: PDO driver Microsoft SQL Server and Sybase databases
+
+BuildRequires: freetds-devel
+
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+Requires: php(pdo-abi) = %{php_pdo_api}
+
+Provides: php-pdo_dblib, php-pdo_dblib%{?_isa}
+
+%description -n php-pdo-dblib
+The php-pdo-dblib package contains a dynamic shared object
+that implements the PHP Data Objects (PDO) interface to enable access from
+PHP to Microsoft SQL Server and Sybase databases through the FreeTDS libary.
+%endif
+
+
+%if %{with firebird}
+%package -n php-pdo-firebird
+Summary: PDO driver for Interbase/Firebird databases
+
+# for fb_config command
+BuildRequires: firebird-devel
+
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+Requires: php(pdo-abi) = %{php_pdo_api}
+
+Provides: php-pdo_firebird, php-pdo_firebird%{?_isa}
+
+%description -n php-pdo-firebird
+The php-pdo-firebird package contains the PDO driver for
+Interbase/Firebird databases.
+%endif
+
+
+%if %{with aspell}
+%package -n php-pspell
+Summary: A module for PHP applications for using pspell interfaces
+
+BuildRequires: aspell-devel >= 0.50.0
+
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+
+%description -n php-pspell
+The php-pspell package contains a dynamic shared object that will add
+support for using the pspell library to PHP.
+%endif
+
+
+%if %{with sodium}
+%package -n php-sodium
+Summary: Wrapper for the Sodium cryptographic library
+
+BuildRequires: pkgconfig(libsodium) >= 1.0.9
+
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+
+Provides: php-pecl(libsodium) = %{version}
+Provides: php-pecl(libsodium)%{?_isa} = %{version}
+
+
+%description -n php-sodium
+The php-sodium package provides a simple,
+low-level PHP extension for the libsodium cryptographic library.
+%endif
+
+
+%prep
+%setup -q -n php-%{version}
+
+
+%build
+for mod in \
+%if %{with imap}
+ imap \
+%endif
+%if %{with freetds}
+ pdo_dblib \
+%endif
+%if %{with firebird}
+ pdo_firebird \
+%endif
+%if %{with aspell}
+ pspell \
+%endif
+%if %{with sodium}
+ sodium \
+%endif
+%if %{with tidy}
+ tidy \
+%endif
+; do
+ pushd ext/$mod
+
+ %{_bindir}/phpize
+ %configure \
+ --with-libdir=%{_lib} \
+%if %{with imap}
+ --with-imap=shared --with-kerberos --with-imap-ssl \
+%endif
+%if %{with freetds}
+ --with-pdo-dblib=shared,%{_prefix} \
+%endif
+%if %{with firebird}
+ --with-pdo-firebird=shared \
+%endif
+%if %{with aspell}
+ --with-pspell=shared \
+%endif
+%if %{with sodium}
+ --with-sodium=shared \
+%endif
+%if %{with tidy}
+ --with-tidy=shared,%{_prefix} \
+%endif
+ --with-php-config=%{_bindir}/php-config
+
+ make %{?_smp_mflags}
+
+ popd
+done
+
+
+%check
+for mod in \
+%if %{with imap}
+ imap \
+%endif
+%if %{with freetds}
+ pdo_dblib \
+%endif
+%if %{with firebird}
+ pdo_firebird \
+%endif
+%if %{with aspell}
+ pspell \
+%endif
+%if %{with sodium}
+ sodium \
+%endif
+%if %{with tidy}
+ tidy \
+%endif
+; do
+ : Minimal load test for $mod extension
+ php -d extension=ext/$mod/modules/$mod.so -m | grep -i $mod
+done
+
+: skip known failed tests
+rm ext/tidy/tests/020.phpt
+
+: upstream test suite for extension without Database
+fail=0
+for mod in \
+%if %{with imap}
+ imap \
+%endif
+%if %{with aspell}
+ pspell \
+%endif
+%if %{with sodium}
+ sodium \
+%endif
+%if %{with tidy}
+ tidy \
+%endif
+; do
+ pushd ext/$mod
+ : Upstream tests for $mod extension
+ make test TESTS="-q --show-diff %{?_smp_mflags}" || fail=1
+ popd
+done
+exit $fail
+
+
+%install
+install -d %{buildroot}%{php_extdir}
+install -d %{buildroot}%{php_inidir}
+
+for mod in \
+%if %{with imap}
+ imap \
+%endif
+%if %{with freetds}
+ pdo_dblib \
+%endif
+%if %{with firebird}
+ pdo_firebird \
+%endif
+%if %{with aspell}
+ pspell \
+%endif
+%if %{with sodium}
+ sodium \
+%endif
+%if %{with tidy}
+ tidy \
+%endif
+; do
+ make -C ext/${mod} install INSTALL_ROOT=%{buildroot}
+
+ cat > %{buildroot}%{php_inidir}/30-${mod}.ini <<EOF
+; Enable ${mod} extension module
+extension=${mod}
+EOF
+ cat > files.${mod} <<EOF
+%{php_extdir}/${mod}.so
+%config(noreplace) %{php_inidir}/30-${mod}.ini
+EOF
+done
+
+
+# Notice: PHP License in php-common pulled by each package
+
+%if %{with imap}
+%files -n php-imap -f files.imap
+%endif
+
+%if %{with firebird}
+%files -n php-pdo-firebird -f files.pdo_firebird
+%endif
+
+%if %{with freetds}
+%files -n php-pdo-dblib -f files.pdo_dblib
+%endif
+
+%if %{with aspell}
+%files -n php-pspell -f files.pspell
+%endif
+
+%if %{with sodium}
+%files -n php-sodium -f files.sodium
+%endif
+
+%if %{with tidy}
+%files -n php-tidy -f files.tidy
+%endif
+
+%changelog
+* Mon Dec 6 2021 Remi Collet <rcollet@redhat.com> - 8.0.12-1
+- update to 8.0.12 for EPEL-9, only sodium
+
+* Wed Nov 4 2020 Remi Collet <rcollet@redhat.com> - 7.4.6-1
+- rebase to 7.4.6
+- drop interbase extension (pdo_firebird still available)
+
+* Tue Sep 8 2020 Remi Collet <rcollet@redhat.com> - 7.3.20-1
+- rebase to 7.3.20
+
+* Wed Feb 5 2020 Remi Collet <rcollet@redhat.com> - 7.3.5-1
+- initial package for EPEL-8 and php:7.3
diff --git a/sources b/sources
index e69de29..a908ad7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (php-8.0.12.tar.xz) = 927b15c4443f3741a5325ec7bf387987b405cd5e64e40fd81f1945bf073adda30eeede8e1f98185f505cb61f969cf1abe05b8dad57a3c4e87971e8037bb16b23
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-28 15:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 15:08 [rpms/php-extras] eln: PHP 8.0.12 Remi Collet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox