58
58
%global with_libgd 0
59
59
%endif
60
60
61
- %if 0%{?fedora } >= 22
62
- %global with_libpcre 1
63
- %else
64
- %global with_libpcre 0
65
- %endif
66
-
67
61
%global with_zip 1
68
62
%global with_libzip 0
69
63
# Not yet compatible with firebird 3
70
64
# https://bugs.php.net/bug.php?id=73512
71
65
%global with_firebird 1
72
66
73
- %if 0%{?fedora } >= 18 || 0%{?rhel } >= 7
74
- %global db_devel libdb-devel
75
- %else
76
- %global db_devel db4-devel
77
- %endif
78
-
79
67
%if 0%{?fedora } >= 19 || 0%{?rhel } >= 7
80
68
%global with_systemd 1
81
69
%else
84
72
85
73
Summary: PHP scripting language for creating dynamic web sites
86
74
Name: php71u
87
- Version: 7.1.26
75
+ Version: 7.1.27
88
76
Release: 1.ius%{?dist }
89
77
# All files licensed under PHP version 3.01, except
90
78
# Zend is licensed under Zend
@@ -148,10 +136,17 @@ BuildRequires: pam-devel
148
136
BuildRequires: libstdc++-devel, openssl-devel
149
137
BuildRequires: sqlite-devel >= 3.6.0
150
138
BuildRequires: zlib-devel, smtpdaemon, libedit-devel
151
- %if %{with_libpcre }
152
- BuildRequires: pcre-devel >= 8.38
139
+ BuildRequires: bzip2
140
+ %if 0%{?fedora } >= 27 || 0%{?rhel } >= 8
141
+ BuildRequires: perl-interpreter
142
+ %else
143
+ BuildRequires: perl
153
144
%endif
154
- BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
145
+ BuildRequires: autoconf
146
+ BuildRequires: automake
147
+ BuildRequires: gcc
148
+ BuildRequires: gcc-c++
149
+ BuildRequires: libtool
155
150
BuildRequires: libtool-ltdl-devel
156
151
%if %{with_libzip }
157
152
BuildRequires: libzip-devel >= 0.11
@@ -387,9 +382,6 @@ package and the php-cli package.
387
382
Group: Development/Libraries
388
383
Summary: Files needed for building PHP extensions
389
384
Requires: php-cli%{?_isa } = %{version }-%{release }, autoconf, automake
390
- %if %{with_libpcre }
391
- Requires: pcre-devel%{?_isa }
392
- %endif
393
385
%if %{with_zts }
394
386
Provides: php-zts-devel = %{version }-%{release }
395
387
Provides: php-zts-devel%{?_isa } = %{version }-%{release }
@@ -814,7 +806,12 @@ Summary: A database abstraction layer module for PHP applications
814
806
Group: Development/Languages
815
807
# All files licensed under PHP version 3.01
816
808
License: PHP
817
- BuildRequires: %{db_devel }, tokyocabinet-devel
809
+ %if 0%{?fedora } >= 14 || 0%{?rhel } >= 7
810
+ BuildRequires: libdb-devel
811
+ %else
812
+ BuildRequires: db4-devel
813
+ %endif
814
+ BuildRequires: tokyocabinet-devel
818
815
Requires: php-common%{?_isa } = %{version }-%{release }
819
816
Provides: php-dba = %{version }-%{release }
820
817
Provides: php-dba%{?_isa } = %{version }-%{release }
@@ -1171,9 +1168,6 @@ ln -sf ../configure
1171
1168
--without-gdbm \
1172
1169
--with-jpeg-dir= %{_prefix } \
1173
1170
--with-openssl \
1174
- %if %{with_libpcre }
1175
- --with-pcre-regex= %{_prefix } \
1176
- %endif
1177
1171
--with-zlib \
1178
1172
--with-layout= GNU \
1179
1173
--with-kerberos \
@@ -1591,7 +1585,9 @@ for mod in pgsql odbc ldap snmp xmlrpc imap json \
1591
1585
# some extensions have their own config file
1592
1586
if [ -f ${ini} ]; then
1593
1587
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir }/php.d/${ini}
1588
+ %if %{with_zts }
1594
1589
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir }/php-zts.d/${ini}
1590
+ %endif
1595
1591
else
1596
1592
cat > $RPM_BUILD_ROOT%{_sysconfdir }/php.d/${ini} << EOF
1597
1593
; Enable ${mod} extension module
@@ -1649,9 +1645,11 @@ cat files.zip >> files.common
1649
1645
1650
1646
# The default Zend OPcache blacklist file
1651
1647
install -m 644 %{SOURCE51 } $RPM_BUILD_ROOT%{_sysconfdir }/php.d/opcache-default.blacklist
1648
+ %if %{with_zts }
1652
1649
install -m 644 %{SOURCE51 } $RPM_BUILD_ROOT%{_sysconfdir }/php-zts.d/opcache-default.blacklist
1653
1650
sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
1654
1651
-i $RPM_BUILD_ROOT%{_sysconfdir }/php-zts.d/10-opcache.ini
1652
+ %endif
1655
1653
1656
1654
# Install the macros file:
1657
1655
sed -e "s/@PHP_APIVER@/%{apiver }%{isasuffix }/" \
@@ -1667,7 +1665,9 @@ install -m 644 -D macros.php \
1667
1665
1668
1666
# Remove unpackaged files
1669
1667
rm -rf $RPM_BUILD_ROOT%{_libdir }/php/modules/*.a \
1668
+ %if %{with_zts }
1670
1669
$RPM_BUILD_ROOT%{_libdir }/php-zts/modules/*.a \
1670
+ %endif
1671
1671
$RPM_BUILD_ROOT%{_bindir }/{phptar} \
1672
1672
$RPM_BUILD_ROOT%{_datadir }/pear \
1673
1673
$RPM_BUILD_ROOT%{_libdir }/libphp7.la
1869
1869
1870
1870
1871
1871
%changelog
1872
+ * Thu Mar 07 2019 Carl George <carl@george.computer> - 7.1.27-1.ius
1873
+ - Latest upstream
1874
+
1872
1875
* Fri Jan 11 2019 Carl George <carl@george.computer> - 7.1.26-1.ius
1873
1876
- Latest upstream
1874
1877
0 commit comments