summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-06-06 20:03:24 +0200
committerRemi Collet <fedora@famillecollet.com>2016-06-06 20:03:24 +0200
commit3b705747daf5dc953315e8776cde92f912fb1351 (patch)
tree6f5033081965d92247e3e8d244dd998cd5a44bfc
parentf15551858b3e15b79967e8328daf7b28f5b75f6a (diff)
php-pecl-yaml: 1.3.0b1 (php 5)
-rw-r--r--REFLECTION2
-rw-r--r--php-pecl-yaml.spec21
2 files changed, 14 insertions, 9 deletions
diff --git a/REFLECTION b/REFLECTION
index 335839f..4242601 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #174 yaml version 1.2.0 ] {
+Extension [ <persistent> extension #189 yaml version 1.3.0b1 ] {
- Dependencies {
Dependency [ date (Optional) ]
diff --git a/php-pecl-yaml.spec b/php-pecl-yaml.spec
index e2bb3c2..9a2ba77 100644
--- a/php-pecl-yaml.spec
+++ b/php-pecl-yaml.spec
@@ -15,10 +15,9 @@
%else
%global sub_prefix %{scl_prefix}
%endif
+%scl_package php-pecl-yaml
%endif
-%{?scl: %scl_package php-pecl-yaml}
-
%global with_zts 0%{?__ztsphp:1}
%global pecl_name yaml
%if "%{php_version}" < "5.6"
@@ -26,16 +25,17 @@
%else
%global ini_name 40-%{pecl_name}.ini
%endif
+%global prever b1
Summary: PHP Bindings for yaml
Name: %{?sub_prefix}php-pecl-yaml
-Version: 1.2.0
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.3.0
+Release: 0.1.%{prever}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: MIT
Group: Development/Languages
URL: http://pecl.php.net/package/yaml
-Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Source: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel >= 5.2.0
@@ -50,8 +50,10 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+%if "%{?scl_prefix}" != "%{?sub_prefix}"
Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
+%endif
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}
# Other third party repo stuff
@@ -91,7 +93,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -c -q
-mv %{pecl_name}-%{version} NTS
+mv %{pecl_name}-%{version}%{?prever} NTS
# Remove test file to avoid regsitration
sed -e 's/role="test"/role="src"/' \
@@ -105,8 +107,8 @@ sed -e 's:/lib:/$PHP_LIBDIR:' -i config.m4
# Check upstream version (often broken)
extver=$(sed -n '/#define PHP_YAML_VERSION/{s/.* "//;s/".*$//;p}' php_yaml.h)
-if test "x${extver}" != "x%{version}"; then
- : Error: Upstream version is ${extver}, expecting %{version}.
+if test "x${extver}" != "x%{version}%{?prever}"; then
+ : Error: Upstream version is ${extver}, expecting %{version}%{?prever}.
exit 1
fi
cd ..
@@ -255,6 +257,9 @@ fi
%changelog
+* Mon Jun 6 2016 Remi Collet <remi@fedoraproject.org> - 1.3.0-0.1.b1
+- Update to 1.3.0b1 (beta)
+
* Wed Mar 9 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-4
- adapt for F24