Группа :: Разработка/Python
Пакет: python-module-decimal-c
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define version svn20080222
%define release alt1
%setup_python_module decimal-c
Summary: An attempt to rewrite the decimal module in C
Name: %packagename
Version: %version
Release: %release
Source: %modulename-%version.tar.bz2
License: GPL
Group: Development/Python
Url: http://svn.python.org/projects/sandbox/branches/jim-fix-setuptools-cli/decimal-c/
# Automatically added by buildreq on Fri Feb 22 2008
BuildRequires: python-devel
%description
The decimal-c branch is an attempt to rewrite the decimal module in C
_decimal builds as a regular stand-alone python extension module
decimal.py and test_decimal.py are copies from the 2.5 trunk
At the beginning decimal was meant to inherit from _decimal, and wrap
not implemented functions. Now, when almost all functions work properly
it is not necessary.
%prep
%setup
%build
mkdir -p buildroot
# Unfortunately build and install steps should be done at once
# because otherwise .pyo files won't get into INSTALLED_FILES
# record
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=`pwd`/buildroot \
--record=INSTALLED_FILES
%install
cp -pr buildroot %buildroot
unset RPM_PYTHON
%files -f INSTALLED_FILES
%changelog
…
Полный changelog можно просмотреть здесь
%define release alt1
%setup_python_module decimal-c
Summary: An attempt to rewrite the decimal module in C
Name: %packagename
Version: %version
Release: %release
Source: %modulename-%version.tar.bz2
License: GPL
Group: Development/Python
Url: http://svn.python.org/projects/sandbox/branches/jim-fix-setuptools-cli/decimal-c/
# Automatically added by buildreq on Fri Feb 22 2008
BuildRequires: python-devel
%description
The decimal-c branch is an attempt to rewrite the decimal module in C
_decimal builds as a regular stand-alone python extension module
decimal.py and test_decimal.py are copies from the 2.5 trunk
At the beginning decimal was meant to inherit from _decimal, and wrap
not implemented functions. Now, when almost all functions work properly
it is not necessary.
%prep
%setup
%build
mkdir -p buildroot
# Unfortunately build and install steps should be done at once
# because otherwise .pyo files won't get into INSTALLED_FILES
# record
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=`pwd`/buildroot \
--record=INSTALLED_FILES
%install
cp -pr buildroot %buildroot
unset RPM_PYTHON
%files -f INSTALLED_FILES
%changelog
…
Полный changelog можно просмотреть здесь