summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-03-07 08:05:45 +0100
committerRemi Collet <fedora@famillecollet.com>2016-03-07 08:05:45 +0100
commit7b94bbc34b972ae3be3f862891a4f3507b428e45 (patch)
treedce90dd488cebbeb4f0a744ff30b68bb74207652
parentc6a7ee8f68073c12de9f3c13fbfff438007669ef (diff)
php-pecl-apcu-bc: fix macro
-rw-r--r--php-pecl-apcu-bc.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/php-pecl-apcu-bc.spec b/php-pecl-apcu-bc.spec
index adbf61f..caa82b8 100644
--- a/php-pecl-apcu-bc.spec
+++ b/php-pecl-apcu-bc.spec
@@ -21,7 +21,7 @@
%global proj_name apcu_bc
%global pecl_name apcu-bc
%global ext_name apc
-%global apcver %(%{_bindir}/php -r 'echo phpversion("apcu");' 2>/dev/null || echo 65536)
+%global apcver %(%{_bindir}/php -r 'echo (phpversion("apcu")?:0);' 2>/dev/null || echo 65536)
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
# After 40-apcu.ini
%global ini_name 50-%{ext_name}.ini
@@ -33,7 +33,7 @@ Version: 1.0.3
Release: 0.1.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{proj_name}-%{version}-%{gh_short}.tar.gz
%else
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: http://pecl.php.net/get/%{proj_name}-%{version}.tgz
%endif
@@ -238,6 +238,9 @@ fi
%changelog
+* Mon Mar 7 2016 Remi Collet <remi@fedoraproject.org> - 1.0.3-2
+- fix apcver macro definition
+
* Thu Feb 11 2016 Remi Collet <remi@fedoraproject.org> - 1.0.3-1
- Update to 1.0.3 (beta)
@@ -261,4 +264,4 @@ fi
* Fri Dec 4 2015 Remi Collet <remi@fedoraproject.org> - 5.1.2-0.1.20151204git52b97a7
- test build of upcomming 5.1.2
-- initial package \ No newline at end of file
+- initial package