package created using the webbuild interface [release 0.12-1mamba;Fri Jan 30 2015]
This commit is contained in:
parent
526bd74c9f
commit
1a0547864c
71
php-ssh2.spec
Normal file
71
php-ssh2.spec
Normal file
@ -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 <silvan.calarco@mambasoft.it>
|
||||||
|
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 <<EOF
|
||||||
|
; Enable ssh2 extension module
|
||||||
|
extension=ssh2.so
|
||||||
|
EOF
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ $1 -ge 1 ]; then
|
||||||
|
systemctl -q reload httpd
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
systemctl -q reload httpd
|
||||||
|
fi
|
||||||
|
:
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%config(noreplace) %{_sysconfdir}/php/php.d/ssh2.ini
|
||||||
|
%{_libdir}/php/extensions/ssh2.so
|
||||||
|
%doc ssh2-%{version}/LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jan 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12-1mamba
|
||||||
|
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user