The attached is a spec file for setuptools 0.8c6

Setuptools is required to build both Trac and Genshi, as well as most recent Trac plugins.

http://peak.telecommunity.com/DevCenter/setuptools

setuptools is a collection of enhancements to the Python distutils (for Python 2.3.5 and up on most platforms; 64-bit platforms require a minimum of Python 2.4) that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.

--
Brandon Davidson
Systems Administrator
University of Oregon Neuroinformatics Center
(541) 346-2417 [EMAIL PROTECTED]
Key Fingerprint 1F08 A331 78DF 1EFE F645 8AE5 8FBE 4147 E351 E139
# $Id$
# Authority: dag

%define real_name setuptools
%define version 0.6c8
%define release 1

Summary: Download, build, install, upgrade, and uninstall Python packages -- 
easily!
Name: python-%{real_name}
Version: %{version}
Release:  %{release}.rf
Source0: 
http://pypi.python.org/packages/source/s/setuptools/%{real_name}-%{version}.tar.gz
License: PSF or ZPL
Group: Development/Libraries
Url: http://pypi.python.org/pypi/setuptools

Packager: Dag Wieers <[EMAIL PROTECTED]>
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}

# Proper lib installation requires Python 2.4 on 64bit systems
%ifarch ppc64 x86_64 sparc64
BuildRequires: python >= 2.4
Requires: python >= 2.4
%else 
BuildRequires: python >= 2.3
Requires: python >= 2.3
%endif

%description

setuptools is a collection of enhancements to the Python distutils that allow
you to more easily build and distribute Python packages, especially ones that 
have dependencies on other packages.

%prep
%setup -n %{real_name}-%{version}

%build
python setup.py build

%install
python setup.py install --single-version-externally-managed --optimize=0 
--root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)

%changelog
* Wed Jul 30 2008 Brandon Davidson <[EMAIL PROTECTED]> 0.6c8-1
- Initial package

_______________________________________________
suggest mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/suggest

Reply via email to