public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: make tidy and gpgverify optional
@ 2026-11-27 7:30 Remi Collet
0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27 7:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : add78daf35115b9f6face929657d1da95fa0d160
Author : Remi Collet <remi@fedoraproject.org>
Date : 2020-05-15T11:14:52+02:00
Stats : +13/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/add78daf35115b9f6face929657d1da95fa0d160?branch=private-php86
Log:
make tidy and gpgverify optional
---
diff --git a/php.spec b/php.spec
index fe48f0b..9c34f68 100644
--- a/php.spec
+++ b/php.spec
@@ -42,6 +42,7 @@
%global with_sodium 1
%global with_pspell 1
%global with_lmdb 1
+%global with_tidy 1
%else
%global with_zts 0
%global with_firebird 0
@@ -50,6 +51,7 @@
%global with_sodium 0
%global with_pspell 0
%global with_lmdb 0
+%global with_tidy 0
%endif
%global upver 7.4.6
@@ -572,6 +574,7 @@ Requires: php-common%{?_isa} = %{version}-%{release}
The php-dba package contains a dynamic shared object that will add
support for using the DBA database abstraction layer to PHP.
+%if %{with_tidy}
%package tidy
Summary: Standard PHP module provides tidy library support
# All files licensed under PHP version 3.01
@@ -582,6 +585,7 @@ BuildRequires: libtidy-devel
%description 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 pdo-dblib
@@ -698,7 +702,7 @@ in pure PHP.
%prep
-%{gpgverify} --keyring='%{SOURCE20}' --signature='%{SOURCE21}' --data='%{SOURCE0}'
+%{?gpgverify:%{gpgverify} --keyring='%{SOURCE20}' --signature='%{SOURCE21}' --data='%{SOURCE0}'}
%setup -q -n php-%{upver}%{?rcver}
@@ -942,7 +946,9 @@ build --libdir=%{_libdir}/php \
--with-pspell=shared \
%endif
--enable-phar=shared \
+%if %{with_tidy}
--with-tidy=shared,%{_prefix} \
+%endif
--enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
--enable-shmop=shared \
--enable-posix=shared \
@@ -1073,7 +1079,9 @@ build --includedir=%{_includedir}/php-zts \
--with-pspell=shared \
%endif
--enable-phar=shared \
+%if %{with_tidy}
--with-tidy=shared,%{_prefix} \
+%endif
--enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared \
--enable-shmop=shared \
--enable-posix=shared \
@@ -1215,7 +1223,9 @@ for mod in pgsql odbc ldap snmp \
sqlite3 \
enchant phar fileinfo intl \
ffi \
+%if %{with_tidy}
tidy \
+%endif
%if %{with_pspell}
pspell \
%endif
@@ -1468,7 +1478,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
%files gmp -f files.gmp
%files dba -f files.dba
%files pdo -f files.pdo
+%if %{with_tidy}
%files tidy -f files.tidy
+%endif
%if %{with_freetds}
%files pdo-dblib -f files.pdo_dblib
%endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 7:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 7:30 [rpms/php] private-php86: make tidy and gpgverify optional Remi Collet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox