Browse Source

php72-7.2.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11320 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
e457ef3457
1 changed files with 19 additions and 4 deletions
  1. 19 4
      p/php72/php72-vl.spec

+ 19 - 4
p/php72/php72-vl.spec

@@ -1,5 +1,10 @@
+%bcond_with debug
 %bcond_without apache2
 
+%if %{with debug}
+%define __spec_install_post /usr/lib/rpm/brp-compress 
+%endif
+
 %global majorver 72
 %global ap_suffix 7
 %global _name php%{majorver}
@@ -45,7 +50,7 @@
 Name: php72
 Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
 Summary(ja): HTML 埋め込み型スクリプト言語 PHP
-Version: 7.2.0
+Version: 7.2.1
 Release: 1%{_dist_release}
 Conflicts: php5 < 5.6.11
 
@@ -482,7 +487,16 @@ export EXTENSION_DIR=%{_libdir}/%{_name}
 # Shell function to configure and build a PHP tree.
 build() {
 ln -sf ../configure
-CFLAGS="%{optflags} -fPIC" \
+
+%if %{with debug}
+export CFLAGS="%{optflags} -fPIC -g"
+export CXXFLAGS="%{optflags} -fPIC -g"
+%else
+export CFLAGS="%{optflags} -fPIC"
+export CXXFLAGS="%{optflags} -fPIC"
+%endif
+
+
 %configure \
   --cache-file=../config.cache \
   --prefix=%{_prefix} \
@@ -522,9 +536,7 @@ CFLAGS="%{optflags} -fPIC" \
   --with-gettext \
   --with-gmp \
   --with-imap=shared --with-imap-ssl \
-%if %{?_dist_release} != "vl4"
   --with-kerberos \
-%endif
   --with-ldap=shared \
   --with-mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd \
   --with-openssl \
@@ -994,6 +1006,9 @@ rm -f files.*
 
 #======================================================================
 %changelog
+* Thu Jan 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.2.1-1
+- new upstream release.
+
 * Mon Dec 18 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.2.0-1
 - new upstream release.
 - changed %%name.