summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--REFLECTION6
-rw-r--r--php-pecl-var-representation.spec60
2 files changed, 32 insertions, 34 deletions
diff --git a/REFLECTION b/REFLECTION
index 77a5c63..088d9da 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,8 +1,8 @@
-Extension [ <persistent> extension #98 var_representation version 0.1.5 ] {
+Extension [ <persistent> extension #129 var_representation version 0.1.5 ] {
- Constants [2] {
- Constant [ int VAR_REPRESENTATION_SINGLE_LINE ] { 1 }
- Constant [ int VAR_REPRESENTATION_UNESCAPED ] { 2 }
+ Constant [ <persistent> int VAR_REPRESENTATION_SINGLE_LINE ] { 1 }
+ Constant [ <persistent> int VAR_REPRESENTATION_UNESCAPED ] { 2 }
}
- Functions {
diff --git a/php-pecl-var-representation.spec b/php-pecl-var-representation.spec
index 05566e4..e914073 100644
--- a/php-pecl-var-representation.spec
+++ b/php-pecl-var-representation.spec
@@ -1,51 +1,59 @@
# remirepo spec file for php-pecl-var-representation
#
-# Copyright (c) 2021-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2021-2026 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-%{?scl:%scl_package php-pecl-var-representation}
+%{?scl:%scl_package php-pecl-var-representation}
-%bcond_without tests
+%bcond_without tests
-%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
-%global pecl_name var_representation
-%global ini_name 40-%{pecl_name}.ini
+%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
+%global pecl_name var_representation
+%global ini_name 40-%{pecl_name}.ini
%global upstream_version 0.1.5
#global upstream_prever RC1
-%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
+%global sources %{gh_proj}-%{upstream_version}%{?upstream_prever}
%global _configure ../%{sources}/configure
-Summary: A compact, more readable alternative to var_export
-Name: %{?scl_prefix}php-pecl-var-representation
-Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+# Github forge
+%global gh_vend TysonAndre
+%global gh_proj var_representation
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+%global tag %{upstream_version}%{?upstream_prever}
+Name: %{?scl_prefix}php-pecl-var-representation
+Summary: A compact, more readable alternative to var_export
License: BSD-3-Clause
-URL: https://pecl.php.net/package/%{pecl_name}
-Source0: https://pecl.php.net/get/%{sources}.tgz
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
+Release: 2%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.2
-BuildRequires: %{?scl_prefix}php-pear
# used by tests
BuildRequires: tzdata
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
+# Extension
Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+# PECL
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
# Notice pecl_name != name
Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
+# No pie for now
%description
@@ -58,11 +66,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -qc
-# Don't install/register tests
-sed -e 's/role="test"/role="src"/' \
- -e '/COPYING/s/role="doc"/role="src"/' \
- -i package.xml
-
cd %{sources}
# Check version as upstream often forget to update this
extver=$(sed -n '/define PHP_VAR_REPRESENTATION_VERSION/{s/.* "//;s/".*$//;p}' php_var_representation.h)
@@ -117,20 +120,12 @@ peclconf %{__ztsphpconfig}
%make_install -C NTS
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
-# Install XML package description
-install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
# Install the ZTS stuff
%if %{with_zts}
%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
-# Documentation
-for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
-do [ -f %{sources}/$i ] && install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
-done
-
%check
: Minimal load test for NTS extension
@@ -158,8 +153,7 @@ REPORT_EXIT_STATUS=1 \
%files
%license %{sources}/COPYING
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/*.md
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -171,6 +165,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri Mar 27 2026 Remi Collet <remi@remirepo.net> - 0.1.5-2
+- drop pear/pecl dependency
+- sources from github
+
* Mon Aug 12 2024 Remi Collet <remi@remirepo.net> - 0.1.5-1
- update to 0.1.5