summaryrefslogtreecommitdiffstats
path: root/php-pecl-pq.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-pq.spec')
-rw-r--r--php-pecl-pq.spec26
1 files changed, 8 insertions, 18 deletions
diff --git a/php-pecl-pq.spec b/php-pecl-pq.spec
index 77886aa..93f3d9d 100644
--- a/php-pecl-pq.spec
+++ b/php-pecl-pq.spec
@@ -26,31 +26,22 @@
# Build using "--with tests" to enable tests
%global with_tests 0%{?_with_tests:1}
%endif
-%if "%{php_version}" < "5.6"
-# After raph, json
-%global ini_name z-%{pecl_name}.ini
-%else
-# After 40-json, 40-raphf
%global ini_name 50-%{pecl_name}.ini
-%endif
Summary: PostgreSQL client library (libpq) binding
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 2.1.1
+Version: 2.1.2
%if 0%{?gh_date:1}
Release: 0.5.%{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}/%{pecl_name}-%{version}-%{gh_short}.tar.gz
%else
-Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
%endif
License: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
-Patch0: %{pecl_name}-upstream.patch
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: postgresql-devel > 9
BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: %{?scl_prefix}php-pear
@@ -132,7 +123,6 @@ sed -e '/role="test"/d' \
-i package.xml
cd NTS
-%patch0 -p1 -b .upstream
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_PQ_VERSION/{s/.* "//;s/".*$//;p}' php_pq.h)
@@ -155,6 +145,8 @@ EOF
%build
+%{?dtsenable}
+
cd NTS
%{_bindir}/phpize
%configure \
@@ -173,7 +165,7 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
+%{?dtsenable}
make -C NTS install INSTALL_ROOT=%{buildroot}
@@ -289,12 +281,7 @@ exit $RET
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc %{pecl_docdir}/%{pecl_name}
%{?_licensedir:%license NTS/LICENSE}
@@ -309,6 +296,9 @@ rm -rf %{buildroot}
%changelog
+* Mon Jul 3 2017 Remi Collet <remi@remirepo.net> - 2.1.2-1
+- Update to 2.1.2 (stable)
+
* Fri Jun 23 2017 Remi Collet <remi@fedoraproject.org> - 2.1.1-5
- add upstream patch for 7.2