forked from pool/php-gnupg
Compare commits
18 Commits
6c4d55727b
...
factory
Author | SHA256 | Date | |
---|---|---|---|
a6680506fe | |||
8ef1183ac0 | |||
2c597743ce | |||
8438e6be99 | |||
f066778443 | |||
e5899d770f | |||
f410778b7d | |||
57412da094 | |||
32481b7451 | |||
|
34b8055522 | ||
f7c1f6eba5 | |||
cbb202a21d | |||
6dca77d5af | |||
0a7cce7433 | |||
c0e485ee8b | |||
f2357aee8c | |||
3c3f01e99d | |||
331c096cd0 |
4
_multibuild
Normal file
4
_multibuild
Normal file
@@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>php7</package>
|
||||
<package>php8</package>
|
||||
</multibuild>
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:50065cb81f1ac3ec5fcd796e58c8433071ff24cc14900e6077682717f5239307
|
||||
size 19273
|
3
gnupg-1.5.4.tgz
Normal file
3
gnupg-1.5.4.tgz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d4a0980759bf259e4129ef02cb592bbeb103b4005e7b4bb6945d79488951a50
|
||||
size 47874
|
1
php-gnupg-rpmlintrc
Normal file
1
php-gnupg-rpmlintrc
Normal file
@@ -0,0 +1 @@
|
||||
addFilter("invalid-spec-name")
|
121
php-gnupg.changes
Normal file
121
php-gnupg.changes
Normal file
@@ -0,0 +1,121 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 8 19:13:22 UTC 2025 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Update to 1.5.4
|
||||
* Fixed GH-57: PHP 8.5 build failure due to usage of removed
|
||||
zend_exception_get_default()
|
||||
* Fixed GH-59: Failure to build with gpgme >= 2.0.0 due to romoved
|
||||
trustlist
|
||||
- Remove 60.patch (upstreamed)
|
||||
- Remove no_uid_hint_msg.gpg that was accidentally not packaged in the
|
||||
archive 1.5.2 available from upstream (no longer needed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 2 19:17:39 UTC 2025 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Fix build with GPGME >= 2.0.0 (boo#1246848, gh#php-gnupg/php-gnupg#59)
|
||||
+ added 60.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 19 19:24:44 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- Update to 1.5.3:
|
||||
* Fix decryption of message encrypted with multiple keys [boo#1246759]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 27 18:42:54 UTC 2025 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Update to 1.5.2
|
||||
* Fixed GH-37: gnupg_decrypt() returns false when decrypting an
|
||||
encrypted empty string
|
||||
* Fixed GH-46: gnupg_decrypt() segfaults when password callback user
|
||||
ID hint is not supplied
|
||||
* Fixed 1.5.0 regressition - the deletekey `allow_secret` made
|
||||
optional again
|
||||
- Add no_uid_hint_msg.gpg that was accidentally not packaged in the
|
||||
archive available from upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 10 10:32:12 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Remove php7 build for Tumbleweed (PHP 7.4 has reached EOL)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 1 12:44:11 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Update to 1.5.1
|
||||
* Fixed compilation with PHP 8.1
|
||||
* Fixed build with gpgme 1.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 10 20:16:03 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Update to 1.5.0
|
||||
* Added new README.md
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 7 17:26:59 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Update to 1.5.0RC2
|
||||
* Fixed build with libgpgme 1.3
|
||||
* Fixed largefile support on 32-bit platforms
|
||||
(delete 0001_add_largefile_support.patch)
|
||||
* Fixed tests in PECL archive
|
||||
(delete gnupgt.inc and vars.inc)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 21 21:14:06 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Fix build on i586 (expects largefile support to be enabled)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 21 11:27:19 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
|
||||
|
||||
- Update to 1.5.0RC1
|
||||
* Added support for PHP 8
|
||||
* Added support for GnuPG 2.1+
|
||||
* Added argument info for all functions and methods (reflection support)
|
||||
* Added new function `gnupg_getengineinfo`
|
||||
* Added new function `gnupg_geterrorinfo`
|
||||
* Added init array argument for setting home dir and gpg binary file name
|
||||
* Added additional fields to `gnupg_keyinfo` returned array
|
||||
* Added parameter to `gnupg_keyinfo` to use `secret_only`
|
||||
* Fixed `gnupg_deletekey` to use boolean for `allow_secret` parameter
|
||||
|
||||
- Update to 1.4.0
|
||||
* No changes since 1.4.0RC2
|
||||
|
||||
- Update to 1.4.0RC2
|
||||
* Fixed ZTS issue with invalid context for a password callback
|
||||
|
||||
- Update to 1.4.0RC1
|
||||
* Added support for PHP 7
|
||||
* Fixed various compilation issues
|
||||
|
||||
- Use _multibuild to build for php7 and php8
|
||||
- Use php_cfgdir and php_extdir macros to determine location of files
|
||||
- Run unit tests
|
||||
- Add files missing from the PECL tarball
|
||||
+ gnupgt.inc
|
||||
+ vars.inc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 29 09:25:25 UTC 2016 - pgajdos@suse.com
|
||||
|
||||
- provides php-gnupg symbol
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 12 13:38:02 UTC 2016 - pgajdos@suse.com
|
||||
|
||||
- updated to 1.3.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 17 04:11:52 CEST 2009 - crrodriguez@novell.com
|
||||
|
||||
- use versioning macros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 4 22:18:39 UTC 2007 - judas_iscariote@shorewall.net
|
||||
|
||||
- update to version 1.3.1 fixing a double-free with recent gpgme-lib
|
||||
|
80
php-gnupg.spec
Normal file
80
php-gnupg.spec
Normal file
@@ -0,0 +1,80 @@
|
||||
#
|
||||
# spec file for package php-gnupg
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define pkg_name gnupg
|
||||
|
||||
%define flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "" || (0%{?suse_version} >= 1550 && "%{flavor}" == "php7")
|
||||
%define php_name php
|
||||
ExclusiveArch: do-not-build
|
||||
%else
|
||||
%define php_name %{flavor}
|
||||
%endif
|
||||
%if 0%{?suse_version} <= 1500
|
||||
%define php_extdir %(%{__php_config} --extension-dir)
|
||||
%define php_cfgdir %{_sysconfdir}/%{php_name}/conf.d
|
||||
%endif
|
||||
|
||||
Name: %{php_name}-%{pkg_name}
|
||||
Version: 1.5.4
|
||||
Release: 0
|
||||
Summary: PHP wrapper around the gpgme library
|
||||
License: BSD-2-Clause
|
||||
Group: Productivity/Networking/Web/Servers
|
||||
URL: https://pecl.php.net/gnupg
|
||||
Source0: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz
|
||||
Source1: php-%{pkg_name}-rpmlintrc
|
||||
BuildRequires: %{php_name}-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(gpgme)
|
||||
Requires: php(api) = %{php_core_api}
|
||||
Requires: php(zend-abi) = %{php_zend_api}
|
||||
Provides: php-gnupg = %{version}
|
||||
Obsoletes: php-gnupg < %{version}
|
||||
|
||||
%description
|
||||
This extension provides methods to interact with gnupg.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{pkg_name}-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%{__phpize}
|
||||
%configure --disable-rpath --with-gnupg=%{_usr} --with-libdir=%{_lib}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%make_build PHP_EXECUTABLE=%{__php} NO_INTERACTION=1 test
|
||||
|
||||
%install
|
||||
%make_install INSTALL_ROOT=%{buildroot}
|
||||
mkdir -p %{buildroot}%{php_cfgdir}
|
||||
cat >> %{buildroot}%{php_cfgdir}/%{pkg_name}.ini << EOF
|
||||
; comment out next line to disable %{pkg_name} extension in php
|
||||
extension=%{pkg_name}.so"
|
||||
EOF
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%config(noreplace) %{php_cfgdir}/%{pkg_name}.ini
|
||||
%{php_extdir}/%{pkg_name}.so
|
||||
|
||||
%changelog
|
@@ -1,20 +0,0 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 29 09:25:25 UTC 2016 - pgajdos@suse.com
|
||||
|
||||
- provides php-gnupg symbol
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 12 13:38:02 UTC 2016 - pgajdos@suse.com
|
||||
|
||||
- updated to 1.3.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 17 04:11:52 CEST 2009 - crrodriguez@novell.com
|
||||
|
||||
- use versioning macros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 4 22:18:39 UTC 2007 - judas_iscariote@shorewall.net
|
||||
|
||||
- update to version 1.3.1 fixing a double-free with recent gpgme-lib
|
||||
|
@@ -1,85 +0,0 @@
|
||||
#
|
||||
# spec file for package php5-gnupg
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define pkg_name gnupg
|
||||
#
|
||||
Name: php5-gnupg
|
||||
Version: 1.3.6
|
||||
Release: 0
|
||||
Summary: PHP wrapper around the gpgme library
|
||||
#
|
||||
License: BSD-2-Clause
|
||||
Group: Productivity/Networking/Web/Servers
|
||||
#
|
||||
Url: http://pecl.php.net/gnupg
|
||||
Source: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz
|
||||
BuildRequires: php5-devel
|
||||
Provides: php-gnupg = %{version}
|
||||
Obsoletes: php-gnupg < %{version}
|
||||
#
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} < 1010
|
||||
BuildRequires: gpgme
|
||||
BuildRequires: libgpg-error-devel
|
||||
%else
|
||||
BuildRequires: gpgme-devel
|
||||
%endif
|
||||
%if %{?php_zend_api}0
|
||||
Requires: php(api) = %{php_core_api}
|
||||
Requires: php(zend-abi) = %{php_zend_api}
|
||||
%else
|
||||
%requires_eq php5
|
||||
%endif
|
||||
|
||||
%description
|
||||
This extension provides methods to interact with gnupg.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkg_name}-%{version}
|
||||
mkdir %{name}
|
||||
|
||||
%build
|
||||
%{_bindir}/phpize
|
||||
pushd %{name}
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
export CXXFLAGS
|
||||
export PHP_RPATH='no'
|
||||
../configure --disable-rpath --with-gnupg=%{_usr} --with-libdir=%{_lib}
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags} -C %{name} INSTALL_ROOT=%{buildroot}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/php5/conf.d
|
||||
echo "; comment out next line to disable gnupg extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/gnupg.ini
|
||||
echo 'extension = gnupg.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/gnupg.ini
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/php5/extensions/gnupg.so
|
||||
%config(noreplace) %{_sysconfdir}/php5/conf.d/gnupg.ini
|
||||
%doc LICENSE README
|
||||
|
||||
%changelog -n php5-gnupg
|
||||
* Sat Dec 30 2006 - judas_iscariote@shorewall.net
|
||||
- lib64 fixes
|
||||
* Thu Nov 16 2006 - soporte@onfocus.cl
|
||||
- very first build
|
||||
|
Reference in New Issue
Block a user