%{?!python:%define python python} %{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define origname TwistedConch Name: %{python}-twisted-conch Version: 0.7.0 Release: 1%{?dist} Summary: Twisted SSHv2 implementation Group: Development/Libraries License: MIT URL: http://www.twistedmatrix.com Source0: http://tmrc.mit.edu/mirror/twisted/Conch/0.7/TwistedConch-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{python}-twisted-core >= 2.4.0 # for FC3 and earlier %if "%{pybasever}" < "2.4" Requires: python(abi) = %{pybasever} %endif Requires: %{python}-twisted-core Requires: %{python}-crypto # a noarch-turned-arch package should not have debuginfo %define debug_package %{nil} %description Twisted is an event-based framework for internet applications. Conch is an SSHv2 implementation written in Python. SSH is a protocol designed to allow remote access to shells and commands, but it is generic enough to allow everything from TCP forwarding to generic filesystem access. Since conch is written in Python, it interfaces well with other Python projects, such as Imagination. Conch also includes a implementations of the telnet and vt102 protocols, as well as support for rudamentary line editing behaviors. A new implementation of Twisted's Manhole application is also included, featuring server-side input history and interactive syntax coloring. %prep %setup -n %{origname}-%{version} -q %build %install rm -rf $RPM_BUILD_ROOT # this is a pure python package, but extending the twisted namespace from # python-twisted-core, which is arch-specific, so it needs to go in sitearch %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --install-purelib %{python_sitearch} # Man pages mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/ cp -a doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ rm -rf doc/man %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README doc/* %{_mandir}/man1/* %{_bindir}/cftp %{_bindir}/ckeygen %{_bindir}/conch %{_bindir}/tkconch %dir %{python_sitearch}/twisted/conch/ %{python_sitearch}/twisted/conch/*.py %{python_sitearch}/twisted/conch/*.pyc %ghost %{python_sitearch}/twisted/conch/*.pyo %dir %{python_sitearch}/twisted/conch/client/ %{python_sitearch}/twisted/conch/client/*.py %{python_sitearch}/twisted/conch/client/*.pyc %ghost %{python_sitearch}/twisted/conch/client/*.pyo %dir %{python_sitearch}/twisted/conch/insults/ %{python_sitearch}/twisted/conch/insults/*.py %{python_sitearch}/twisted/conch/insults/*.pyc %ghost %{python_sitearch}/twisted/conch/insults/*.pyo %dir %{python_sitearch}/twisted/conch/openssh_compat/ %{python_sitearch}/twisted/conch/openssh_compat/*.py %{python_sitearch}/twisted/conch/openssh_compat/*.pyc %ghost %{python_sitearch}/twisted/conch/openssh_compat/*.pyo %dir %{python_sitearch}/twisted/conch/scripts/ %{python_sitearch}/twisted/conch/scripts/*.py %{python_sitearch}/twisted/conch/scripts/*.pyc %ghost %{python_sitearch}/twisted/conch/scripts/*.pyo %dir %{python_sitearch}/twisted/conch/ssh/ %{python_sitearch}/twisted/conch/ssh/*.py %{python_sitearch}/twisted/conch/ssh/*.pyc %ghost %{python_sitearch}/twisted/conch/ssh/*.pyo %dir %{python_sitearch}/twisted/conch/test/ %{python_sitearch}/twisted/conch/test/*.py %{python_sitearch}/twisted/conch/test/*.pyc %ghost %{python_sitearch}/twisted/conch/test/*.pyo %dir %{python_sitearch}/twisted/conch/ui/ %{python_sitearch}/twisted/conch/ui/*.py %{python_sitearch}/twisted/conch/ui/*.pyc %ghost %{python_sitearch}/twisted/conch/ui/*.pyo %{python_sitearch}/twisted/plugins/twisted_conch.py %{python_sitearch}/twisted/plugins/twisted_conch.pyc %ghost %{python_sitearch}/twisted/plugins/twisted_conch.pyo %changelog * Wed Jun 07 2006 Thomas Vander Stichele - 0.7.0-1 - update to new upstream release - remove NoArch, since it is installed into an arch-specific twisted namespace * Fri Sep 23 2005 Jeff Pitman 0.5.0-3 - normalize crypto name * Tue Aug 23 2005 Jeff Pitman 0.5.0-2 - need twisted to build * Fri Mar 25 2005 Jeff Pitman 0.5.0-1 - final release * Wed Mar 16 2005 Jeff Pitman 0.5.0-0.1.a3 - upstream release * Sat Mar 12 2005 Jeff Pitman 0.5.0-0.1.a2 - new prerelease; FE versioning * Mon Feb 07 2005 Jeff Pitman 0.1.0-1 - prep for split