From 1a0547864c25cb5822ca6544bd904cf7bf269a2a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:59:45 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.12-1mamba;Fri Jan 30 2015] --- README.md | 2 ++ php-ssh2.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 php-ssh2.spec diff --git a/README.md b/README.md index f4f9344..17d31b8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # php-ssh2 +PHP bindings for the libssh2 library. + diff --git a/php-ssh2.spec b/php-ssh2.spec new file mode 100644 index 0000000..737f94e --- /dev/null +++ b/php-ssh2.spec @@ -0,0 +1,71 @@ +%define php_majver %(php-config --version | cut -d. -f1-2) +Name: php-ssh2 +Version: 0.12 +Release: 1mamba +Summary: PHP bindings for the libssh2 library +Group: Applications/Web +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://http://pecl.php.net/package/ssh2 +Source: http://pecl.php.net/get/ssh2-%{version}.tgz +License: PHP License +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libssh2-devel +## AUTOBUILDREQ-END +BuildRequires: php-devel +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 -c %{name}-%{version} + +%build +cd ssh2-%{version} +phpize +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd ssh2-%{version} +%makeinstall INSTALL_ROOT=%{buildroot} + +install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d +cat > %{buildroot}%{_sysconfdir}/php/php.d/ssh2.ini < 0.12-1mamba +- package created using the webbuild interface