SPECS: python-paramiko.spec - Description fix - Added example files

beorn beorn at pld-linux.org
Wed Jun 13 11:44:43 CEST 2007


Author: beorn                        Date: Wed Jun 13 09:44:43 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Description fix
- Added example files

---- Files affected:
SPECS:
   python-paramiko.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/python-paramiko.spec
diff -u SPECS/python-paramiko.spec:1.7 SPECS/python-paramiko.spec:1.8
--- SPECS/python-paramiko.spec:1.7	Wed May  9 12:45:01 2007
+++ SPECS/python-paramiko.spec	Wed Jun 13 11:44:38 2007
@@ -3,7 +3,7 @@
 Summary(pl.UTF-8):	Obsługa protokołu SSH2 w Pythonie
 Name:		python-paramiko
 Version:	1.7
-Release:	1.1
+Release:	1.2
 License:	LGPL
 Group:		Libraries/Python
 Source0:	http://www.lag.net/paramiko/download/paramiko-%{version}.tar.gz
@@ -17,12 +17,12 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A module for python 2.2 (or higher) that implements the SSH2 protocol
+A module for python 2.3 (or higher) that implements the SSH2 protocol
 for secure (encrypted and authenticated) connections to remote
 machines.
 
 %description -l pl.UTF-8
-Moduł dla języka Python 2.2 (lub wyższego) implementujący protokół
+Moduł dla języka Python 2.3 (lub wyższego) implementujący protokół
 SSH2 dla uzyskania bezpiecznych (szyfrowanych i autoryzowanych)
 połączeń ze zdalnymi maszynami.
 
@@ -31,15 +31,18 @@
 
 %build
 %{__python} setup.py build
+find demos -name '*.py' -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__python} setup.py install \
 	--root=$RPM_BUILD_ROOT \
 	--optimize=2
 
 %py_postclean
+install demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -48,6 +51,8 @@
 %defattr(644,root,root,755)
 %doc README docs/*
 %{py_sitescriptdir}/paramiko
+%dir %{_examplesdir}/%{name}-%{version}
+%{_examplesdir}/%{name}-%{version}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -55,6 +60,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2007/06/13 09:44:38  beorn
+- Description fix
+- Added example files
+
 Revision 1.7  2007/05/09 10:45:01  matkor
 - Added BRs. Release 1.1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-paramiko.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list