rpms/python-which/devel python-which.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Neal Becker (nbecker)
fedora-extras-commits at redhat.com
Mon Oct 29 20:04:44 UTC 2007
Author: nbecker
Update of /cvs/pkgs/rpms/python-which/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14143/devel
Modified Files:
.cvsignore sources
Added Files:
python-which.spec
Log Message:
Initial import
--- NEW FILE python-which.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-which
Version: 1.1.0
Release: 1%{?dist}
Summary: Small which replacement that can be used as a Python module
Group: Development/Languages
License: MIT
URL: http://trentm.com/projects/which/
Source0: http://trentm.com/downloads/which/%{version}/which-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
%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
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# add a script that calls the python module
cat << \EOF > which-python
#!/bin/sh
python -m which $@
EOF
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m0755 -p which-python $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt TODO.txt
%{_bindir}/which-python
%{python_sitelib}/which.py*
%changelog
* Sat Oct 27 2007 <ndbecker2 at gmail.com> - 1.1.0-1
- Package for fedora
* Thu Jul 19 2007 Patrice Dumas <pertusus at free.fr> 1.1.0-1
- initial packaging
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-which/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 29 Oct 2007 17:55:56 -0000 1.1
+++ .cvsignore 29 Oct 2007 20:04:06 -0000 1.2
@@ -0,0 +1 @@
+which-1.1.0.zip
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-which/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 29 Oct 2007 17:55:56 -0000 1.1
+++ sources 29 Oct 2007 20:04:06 -0000 1.2
@@ -0,0 +1 @@
+6f4abadf475af98e20664eac21f633a9 which-1.1.0.zip
More information about the scm-commits
mailing list