File php7-imap-reenabled.diff of Package php7

--- php7.spec	2020-05-13 14:00:23.000000000 +0200
+++ php7.spec	2020-07-02 11:23:13.276350874 +0200
@@ -93,6 +93,7 @@
 BuildRequires:  gcc-c++
 BuildRequires:  gd-devel
 BuildRequires:  gmp-devel
+BuildRequires:  imap-devel
 BuildRequires:  gpg2
 BuildRequires:  krb5-devel
 BuildRequires:  libapparmor-devel
@@ -485,6 +486,17 @@
 Unicode character set. Supported character sets depend on the iconv
 implementation of your system.
 
+%package imap
+Summary:        IMAP protocol support for PHP
+Group:          Development/Libraries/PHP
+Requires:       %{name} = %{version}
+Provides:       php-imap = %{version}
+Obsoletes:      php5-imap
+
+%description imap
+These functions enable you to operate with the IMAP protocol, as well
+as the NNTP, POP3 and local mailbox access methods.
+
 %package intl
 Summary:        ICU integration for PHP
 Group:          Development/Libraries/PHP
@@ -1105,6 +1117,8 @@
     --with-gettext=shared \
     --with-gmp=shared \
     --with-iconv=shared \
+    --with-imap=shared \
+    --with-imap-ssl \
     --with-kerberos \
     --enable-json=shared \
     --with-ldap=shared \
@@ -1429,6 +1443,11 @@
 %{extension_dir}/iconv.so
 %config(noreplace) %{php_sysconf}/conf.d/iconv.ini
 
+%files imap
+%defattr(644,root,root,755)
+%{extension_dir}/imap.so
+%config(noreplace) %{php_sysconf}/conf.d/imap.ini
+
 %files intl
 %defattr(-, root, root)
 %{extension_dir}/intl.so
openSUSE Build Service is sponsored by