summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION2
-rw-r--r--composer.json23
-rw-r--r--php-pecl-bsdiff.spec29
4 files changed, 47 insertions, 9 deletions
diff --git a/PHPINFO b/PHPINFO
index e520697..fe2cfd5 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,5 +2,5 @@
bsdiff
bsdiff support => enabled
-bsdiff version => 0.2.0
+bsdiff version => 0.2.1
BZip2 version => 1.0.8, 13-Jul-2019
diff --git a/REFLECTION b/REFLECTION
index 3a4a6ba..85077be 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #72 bsdiff version 0.2.0 ] {
+Extension [ <persistent> extension #72 bsdiff version 0.2.1 ] {
- Functions {
Function [ <internal:bsdiff> function bsdiff_diff ] {
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..227f908
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,23 @@
+{
+ "name": "bsdiff/bsdiff",
+ "type": "php-ext",
+ "license": "PHP-3.01",
+ "description": "A PHP extension to build and apply patches to binary files.",
+ "require": {
+ "php": ">=7.2.0"
+ },
+ "php-ext": {
+ "extension-name": "bsdiff",
+ "configure-options": [
+ {
+ "name": "enable-bsdiff",
+ "description": "Enable bsdiff support"
+ },
+ {
+ "name": "with-bz2",
+ "description": "BZip2 installation prefix",
+ "needs-value": true
+ }
+ ]
+ }
+}
diff --git a/php-pecl-bsdiff.spec b/php-pecl-bsdiff.spec
index 5166378..448760d 100644
--- a/php-pecl-bsdiff.spec
+++ b/php-pecl-bsdiff.spec
@@ -15,6 +15,8 @@
%global pecl_name bsdiff
%global ini_name 40-%{pecl_name}.ini
%global _configure ../configure
+%global pie_vend %{pecl_name}
+%global pie_proj %{pecl_name}
# Github forge
%global gh_vend deminy
@@ -22,9 +24,11 @@
%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
Name: %{?scl_prefix}php-pecl-bsdiff
-License: PHP-3.01
+# Extension is PHP-3.01
+# Bundled bsdiff is BSD-2-Clause
+License: PHP-3.01 AND BSD-2-Clause
Summary: The bsdiff extension for PHP
-Version: 0.2.0
+Version: 0.2.1
Release: 1%{?dist}
%forgemeta
URL: %{forgeurl}
@@ -33,17 +37,23 @@ Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.2
-BuildRequires: %{?scl_prefix}php-pear
BuildRequires: bzip2-devel
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires: %{?scl_prefix}php-json%{?_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}
+# Bundled library
+Provides: bundled(bsdiff)
+# 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}
+# PIE
+Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version}
+Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version}
%description
@@ -134,6 +144,7 @@ REPORT_EXIT_STATUS=1 \
%files
%license LICENSE
+%doc composer.json
%doc *.md
%config(noreplace) %{php_inidir}/%{ini_name}
@@ -146,6 +157,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Thu Jun 25 2026 Remi Collet <remi@remirepo.net> - 0.2.1-1
+- update to 0.2.1
+- add pie virtual provides
+
* Wed May 6 2026 Remi Collet <remi@remirepo.net> - 0.2.0-1
- update to 0.2.0
- re-license spec file to CECILL-2.1