]> git.pld-linux.org Git - packages/php-pecl-ssh2.git/commitdiff
- unify
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 6 Jun 2010 17:24:05 +0000 (17:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-ssh2.spec -> 1.23

php-pecl-ssh2.spec

index 53c7d724592f46568317d26f26ddada95e0e567c..e2046ef0c6d6ff8103f7a468fafeb378b3952623 100644 (file)
@@ -1,44 +1,41 @@
-%define                _modname        ssh2
-%define                _status         beta
-Summary:       %{_modname} - bindings for the libssh2 library
-Summary(pl.UTF-8):     %{_modname} - dowiązania do biblioteki libssh2
-Name:          php-pecl-%{_modname}
+%define                modname ssh2
+%define                status          beta
+Summary:       %{modname} - bindings for the libssh2 library
+Summary(pl.UTF-8):     %{modname} - dowiązania do biblioteki libssh2
+Name:          php-pecl-%{modname}
 Version:       0.11.0
 Release:       2
 License:       PHP
 Group:         Development/Languages/PHP
-Source0:       http://pecl.php.net/get/%{_modname}-%{version}.tgz
+Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: 9f5dcd5b92299458389038f7318cbc46
 Patch0:                php-pecl-ssh2-libssh2.patch
 URL:           http://pecl.php.net/package/ssh2/
 BuildRequires: libssh2-devel >= 0.16
 BuildRequires: openssl-devel >= 0.9.7d
-BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: php-devel >= 4:5.0.4
 BuildRequires: rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
-Requires:      php-common >= 4:5.0.4
-Obsoletes:     php-pear-%{_modname}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Provides bindings to the functions of libssh2 which implements the
 SSH2 protocol.
 
-In PECL status of this extension is: %{_status}.
+In PECL status of this extension is: %{status}.
 
 %description -l pl.UTF-8
 Dostarcza dowiązań do różnych funkcji biblioteki libssh2
 implementującej protokół SSH2.
 
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
 
 %prep
-%setup -q -c
-cd ssh2-%{version}
+%setup -qc
+mv %{modname}-%{version}/* .
 %patch0 -p0
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure
 %{__make}
@@ -46,11 +43,10 @@ phpize
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-
-install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
 EOF
 
 %clean
@@ -66,5 +62,5 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.504549 seconds and 4 git commands to generate.