%global checkout 236 %global posttag 20120402 Name: pyp Version: 2.12 Release: 2.%{posttag}%{?dist} Summary: Python-centric command line text manipulation tool similar to awk and sed BuildArch: noarch Requires: python2 %if 0%{?el5} # el5 comes with Python 2.4 which doesn't have json built in Requires: python-json %endif Group: Applications/Text License: BSD URL: https://code.google.com/p/pyp/ # svn export -r %%{checkout} http://pyp.googlecode.com/svn/trunk/pyp Source0: pyp BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Pyp is a Linux command line text manipulation tool similar to awk or sed, but which uses standard python string and list methods as well as custom functions evolved to generate fast results in an intense production environment. %prep %build %install mkdir -p %{buildroot}%{_bindir} install -m 755 %SOURCE0 %{buildroot}%{_bindir} %clean rm -rf %{buildroot} %files %{_bindir}/%{name} %changelog * Fri Jul 27 2012 mmckinst - 2.12-2.20120402 - fix url and source line - redo versioning scheme * Wed Apr 4 2012 Mark McKinstry - 2.12-1 - upgrade to 2.12 - include clean section - change source location to trunk * Mon Mar 19 2012 Mark McKinstry - 2.11-1 - initial package