Группа :: Разработка/Python
Пакет: python-module-pycaptcha
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define version 0.4
%define release alt1
%setup_python_module pycaptcha
Summary: An attempt to rewrite the decimal module in C
Name: %packagename
Version: %version
Release: %release
Source: %modulename-%version.tar.bz2
Patch1: %modulename-%version-alt-fixes.patch.bz2
License: MIT
Group: Development/Python
Url: http://labs.logic.cz/download/pycaptcha/pycaptcha-0.4.tar.gz
# Automatically added by buildreq on Tue Sep 16 2008
BuildRequires: python-devel
Requires: python-module-imaging
%description
This is the PyCAPTCHA package, a collection of Python modules
implementing CAPTCHAs: automated tests that humans should pass,
but current computer programs can't. These tests are often
used for security.
See http://www.captcha.net for more information and examples.
This project was started because the CIA project, written in
Python, needed a CAPTCHA to automate its user creation process
safely. All existing implementations the author could find were
written in Java or for the .NET framework, so a simple Python
alternative was needed.
%prep
%setup
%patch1 -p1
%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 pycaptcha
Summary: An attempt to rewrite the decimal module in C
Name: %packagename
Version: %version
Release: %release
Source: %modulename-%version.tar.bz2
Patch1: %modulename-%version-alt-fixes.patch.bz2
License: MIT
Group: Development/Python
Url: http://labs.logic.cz/download/pycaptcha/pycaptcha-0.4.tar.gz
# Automatically added by buildreq on Tue Sep 16 2008
BuildRequires: python-devel
Requires: python-module-imaging
%description
This is the PyCAPTCHA package, a collection of Python modules
implementing CAPTCHAs: automated tests that humans should pass,
but current computer programs can't. These tests are often
used for security.
See http://www.captcha.net for more information and examples.
This project was started because the CIA project, written in
Python, needed a CAPTCHA to automate its user creation process
safely. All existing implementations the author could find were
written in Java or for the .NET framework, so a simple Python
alternative was needed.
%prep
%setup
%patch1 -p1
%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 можно просмотреть здесь