public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: make tidy and gpgverify optional
Date: Fri, 27 Nov 2026 07:30:38 GMT	[thread overview]
Message-ID: <179576463831.1.2908994152851034304.rpms-php-add78daf3511@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-27  7:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179576463831.1.2908994152851034304.rpms-php-add78daf3511@fedoraproject.org \
    --to=remi@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox