packages: php-pecl-ssh2/php-pecl-ssh2.spec - unify

glen glen at pld-linux.org
Sun Jun 6 19:24:10 CEST 2010


Author: glen                         Date: Sun Jun  6 17:24:10 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- unify

---- Files affected:
packages/php-pecl-ssh2:
   php-pecl-ssh2.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: packages/php-pecl-ssh2/php-pecl-ssh2.spec
diff -u packages/php-pecl-ssh2/php-pecl-ssh2.spec:1.22 packages/php-pecl-ssh2/php-pecl-ssh2.spec:1.23
--- packages/php-pecl-ssh2/php-pecl-ssh2.spec:1.22	Wed Jun  2 17:53:43 2010
+++ packages/php-pecl-ssh2/php-pecl-ssh2.spec	Sun Jun  6 19:24:05 2010
@@ -1,45 +1,42 @@
 # $Revision$, $Date$
-%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}
@@ -47,11 +44,10 @@
 %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
@@ -67,8 +63,8 @@
 
 %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
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -76,6 +72,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2010/06/06 17:24:05  glen
+- unify
+
 Revision 1.22  2010/06/02 15:53:43  glen
 - release 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-ssh2/php-pecl-ssh2.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list