From c1554a5063710c9efb785ea38d493fb86ab07f07 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 29 Oct 2025 08:29:44 +0100 Subject: [PATCH] fix the package descriptions add missing dependency on net-snmp Resolves: RHEL-105827 --- php8.4.spec | 66 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/php8.4.spec b/php8.4.spec index 0f9f7fe..67d671e 100644 --- a/php8.4.spec +++ b/php8.4.spec @@ -6,13 +6,16 @@ # Please preserve changelog entries # +# Option to build as php8.4 with same provides +# php-common is the pivot package required by all +# Only used by RHEL +%bcond_without rename + # API/ABI check %global apiver 20240924 %global zendver 20240924 %global pdover 20240423 -%bcond_without rename - # we don't want -z defs linker flag %undefine _strict_symbol_defs_build @@ -71,7 +74,7 @@ Name: php%{major_version} Name: php %endif Version: %{upver}%{?rcver:~%{rcver}} -Release: 3%{?dist} +Release: 4%{?dist} # All files licensed under PHP version 3.01, except # Zend is licensed under Zend # TSRM is licensed under BSD @@ -220,7 +223,7 @@ non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. %if %{with modphp} -The php package contains the module (often referred to as mod_php) +The %{name} package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server when running in prefork mode. This module is deprecated. %endif @@ -240,7 +243,7 @@ Provides: php-cli%{?_isa} = %{version}-%{release} %endif %description cli -The php-cli package contains the command-line interface +The %{name}-cli package contains the command-line interface executing PHP scripts, /usr/bin/php, and the CGI interface. @@ -254,7 +257,7 @@ Provides: php-dbg%{?_isa} = %{version}-%{release} %endif %description dbg -The php-dbg package contains the interactive PHP debugger. +The %{name}-dbg package contains the interactive PHP debugger. %package fpm @@ -333,8 +336,8 @@ Provides: php-common%{?_isa} = %{version}-%{release} %endif %description common -The php-common package contains files used by both the php -package and the php-cli package. +The %{name}-common package contains files used by both the %{name} +package and the %{name}-cli package. %package devel Summary: Files needed for building PHP extensions @@ -366,7 +369,7 @@ Recommends: php-nikic-php-parser5 >= 5.0.0 %description devel -The php-devel package contains the files needed for building PHP +The %{name}-devel package contains the files needed for building PHP extensions. If you need to compile your own PHP extensions, you will need to install this package. @@ -407,7 +410,7 @@ Provides: php-ldap%{?_isa} = %{version}-%{release} %endif %description ldap -The php-ldap adds Lightweight Directory Access Protocol (LDAP) +The %{name}-ldap adds Lightweight Directory Access Protocol (LDAP) support to PHP. LDAP is a set of protocols for accessing directory services over the Internet. PHP is an HTML-embedded scripting language. @@ -429,7 +432,7 @@ Provides: php-pdo%{?_isa} = %{version}-%{release} %endif %description pdo -The php-pdo package contains a dynamic shared object that will add +The %{name}-pdo package contains a dynamic shared object that will add a database access abstraction layer to PHP. This module provides a common interface for accessing MySQL, PostgreSQL or other databases. @@ -451,7 +454,7 @@ Provides: php-mysqlnd%{?_isa} = %{version}-%{release} %endif %description mysqlnd -The php-mysqlnd package contains a dynamic shared object that will add +The %{name}-mysqlnd package contains a dynamic shared object that will add MySQL database support to PHP. MySQL is an object-relational database management system. PHP is an HTML-embeddable scripting language. If you need MySQL support for PHP applications, you will need to install @@ -477,7 +480,7 @@ Provides: php-pgsql%{?_isa} = %{version}-%{release} %endif %description pgsql -The php-pgsql package add PostgreSQL database support to PHP. +The %{name}-pgsql package add PostgreSQL database support to PHP. PostgreSQL is an object-relational database management system that supports almost all SQL constructs. PHP is an HTML-embedded scripting language. If you need back-end support for @@ -501,7 +504,7 @@ Provides: php-process%{?_isa} = %{version}-%{release} %endif %description process -The php-process package contains dynamic shared objects which add +The %{name}-process package contains dynamic shared objects which add support to PHP using system interfaces for inter-process communication. @@ -522,7 +525,7 @@ Provides: php-odbc%{?_isa} = %{version}-%{release} %endif %description odbc -The php-odbc package contains a dynamic shared object that will add +The %{name}-odbc package contains a dynamic shared object that will add database support through ODBC to PHP. ODBC is an open specification which provides a consistent API for developers to use for accessing data sources (which are often, but not always, databases). PHP is an @@ -543,7 +546,7 @@ Provides: php-soap%{?_isa} = %{version}-%{release} %endif %description soap -The php-soap package contains a dynamic shared object that will add +The %{name}-soap package contains a dynamic shared object that will add support to PHP for using the SOAP web services protocol. %if %{with firebird} @@ -564,7 +567,7 @@ Provides: php-pdo-firebird%{?_isa} = %{version}-%{release} %endif %description pdo-firebird -The php-pdo-firebird package contains the PDO driver for +The %{name}-pdo-firebird package contains the PDO driver for Interbase/Firebird databases. %endif @@ -573,6 +576,7 @@ Summary: A module for PHP applications that query SNMP-managed devices # All files licensed under PHP version 3.01 License: PHP-3.01 Requires: %{name}-common%{?_isa} = %{version}-%{release} +Requires: net-snmp BuildRequires: net-snmp-devel %if %{with rename} Conflicts: php-snmp < %{major_version} @@ -581,7 +585,7 @@ Provides: php-snmp%{?_isa} = %{version}-%{release} %endif %description snmp -The php-snmp package contains a dynamic shared object that will add +The %{name}-snmp package contains a dynamic shared object that will add support for querying SNMP devices to PHP. PHP is an HTML-embeddable scripting language. If you need SNMP support for PHP applications, you will need to install this package and the php package. @@ -607,7 +611,7 @@ Provides: php-xml%{?_isa} = %{version}-%{release} %endif %description xml -The php-xml package contains dynamic shared objects which add support +The %{name}-xml package contains dynamic shared objects which add support to PHP for manipulating XML documents using the DOM tree, and performing XSL transformations on XML documents. @@ -627,7 +631,7 @@ Provides: php-mbstring%{?_isa} = %{version}-%{release} %endif %description mbstring -The php-mbstring package contains a dynamic shared object that will add +The %{name}-mbstring package contains a dynamic shared object that will add support for multi-byte string handling to PHP. %package gd @@ -643,7 +647,7 @@ Provides: php-gd%{?_isa} = %{version}-%{release} %endif %description gd -The php-gd package contains a dynamic shared object that will add +The %{name}-gd package contains a dynamic shared object that will add support for using the gd graphics library to PHP. %package bcmath @@ -659,7 +663,7 @@ Provides: php-bcmath%{?_isa} = %{version}-%{release} %endif %description bcmath -The php-bcmath package contains a dynamic shared object that will add +The %{name}-bcmath package contains a dynamic shared object that will add support for using the bcmath library to PHP. %package gmp @@ -700,7 +704,7 @@ Provides: php-dba%{?_isa} = %{version}-%{release} %endif %description dba -The php-dba package contains a dynamic shared object that will add +The %{name}-dba package contains a dynamic shared object that will add support for using the DBA database abstraction layer to PHP. %if %{with tidy} @@ -717,7 +721,7 @@ Provides: php-tidy%{?_isa} = %{version}-%{release} %endif %description tidy -The php-tidy package contains a dynamic shared object that will add +The %{name}-tidy package contains a dynamic shared object that will add support for using the tidy library to PHP. %endif @@ -737,7 +741,7 @@ Provides: php-pdo-dblib%{?_isa} = %{version}-%{release} %endif %description pdo-dblib -The php-pdo-dblib package contains a dynamic shared object +The %{name}-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 library. %endif @@ -755,7 +759,7 @@ Provides: php-embedded%{?_isa} = %{version}-%{release} %endif %description embedded -The php-embedded package contains a library which can be embedded +The %{name}-embedded package contains a library which can be embedded into applications to provide PHP scripting language support. %package intl @@ -773,7 +777,7 @@ Provides: php-intl%{?_isa} = %{version}-%{release} %endif %description intl -The php-intl package contains a dynamic shared object that will add +The %{name}-intl package contains a dynamic shared object that will add support for using the ICU library to PHP. %package enchant @@ -789,7 +793,7 @@ Provides: php-enchant%{?_isa} = %{version}-%{release} %endif %description enchant -The php-enchant package contains a dynamic shared object that will add +The %{name}-enchant package contains a dynamic shared object that will add support for using the enchant library to PHP. %if %{with sodium} @@ -810,7 +814,7 @@ Provides: php-sodium%{?_isa} = %{version}-%{release} %endif %description sodium -The php-sodium package provides a simple, +The %{name}-sodium package provides a simple, low-level PHP extension for the libsodium cryptographic library. %endif @@ -1650,6 +1654,10 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || : %changelog +* Tue Oct 28 2025 Remi Collet - 8.4.14-4 +- fix the package descriptions +- add missing dependency on net-snmp + * Thu Oct 23 2025 Remi Collet - 8.4.15-3 - fix tmpfiles.d configuration file name - fix spec file name