summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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