packages: python-paramiko/python-paramiko.spec - apidocs subpackage
glen
glen at pld-linux.org
Mon Oct 25 07:03:38 CEST 2010
Author: glen Date: Mon Oct 25 05:03:38 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- apidocs subpackage
---- Files affected:
packages/python-paramiko:
python-paramiko.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: packages/python-paramiko/python-paramiko.spec
diff -u packages/python-paramiko/python-paramiko.spec:1.17 packages/python-paramiko/python-paramiko.spec:1.18
--- packages/python-paramiko/python-paramiko.spec:1.17 Thu Jul 8 10:25:49 2010
+++ packages/python-paramiko/python-paramiko.spec Mon Oct 25 07:03:30 2010
@@ -1,25 +1,30 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without apidocs # do not build and package API docs
+
+%define module paramiko
Summary: SSH2 protocol for Python
Summary(pl.UTF-8): Obsługa protokołu SSH2 w Pythonie
-Name: python-paramiko
+Name: python-%{module}
Version: 1.7.6
Release: 2
License: LGPL
Group: Libraries/Python
-Source0: http://www.lag.net/paramiko/download/paramiko-%{version}.tar.gz
+Source0: http://www.lag.net/paramiko/download/%{module}-%{version}.tar.gz
# Source0-md5: fa144ab46f1dc639b05ab948c30efac4
URL: http://www.lag.net/paramiko/
BuildRequires: python-Crypto >= 1.9
BuildRequires: python-devel >= 2.3
-BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
%pyrequires_eq python-modules
Requires: python-Crypto
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-A module for python 2.3 (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.
@@ -28,23 +33,32 @@
SSH2 dla uzyskania bezpiecznych (szyfrowanych i autoryzowanych)
połączeń ze zdalnymi maszynami.
+%package apidocs
+Summary: paramiko API documentation
+Summary(pl.UTF-8): Dokumentacja API biblioteki paramiko
+Group: Documentation
+
+%description apidocs
+API and internal documentation for paramiko library.
+
%prep
-%setup -q -n paramiko-%{version}
+%setup -q -n %{module}-%{version}
+
+find demos -name '*.py' -type f | xargs sed -i -e '1s|#!.*python.*|#!%{_bindir}/python|'
%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}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
# we don't need those
rm -fr $RPM_BUILD_ROOT%{py_sitescriptdir}/paramiko-%{version}-*.egg-info
@@ -54,10 +68,15 @@
%files
%defattr(644,root,root,755)
-%doc PKG-INFO README docs/*
-%{py_sitescriptdir}/paramiko
-%dir %{_examplesdir}/%{name}-%{version}
-%{_examplesdir}/%{name}-%{version}/*
+%doc PKG-INFO README
+%{py_sitescriptdir}/%{module}
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/*
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -65,6 +84,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2010/10/25 05:03:30 glen
+- apidocs subpackage
+
Revision 1.17 2010/07/08 08:25:49 arekm
- release 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-paramiko/python-paramiko.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list