Name: ssterm Version: 1.3 Release: 1 Summary: Simple Serial-Port Terminal Source0: https://github.com/downloads/vsergeev/%{name}/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch URL: http://dev.frozeneskimo.com/software_projects:ssterm Group: Hardware/Other License: GNU General Public License version 2 or later (GPL v2 or later) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: python >= 2.6.2 %description ssterm (short for "simple serial-port terminal") is a console-based serial port terminal with curses and stdin/stdout user interfaces. ssterm supports a variety of features, such as hexadecimal data representation, remapping of transmitted and received newlines, newline character color-coding, buffer scrolling/dumping, and data piping. %prep %setup -q %patch0 %build # nothing to be done here %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} cp %{name}.py ${RPM_BUILD_ROOT}%{_bindir}/ chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc COPYING ChangeLog README %{_bindir}/* /usr/bin/* %changelog * Tue Mar 20 2012 Michael Perzl - 1.3-1 - first version for AIX V5.1 and higher