%define php_majver %(php-config --version | cut -d. -f1-2) Name: php-ssh2 Version: 1.1.2.20190220git Release: 1mamba Summary: PHP bindings for the libssh2 library Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://pecl.php.net/package/ssh2 Source: https://git.php.net/repository/pecl/networking/ssh2.git/master/ssh2-%{version}.tar.bz2 #Source: https://github.com/Sean-Der/pecl-networking-ssh2.git/php7/pecl-networking-ssh2-%{version}.tar.bz2 #Source: http://pecl.php.net/get/ssh2-%{version}.tgz Patch0: php-ssh2-0.12-fix_crash_sftp_wordpress.patch License: PHP License ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libssh2-devel ## AUTOBUILDREQ-END BuildRequires: php-devel >= 7.3.2 Requires: php >= %{php_majver} Requires: php <= %{php_majver}.99 %systemd_requires BuildRoot: %{_tmppath}/%{name}-%{version}-root %description PHP bindings for the libssh2 library. %debug_package %prep %setup -q -n ssh2-%{version} #%patch0 -p1 %build phpize %configure %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall INSTALL_ROOT=%{buildroot} install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d cat > %{buildroot}%{_sysconfdir}/php/php.d/ssh2.ini < 1.1.2.20190220git-1mamba - update to 1.1.2.20190220git * Wed Feb 20 2019 Silvan Calarco 0.12.20190220git-1mamba - update to 0.12.20190220git * Wed Jan 27 2016 Silvan Calarco 0.12.20160127-1mamba - update to 0.12.20160127 * Sat Feb 21 2015 Silvan Calarco 0.12-2mamba - path to fix crash with sftp/wordpress (https://bugs.launchpad.net/ubuntu/+source/php-ssh2/+bug/1407377) * Fri Jan 30 2015 Silvan Calarco 0.12-1mamba - package created using the webbuild interface