[python26-paramiko: 21/33] - Add demos as documentation. BZ#485742

Andy Grimm arg at fedoraproject.org
Thu Jul 7 00:41:54 UTC 2011


commit 8a1e89e9504b65f3a6c5d043a9b3ce00b47b7c94
Author: Jeffrey C. Ollie <jcollie at fedoraproject.org>
Date:   Mon Feb 16 18:43:01 2009 +0000

    - Add demos as documentation. BZ#485742

 python-paramiko.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/python-paramiko.spec b/python-paramiko.spec
index 5ae350e..3ebd1f9 100644
--- a/python-paramiko.spec
+++ b/python-paramiko.spec
@@ -4,7 +4,7 @@
 
 Name:           python-paramiko
 Version:        1.7.4
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        A SSH2 protocol library for python
 
 Group:          Development/Libraries
@@ -36,6 +36,8 @@ encrypted tunnel. (This is how sftp works, for example.)
 
 %prep
 %setup -q -n %{srcname}-%{version}
+%{__chmod} a-x demos/*
+%{__sed} -i -e '/^#!/,1d' demos/* paramiko/rng*
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
@@ -49,10 +51,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc LICENSE PKG-INFO README docs/
+%doc LICENSE PKG-INFO README docs/ demos/
 %{python_sitelib}/*
 
 %changelog
+* Mon Feb 16 2009 Jeffrey C. Ollie <jeff at ocjtech.us> - 1.7.4-4
+- Add demos as documentation. BZ#485742
+
 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 1.7.4-3
 - Rebuild for Python 2.6
 


More information about the scm-commits mailing list