SHA256
1
0
forked from pool/php-gnupg

Compare commits

...

10 Commits

Author SHA256 Message Date
32481b7451 Accepting request 1172386 from server:php:extensions
Please add php-gnupg into Factory.

OBS-URL: https://build.opensuse.org/request/show/1172386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/php-gnupg?expand=0&rev=1
2024-05-07 16:04:43 +00:00
Johannes Weberhofer
34b8055522 Accepting request 1041994 from home:adkorte:branches:server:php:extensions
- Remove php7 build for Tumbleweed (PHP 7.4 has reached EOL)

OBS-URL: https://build.opensuse.org/request/show/1041994
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=10
2022-12-12 13:28:55 +00:00
f7c1f6eba5 - Update to 1.5.1
* Fixed compilation with PHP 8.1
  * Fixed build with gpgme 1.4

OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=9
2022-01-01 12:46:17 +00:00
cbb202a21d Accepting request 884342 from home:adkorte:branches:server:php:extensions
- Update to 1.5.0
  * Added new README.md

OBS-URL: https://build.opensuse.org/request/show/884342
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=8
2021-04-10 20:39:31 +00:00
6dca77d5af - 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)

OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=7
2021-03-07 17:39:40 +00:00
0a7cce7433 Better fix for largefile support
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=6
2021-02-22 08:42:14 +00:00
c0e485ee8b - Fix build on i586 (expects largefile support to be enabled)
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=5
2021-02-21 21:21:26 +00:00
f2357aee8c OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=4 2021-02-21 18:48:12 +00:00
3c3f01e99d Run spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=3
2021-02-21 14:48:04 +00:00
331c096cd0 - 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

OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-gnupg?expand=0&rev=2
2021-02-21 12:12:21 +00:00
8 changed files with 171 additions and 108 deletions

4
_multibuild Normal file
View File

@@ -0,0 +1,4 @@
<multibuild>
<package>php7</package>
<package>php8</package>
</multibuild>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:50065cb81f1ac3ec5fcd796e58c8433071ff24cc14900e6077682717f5239307
size 19273

3
gnupg-1.5.1.tgz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9906f465ab2343cb2f3127ee209c72760238745c34878d9bbc1576486219252
size 37316

1
php-gnupg-rpmlintrc Normal file
View File

@@ -0,0 +1 @@
addFilter("invalid-spec-name")

84
php-gnupg.changes Normal file
View File

@@ -0,0 +1,84 @@
-------------------------------------------------------------------
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

79
php-gnupg.spec Normal file
View File

@@ -0,0 +1,79 @@
#
# spec file for package php-gnupg
#
# Copyright (c) 2021 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.1
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: gpgme-devel
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
%setup -q -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

View File

@@ -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

View File

@@ -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