Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Commit 67bbe64

Browse files
committed
Latest upstream
1 parent f74d855 commit 67bbe64

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

SPECS/php71u.spec

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,12 @@
5858
%global with_libgd 0
5959
%endif
6060

61-
%if 0%{?fedora} >= 22
62-
%global with_libpcre 1
63-
%else
64-
%global with_libpcre 0
65-
%endif
66-
6761
%global with_zip 1
6862
%global with_libzip 0
6963
# Not yet compatible with firebird 3
7064
# https://bugs.php.net/bug.php?id=73512
7165
%global with_firebird 1
7266

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-
7967
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
8068
%global with_systemd 1
8169
%else
@@ -84,7 +72,7 @@
8472

8573
Summary: PHP scripting language for creating dynamic web sites
8674
Name: php71u
87-
Version: 7.1.26
75+
Version: 7.1.27
8876
Release: 1.ius%{?dist}
8977
# All files licensed under PHP version 3.01, except
9078
# Zend is licensed under Zend
@@ -148,10 +136,17 @@ BuildRequires: pam-devel
148136
BuildRequires: libstdc++-devel, openssl-devel
149137
BuildRequires: sqlite-devel >= 3.6.0
150138
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
153144
%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
155150
BuildRequires: libtool-ltdl-devel
156151
%if %{with_libzip}
157152
BuildRequires: libzip-devel >= 0.11
@@ -387,9 +382,6 @@ package and the php-cli package.
387382
Group: Development/Libraries
388383
Summary: Files needed for building PHP extensions
389384
Requires: php-cli%{?_isa} = %{version}-%{release}, autoconf, automake
390-
%if %{with_libpcre}
391-
Requires: pcre-devel%{?_isa}
392-
%endif
393385
%if %{with_zts}
394386
Provides: php-zts-devel = %{version}-%{release}
395387
Provides: php-zts-devel%{?_isa} = %{version}-%{release}
@@ -814,7 +806,12 @@ Summary: A database abstraction layer module for PHP applications
814806
Group: Development/Languages
815807
# All files licensed under PHP version 3.01
816808
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
818815
Requires: php-common%{?_isa} = %{version}-%{release}
819816
Provides: php-dba = %{version}-%{release}
820817
Provides: php-dba%{?_isa} = %{version}-%{release}
@@ -1171,9 +1168,6 @@ ln -sf ../configure
11711168
--without-gdbm \
11721169
--with-jpeg-dir=%{_prefix} \
11731170
--with-openssl \
1174-
%if %{with_libpcre}
1175-
--with-pcre-regex=%{_prefix} \
1176-
%endif
11771171
--with-zlib \
11781172
--with-layout=GNU \
11791173
--with-kerberos \
@@ -1591,7 +1585,9 @@ for mod in pgsql odbc ldap snmp xmlrpc imap json \
15911585
# some extensions have their own config file
15921586
if [ -f ${ini} ]; then
15931587
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
1588+
%if %{with_zts}
15941589
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/${ini}
1590+
%endif
15951591
else
15961592
cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini} <<EOF
15971593
; Enable ${mod} extension module
@@ -1649,9 +1645,11 @@ cat files.zip >> files.common
16491645

16501646
# The default Zend OPcache blacklist file
16511647
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist
1648+
%if %{with_zts}
16521649
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache-default.blacklist
16531650
sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
16541651
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/10-opcache.ini
1652+
%endif
16551653

16561654
# Install the macros file:
16571655
sed -e "s/@PHP_APIVER@/%{apiver}%{isasuffix}/" \
@@ -1667,7 +1665,9 @@ install -m 644 -D macros.php \
16671665

16681666
# Remove unpackaged files
16691667
rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
1668+
%if %{with_zts}
16701669
$RPM_BUILD_ROOT%{_libdir}/php-zts/modules/*.a \
1670+
%endif
16711671
$RPM_BUILD_ROOT%{_bindir}/{phptar} \
16721672
$RPM_BUILD_ROOT%{_datadir}/pear \
16731673
$RPM_BUILD_ROOT%{_libdir}/libphp7.la
@@ -1869,6 +1869,9 @@ fi
18691869

18701870

18711871
%changelog
1872+
* Thu Mar 07 2019 Carl George <carl@george.computer> - 7.1.27-1.ius
1873+
- Latest upstream
1874+
18721875
* Fri Jan 11 2019 Carl George <carl@george.computer> - 7.1.26-1.ius
18731876
- Latest upstream
18741877

0 commit comments

Comments
 (0)