rpms/python-which/F-8 python-which.spec,NONE,1.1 sources,1.1,1.2

Neal Becker (nbecker) fedora-extras-commits at redhat.com
Mon Oct 29 22:49:15 UTC 2007


Author: nbecker

Update of /cvs/pkgs/rpms/python-which/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4682

Modified Files:
	sources 
Added Files:
	python-which.spec 
Log Message:
initial F-8 version.



--- 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:        2%{?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 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
* Sun Oct 28 2007  <ndbecker2 at gmail.com> - 1.1.0-1
- Remove ref to GNU

* 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: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-which/F-8/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 22:48:38 -0000	1.2
@@ -0,0 +1 @@
+6f4abadf475af98e20664eac21f633a9  which-1.1.0.zip




More information about the fedora-extras-commits mailing list