Name: python-which Version: 1.1.0 Release: 1mamba Summary: a portable GNU which replacement Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba Packager: gil URL: http://trentm.com/projects/which/ Source: http://which.googlecode.com/files/which-%{version}.zip License: MIT Requires: python >= %python_version ## AUTOBUILDREQ-BEGIN BuildRequires: libpython-devel >= %python_version ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description which.py is a small GNU-which replacement. It has the following features: * it can print all matches on the path; * it can note "near misses" on the path (e.g. files that match but may not, say, have execute permissions); and * it can be used as a python module. %prep %setup -q -n which-%{version} %build %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install -O1 --skip-build --root %{buildroot} cat > which-python << GIL #!/bin/sh python -m which $@ GIL cat > which-python24 << GIL #!/bin/sh alias which="python -m which" GIL mkdir -p %{buildroot}%{_bindir} install -m0755 -p which-python %{buildroot}%{_bindir} install -m0755 -p which-python24 %{buildroot}%{_bindir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/which-python %{_bindir}/which-python24 %{python_sitearch}/which.py* %doc LICENSE.txt README.txt TODO.txt %changelog * Sat Jan 02 2010 gil 1.1.0-1mamba - package created by autospec