Group :: Desenvolvimento/Python
RPM: python-module-setuptools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_without M24
%define version 0.6
%define subver c5
%if_with M24
%define release alt0.%subver.M24.1
%else
%define release alt1.%subver
%endif
%setup_python_module setuptools
Name: %packagename
Version: %version
Release: %release
Epoch: 1
Summary: Python Distutils Enhancements
License: PSF/ZPL
Group: Development/Python
URL: http://peak.telecommunity.com/DevCenter/setuptools
Packager: Python Development Team <python at packages.altlinux.org>
Source0: http://cheeseshop.python.org/packages/source/s/%modulename/%modulename-%version%subver.tar.bz2
BuildArch: noarch
%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 -q -n %modulename-%version%subver
%build
%__python setup.py build
%__python setup.py test
%install
mkdir -p %buildroot%python_sitelibdir
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
find %buildroot%python_sitelibdir/%name -type d | \
sed -e "s,^%buildroot,%dir ,g" >> INSTALLED_FILES
%files -f INSTALLED_FILES
%doc setuptools.txt pkg_resources.txt api_tests.txt EasyInstall.txt
%changelog
…
Todas as alterações você pod ver aqui
%define version 0.6
%define subver c5
%if_with M24
%define release alt0.%subver.M24.1
%else
%define release alt1.%subver
%endif
%setup_python_module setuptools
Name: %packagename
Version: %version
Release: %release
Epoch: 1
Summary: Python Distutils Enhancements
License: PSF/ZPL
Group: Development/Python
URL: http://peak.telecommunity.com/DevCenter/setuptools
Packager: Python Development Team <python at packages.altlinux.org>
Source0: http://cheeseshop.python.org/packages/source/s/%modulename/%modulename-%version%subver.tar.bz2
BuildArch: noarch
%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 -q -n %modulename-%version%subver
%build
%__python setup.py build
%__python setup.py test
%install
mkdir -p %buildroot%python_sitelibdir
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
find %buildroot%python_sitelibdir/%name -type d | \
sed -e "s,^%buildroot,%dir ,g" >> INSTALLED_FILES
%files -f INSTALLED_FILES
%doc setuptools.txt pkg_resources.txt api_tests.txt EasyInstall.txt
%changelog
…
Todas as alterações você pod ver aqui