diff options
-rw-r--r-- | REFLECTION | 26 | ||||
-rw-r--r-- | php-pecl-gnupg.spec | 76 |
2 files changed, 75 insertions, 27 deletions
@@ -1,4 +1,4 @@ -Extension [ <persistent> extension #91 gnupg version 1.3.6 ] { +Extension [ <persistent> extension #98 gnupg version 1.4.0RC1 ] { - Constants [25] { Constant [ integer GNUPG_SIG_MODE_NORMAL ] { 0 } @@ -36,6 +36,13 @@ Extension [ <persistent> extension #91 gnupg version 1.3.6 ] { Function [ <internal:gnupg> function gnupg_sign ] { } Function [ <internal:gnupg> function gnupg_verify ] { + + - Parameters [4] { + Parameter #0 [ <required> $res ] + Parameter #1 [ <required> $text ] + Parameter #2 [ <required> $signature ] + Parameter #3 [ <optional> &$plaintext ] + } } Function [ <internal:gnupg> function gnupg_clearsignkeys ] { } @@ -60,6 +67,12 @@ Extension [ <persistent> extension #91 gnupg version 1.3.6 ] { Function [ <internal:gnupg> function gnupg_encryptsign ] { } Function [ <internal:gnupg> function gnupg_decryptverify ] { + + - Parameters [3] { + Parameter #0 [ <required> $res ] + Parameter #1 [ <required> $enctext ] + Parameter #2 [ <required> &$plaintext ] + } } Function [ <internal:gnupg> function gnupg_geterror ] { } @@ -124,6 +137,12 @@ Extension [ <persistent> extension #91 gnupg version 1.3.6 ] { } Method [ <internal:gnupg> public method verify ] { + + - Parameters [3] { + Parameter #0 [ <required> $text ] + Parameter #1 [ <required> $signature ] + Parameter #2 [ <optional> &$plaintext ] + } } Method [ <internal:gnupg> public method geterror ] { @@ -166,6 +185,11 @@ Extension [ <persistent> extension #91 gnupg version 1.3.6 ] { } Method [ <internal:gnupg> public method decryptverify ] { + + - Parameters [2] { + Parameter #0 [ <required> $enctext ] + Parameter #1 [ <required> &$plaintext ] + } } Method [ <internal:gnupg> public method addsignkey ] { diff --git a/php-pecl-gnupg.spec b/php-pecl-gnupg.spec index 7567bac..c084fba 100644 --- a/php-pecl-gnupg.spec +++ b/php-pecl-gnupg.spec @@ -6,25 +6,39 @@ # # Please, preserve the changelog entries # -%{?scl: %scl_package php-pecl-gnupg} +%if 0%{?scl:1} +%if "%{scl}" == "rh-php56" +%global sub_prefix more-php56- +%else +%global sub_prefix %{scl_prefix} +%endif +%scl_package php-pecl-gnupg +%endif +%if 0%{?rhel} >= 6 +# ignore test result on EL-6 and 7 which only have gnupg2 +%global with_tests 0%{?_with_tests:0} +%else +%global with_tests 0%{!?_without_tests:1} +%endif %global pecl_name gnupg -%global with_zts 0%{?__ztsphp:1} +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %if "%{php_version}" < "5.6" %global ini_name %{pecl_name}.ini %else %global ini_name 40-%{pecl_name}.ini %endif +%global prever RC1 Summary: Wrapper around the gpgme library -Name: %{?scl_prefix}php-pecl-gnupg -Version: 1.3.6 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Name: %{?sub_prefix}php-pecl-gnupg +Version: 1.4.0 +Release: 0.1.%{prever}%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/gnupg -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{?scl_prefix}php-devel @@ -42,8 +56,10 @@ 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} # Other third party repo stuff @@ -59,6 +75,14 @@ Obsoletes: php55w-pecl-%{pecl_name} <= %{version} Obsoletes: php56u-pecl-%{pecl_name} <= %{version} Obsoletes: php56w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "7.0" +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -90,13 +114,13 @@ cat >%{ini_name} << 'EOF' extension=%{pecl_name}.so EOF -mv %{pecl_name}-%{version} NTS +mv %{pecl_name}-%{version}%{?prever} NTS cd NTS # Check extension version extver=$(sed -n '/#define PHP_GNUPG_VERSION/{s/.* "//;s/".*$//;p}' php_gnupg.h) -if test "x${extver}" != "x%{version}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}. +if test "x${extver}" != "x%{version}%{?prever}"; then + : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}. exit 1 fi cd .. @@ -184,43 +208,40 @@ rm -f ?TS/tests/gnupg_{oo,res}_listsignatures.phpt %endif unset GPG_AGENT_INFO -# ignore test result on EL-6 which only have gnupg2 -%if 0%{?rhel} >= 6 -status=0 -%else -status=1 -%endif - cd NTS : Check if build NTS extension can be loaded %{__php} -n -q \ -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --modules | grep %{pecl_name} +%if %{with_tests} : Run upstream test suite for NTS extension TEST_PHP_EXECUTABLE=%{_bindir}/php \ -REPORT_EXIT_STATUS=$status \ +REPORT_EXIT_STATUS=1 \ NO_INTERACTION=1 \ -%{__php} run-tests.php \ +%{__php} -n run-tests.php \ -n -q \ - -d extension_dir=modules \ - -d extension=%{pecl_name}.so + -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ + --show-diff +%endif %if %{with_zts} cd ../ZTS : Check if build ZTS extension can be loaded -%{__php} -n -q \ - -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ +%{__ztsphp} -n -q \ + -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep %{pecl_name} +%if %{with_tests} : Run upstream test suite for ZTS extension TEST_PHP_EXECUTABLE=%{__ztsphp} \ -REPORT_EXIT_STATUS=$status \ +REPORT_EXIT_STATUS=1 \ NO_INTERACTION=1 \ -%{__ztsphp} run-tests.php \ +%{__ztsphp} -n run-tests.php \ -n -q \ - -d extension_dir=modules \ - -d extension=%{pecl_name}.so + -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ + --show-diff +%endif %endif @@ -240,6 +261,9 @@ NO_INTERACTION=1 \ %changelog +* Thu Jun 16 2016 Remi Collet <remi@fedoraproject.org> - 1.4.0-0.1.RC1 +- update to 1.4.0RC1 (beta) + * Tue Mar 8 2016 Remi Collet <remi@fedoraproject.org> - 1.3.6-2 - adapt for F24 |