Группа :: Разработка/Python
Пакет: python-module-setuptools
Главная Изменения Спек Патчи Загрузить Bugs and FR
%def_with M24
%if_with M24
%define release alt0.M24.1
%else
%define release alt1
%endif
%define version 0.6a9
%setup_python_module setuptools
Name: %packagename
Version: %version
Release: %release
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.tar.bz2
BuildArch: noarch
BuildPreReq: rpm-build-python >= 0.27
%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
%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
echo %modulename-%version-py%__python_version.egg > %buildroot%python_sitelibdir/%modulename.pth
find %buildroot%python_sitelibdir/%modulename-%version-py%__python_version.egg -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
%python_sitelibdir/%modulename.pth
%exclude %_bindir/easy_install.py
%exclude %python_sitelibdir/%modulename-%version-py%__python_version.egg/site.py
%exclude %python_sitelibdir/%modulename-%version-py%__python_version.egg/site.py[co]
%changelog
…
Полный changelog можно просмотреть здесь
%if_with M24
%define release alt0.M24.1
%else
%define release alt1
%endif
%define version 0.6a9
%setup_python_module setuptools
Name: %packagename
Version: %version
Release: %release
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.tar.bz2
BuildArch: noarch
BuildPreReq: rpm-build-python >= 0.27
%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
%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
echo %modulename-%version-py%__python_version.egg > %buildroot%python_sitelibdir/%modulename.pth
find %buildroot%python_sitelibdir/%modulename-%version-py%__python_version.egg -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
%python_sitelibdir/%modulename.pth
%exclude %_bindir/easy_install.py
%exclude %python_sitelibdir/%modulename-%version-py%__python_version.egg/site.py
%exclude %python_sitelibdir/%modulename-%version-py%__python_version.egg/site.py[co]
%changelog
…
Полный changelog можно просмотреть здесь