summaryrefslogtreecommitdiffstats
path: root/php-pecl-pdflib.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-pdflib.spec')
-rw-r--r--php-pecl-pdflib.spec33
1 files changed, 13 insertions, 20 deletions
diff --git a/php-pecl-pdflib.spec b/php-pecl-pdflib.spec
index b91fb77..711a141 100644
--- a/php-pecl-pdflib.spec
+++ b/php-pecl-pdflib.spec
@@ -19,13 +19,15 @@
Summary: Package for generating PDF files
Name: %{?scl_prefix}php-pecl-pdflib
-Version: 4.1.2
-Release: 5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Version: 4.1.3
+Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
# https://bugs.php.net/60396 ask license file
License: PHP
URL: http://pecl.php.net/package/pdflib
-Source0: http://pecl.php.net/get/pdflib-%{version}.tgz
+Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+
+Patch0: %{pecl_name}-phpinfo.patch
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 5.4
@@ -53,22 +55,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
-Obsoletes: php53-pecl-%{pecl_name} <= %{version}
-Obsoletes: php53u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php54-pecl-%{pecl_name} <= %{version}
-Obsoletes: php54w-pecl-%{pecl_name} <= %{version}
-%if "%{php_version}" > "5.5"
-Obsoletes: php55u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php55w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "5.6"
-Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.0"
-Obsoletes: php70u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
-%endif
%if "%{php_version}" > "7.1"
Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
@@ -101,12 +87,16 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -c -q
+pushd %{pecl_name}-%{version}
+%patch0 -p1 -b .rpm
+
# Check version
-extver=$(sed -n '/#define PHP_PDFLIB_VERSION/{s/.* "//;s/".*$//;p}' %{pecl_name}-%{version}/php_pdflib.h)
+extver=$(sed -n '/#define PHP_PDFLIB_VERSION/{s/.* "//;s/".*$//;p}' php_pdflib.h)
if test "x${extver}" != "x%{version}"; then
: Error: Upstream version is ${extver}, expecting %{version}.
exit 1
fi
+popd
%if %{with_zts}
cp -pr %{pecl_name}-%{version} %{pecl_name}-zts
@@ -206,6 +196,9 @@ fi
%changelog
+* Mon Sep 16 2019 Remi Collet <remi@remirepo.net> - 4.1.3-1
+- update to 4.1.3
+
* Tue Sep 03 2019 Remi Collet <remi@remirepo.net> - 4.1.2-5
- rebuild for 7.4.0RC1