diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | REFLECTION | 2 | ||||
-rw-r--r-- | php-pecl-vld.spec | 124 |
3 files changed, 61 insertions, 67 deletions
@@ -1,5 +1,7 @@ +clog package-*.xml *.tgz +*.tar.bz2 *.tar.gz *.tar.xz *.tar.xz.asc @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #172 vld version 0.16.0 ] { +Extension [ <persistent> extension #125 vld version 0.18.0 ] { - INI { Entry [ vld.active <SYSTEM> ] diff --git a/php-pecl-vld.spec b/php-pecl-vld.spec index 2298ad4..3a2ed6c 100644 --- a/php-pecl-vld.spec +++ b/php-pecl-vld.spec @@ -1,84 +1,54 @@ # remirepo spec file for php-pecl-vld # -# Copyright (c) 2013-2019 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2013-2023 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%if 0%{?scl:1} -%global sub_prefix %{scl_prefix} -%scl_package php-pecl-vld -%endif + +%{?scl:%scl_package php-pecl-vld} %global gh_commit 8146d47ed5883c0b7cb9c5ce980892ce286cd916 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner derickr %global gh_project vld #global gh_date 20180814 -%global pecl_name vld -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%if "%{php_version}" < "5.6" -%global ini_name %{pecl_name}.ini +%global pecl_name vld +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global ini_name 40-%{pecl_name}.ini +%if 0%{?gh_date:1} +%global sources %{gh_project}-%{gh_commit} %else -%global ini_name 40-%{pecl_name}.ini +%global sources %{pecl_name}-%{version} %endif +%global _configure ../%{sources}/configure Summary: Dump the internal representation of PHP scripts -Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 0.16.0 +Name: %{?scl_prefix}php-pecl-%{pecl_name} +Version: 0.18.0 %if 0%{?gh_date:1} -Release: 0.15.%{gh_date}.%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 0.16.%{gh_date}.%{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: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Source0: https://pecl.php.net/get/%{sources}.tgz %endif -License: PHP -URL: http://pecl.php.net/package/%{pecl_name} +License: PHP-3.01 +URL: https://pecl.php.net/package/%{pecl_name} +BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel > 7 +BuildRequires: %{?scl_prefix}php-devel >= 7.0 BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} -%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} 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} && 0%{?rhel} -# Other third party repo stuff -%if "%{php_version}" > "7.1" -Obsoletes: php71u-pecl-%{pecl_name} <= %{version} -Obsoletes: php71w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.2" -Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -Obsoletes: php72w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -Obsoletes: php73w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} -Obsoletes: php74w-pecl-%{pecl_name} <= %{version} -%endif -%endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter private shared -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif %description @@ -91,7 +61,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c %if 0%{?gh_date:1} -mv %{gh_project}-%{gh_commit} NTS %{__php} -r ' $pkg = simplexml_load_file("NTS/package.xml"); $pkg->date = substr("%{gh_date}",0,4)."-".substr("%{gh_date}",4,2)."-".substr("%{gh_date}",6,2); @@ -99,25 +68,24 @@ mv %{gh_project}-%{gh_commit} NTS $pkg->stability->release = "devel"; $pkg->asXML("package.xml"); ' -%else -mv %{pecl_name}-%{version} NTS %endif %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} +pushd %{sources} : Fix version -sed -e 's/"0.14.0-dev"/"%{version}"/' -i NTS/vld.c +sed -e 's/"0.16.0"/"%{version}"/' -i vld.c : Check version -if ! grep -q '"%{version}%{?gh_date:-dev}"' NTS/vld.c; then +if ! grep -q '"%{version}%{?gh_date:-dev}"' vld.c; then : Error: Upstream extension version, expecting %{version}%{?gh_date:-dev}%{?prever:-%{prever}}. exit 1 fi +popd - +mkdir NTS %if %{with_zts} -# Duplicate source tree for NTS / ZTS build -cp -pr NTS ZTS +mkdir ZTS %endif # Create configuration file @@ -141,17 +109,18 @@ EOF %build %{?dtsenable} -cd NTS -%{_bindir}/phpize +cd %{sources} +%{__phpize} + +cd ../NTS %configure \ - --with-php-config=%{_bindir}/php-config + --with-php-config=%{__phpconfig} make %{?_smp_mflags} %if %{with_zts} cd ../ZTS -%{_bindir}/zts-phpize %configure \ - --with-php-config=%{_bindir}/zts-php-config + --with-php-config=%{__ztsphpconfig} make %{?_smp_mflags} %endif @@ -174,7 +143,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif # Documentation -cd NTS +cd %{sources} for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done @@ -205,18 +174,18 @@ fi # Minimal load test for NTS extension %{__php} --no-php-ini \ --define extension=NTS/modules/%{pecl_name}.so \ - --modules | grep %{pecl_name} + --modules | grep '^%{pecl_name}$' %if %{with_zts} # Minimal load test for ZTS extension %{__ztsphp} --no-php-ini \ --define extension=ZTS/modules/%{pecl_name}.so \ - --modules | grep %{pecl_name} + --modules | grep '^%{pecl_name}$' %endif %files -%{?_licensedir:%license NTS/LICENSE} +%{?_licensedir:%license %{sources}/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -230,6 +199,29 @@ fi %changelog +* Mon Sep 4 2023 Remi Collet <remi@remirepo.net> - 0.18.0-2 +- build out of sources tree + +* Fri Sep 16 2022 Remi Collet <remi@remirepo.net> - 0.18.0-1 +- update to 0.18.0 + +* Thu Sep 15 2022 Remi Collet <remi@remirepo.net> - 0.17.2-2 +- add upstream for PHP 8.2 + +* Tue Nov 30 2021 Remi Collet <remi@remirepo.net> - 0.17.2-1 +- update to 0.17.2 +- add patch for build warnings from + https://github.com/derickr/vld/pull/72 + +* Mon Jan 11 2021 Remi Collet <remi@remirepo.net> - 0.17.1-1 +- update to 0.17.1 + +* Tue Jan 14 2020 Remi Collet <remi@remirepo.net> - 0.17.0-1 +- update to 0.17.0 + +* Tue Sep 03 2019 Remi Collet <remi@remirepo.net> - 0.16.0-3 +- rebuild for 7.4.0RC1 + * Wed May 29 2019 Remi Collet <remi@remirepo.net> - 0.16.0-2 - rebuild |