Группа :: Разработка/Python
Пакет: python2.3-module-Crypto
Главная Изменения Спек Патчи Загрузить Bugs and FR
# This spec for backport to M24 is autogenerated. Do not edit it.
# -*- coding: utf-8 -*-
%define modulever 2.0
%define version 2.0
%define release alt2
%define sourcename pycrypto
%def_without doc_package
%setup_python_module Crypto
Packager: Python Development Team <python at packages.altlinux.org>
Summary: Cryptography Toolkit for python
Summary(ru_RU.UTF-8): п я─п╦п©я┌п╬пЁя─п╟я└п╦я┤п╣я│п╨п╦п╧ п╦п╫я│я┌я─я┐п╪п╣п╫я┌п╟я─п╦п╧ п╢п╩я▐ python
Name: %packagename
Version: %version
Release: alt0.M24.2.1
Source: %sourcename-%modulever.tar.bz2
License: LGPL
Group: Development/Python
Prefix: %_prefix
Url: http://www.amk.ca/python/code/crypto.html
Provides: %{__python_module_prefix}-pycrypto
Obsoletes: %{__python_module_prefix}-pycrypto
BuildRequires: rpm-build-python > 0.12-alt3
%if_without doc_package
Provides: %{__python_module_prefix}-pycrypto-doc
Obsoletes: %{__python_module_prefix}-pycrypto-doc
%endif
BuildPreReq: python
%define moduledocdir %_docdir/%packagename-%version
# Automatically added by buildreq on Sun Jun 20 2004 (-bi)
BuildRequires: latex2html libgmp-devel python-doc-tools python-modules-compiler rpm-build-python tetex-core tetex-latex
BuildRequires: rpm-build-compat >= 0.4
%description
This is a collection of both secure hash functions (such as MD5 and
SHA), and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal,
etc.). The package is structured to make adding new modules easy.
This module is built for python 2.3
%description -l ru_RU.UTF-8
п╜я┌п╬ п╫п╟п╠п╬я─ я└я┐п╫п╨я├п╦п╧ п╢п╩я▐ п╡я▀я┤п╦я│п╩п╣п╫п╦я▐ п╠п╣п╥п╬п©п╟я│п╫я▀я┘ я┘я█я┬п╣п╧ (я┌п╟п╨п╦я┘ п╨п╟п╨ MD5 п╦
SHA) п╦ я─п╟п╥п╩п╦я┤п╫я▀я┘ п╟п╩пЁп╬я─п╦я┌п╪п╬п╡ я┬п╦я└я─п╬п╡п╟п╫п╦я▐ (AES, DES, IDEA, RSA, ElGamal п╦
я┌.п╢.). пёя│я┌я─п╬п╧я│я┌п╡п╬ п©п╟п╨п╣я┌п╟ п©п╬п╢я─п╟п╥я┐п╪п╣п╡п╟п╣я┌ п╩п╣пЁп╨п╬п╣ п╢п╬п╠п╟п╡п╩п╣п╫п╦п╣ п╫п╬п╡я▀я┘
п╪п╬п╢я┐п╩п╣п╧.
п°п╬п╢я┐п╩я▄ я│п╬п╠я─п╟п╫ п╢п╩я▐ python 2.3
%if_with doc_package
%package doc
Summary: %modulename API documentation and example programs
Summary(ru_RU.UTF-8): п■п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▐ п©п╬ API п╦ п©я─п╦п╪п╣я─я▀ п©я─п╬пЁя─п╟п╪п╪ п╢п╩я▐ %modulename
Group: Development/Python
Prefix: %_prefix
Requires: %packagename = %version
%description doc
%modulename is a collection of both secure hash functions (such as MD5
and SHA), and various encryption algorithms (AES, DES, IDEA, RSA,
ElGamal, etc.). Install python-%modulename-doc if you need module API
documentation and example programs
%description doc -l ru_RU.UTF-8
%modulename - я█я┌п╬ п╫п╟п╠п╬я─ я└я┐п╫п╨я├п╦п╧ п╢п╩я▐ п╡я▀я┤п╦я│п╩п╣п╫п╦я▐ п╠п╣п╥п╬п©п╟я│п╫я▀я┘ я┘я█я┬п╣п╧ (я┌п╟п╨п╦я┘
п╨п╟п╨ MD5 п╦ SHA) п╦ я─п╟п╥п╩п╦я┤п╫я▀я┘ п╟п╩пЁп╬я─п╦я┌п╪п╬п╡ я┬п╦я└я─п╬п╡п╟п╫п╦я▐ (AES, DES, IDEA, RSA,
ElGamal п╦ я┌.п╢.). пёя│я┌п╟п╫п╬п╡п╦я┌п╣ python-%modulename-doc, п╣я│п╩п╦ п▓п╟п╪ я┌я─п╣п╠я┐п╣я┌я│я▐
п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▐ п©п╬ API п╦ п©я─п╦п╪п╣я─я▀ п©я─п╬пЁя─п╟п╪п╪п╦я─п╬п╡п╟п╫п╦я▐ я│ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣п╪
п╢п╟п╫п╫п╬пЁп╬ п╪п╬п╢я┐п╩я▐.
%endif
%prep
%setup -q -n %sourcename-%modulever
%build
%__python setup.py build
pushd Doc
make -f /usr/share/python-doc-tools/Makefile MODULE=pycrypt html
popd
%install
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=%buildroot \
--record=INSTALLED_FILES
# remove test framework from the [main] build
subst '/\/test/d' INSTALLED_FILES
%__mkdir_p %buildroot%moduledocdir/API
# install can't be [easily] used for a recursive installations :-(
cp -pr Doc/html/* %buildroot%moduledocdir/API
cp -pr Demo %buildroot%moduledocdir/
%__install ACKS ChangeLog README TODO %buildroot%moduledocdir/
%files -f INSTALLED_FILES
%docdir %moduledocdir
%moduledocdir/ACKS
%moduledocdir/ChangeLog
%moduledocdir/README
%moduledocdir/TODO
%if_with doc_package
%files doc
%endif
%docdir %moduledocdir
%moduledocdir/API
%moduledocdir/Demo
%changelog
…
Полный changelog можно просмотреть здесь
# -*- coding: utf-8 -*-
%define modulever 2.0
%define version 2.0
%define release alt2
%define sourcename pycrypto
%def_without doc_package
%setup_python_module Crypto
Packager: Python Development Team <python at packages.altlinux.org>
Summary: Cryptography Toolkit for python
Summary(ru_RU.UTF-8): п я─п╦п©я┌п╬пЁя─п╟я└п╦я┤п╣я│п╨п╦п╧ п╦п╫я│я┌я─я┐п╪п╣п╫я┌п╟я─п╦п╧ п╢п╩я▐ python
Name: %packagename
Version: %version
Release: alt0.M24.2.1
Source: %sourcename-%modulever.tar.bz2
License: LGPL
Group: Development/Python
Prefix: %_prefix
Url: http://www.amk.ca/python/code/crypto.html
Provides: %{__python_module_prefix}-pycrypto
Obsoletes: %{__python_module_prefix}-pycrypto
BuildRequires: rpm-build-python > 0.12-alt3
%if_without doc_package
Provides: %{__python_module_prefix}-pycrypto-doc
Obsoletes: %{__python_module_prefix}-pycrypto-doc
%endif
BuildPreReq: python
%define moduledocdir %_docdir/%packagename-%version
# Automatically added by buildreq on Sun Jun 20 2004 (-bi)
BuildRequires: latex2html libgmp-devel python-doc-tools python-modules-compiler rpm-build-python tetex-core tetex-latex
BuildRequires: rpm-build-compat >= 0.4
%description
This is a collection of both secure hash functions (such as MD5 and
SHA), and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal,
etc.). The package is structured to make adding new modules easy.
This module is built for python 2.3
%description -l ru_RU.UTF-8
п╜я┌п╬ п╫п╟п╠п╬я─ я└я┐п╫п╨я├п╦п╧ п╢п╩я▐ п╡я▀я┤п╦я│п╩п╣п╫п╦я▐ п╠п╣п╥п╬п©п╟я│п╫я▀я┘ я┘я█я┬п╣п╧ (я┌п╟п╨п╦я┘ п╨п╟п╨ MD5 п╦
SHA) п╦ я─п╟п╥п╩п╦я┤п╫я▀я┘ п╟п╩пЁп╬я─п╦я┌п╪п╬п╡ я┬п╦я└я─п╬п╡п╟п╫п╦я▐ (AES, DES, IDEA, RSA, ElGamal п╦
я┌.п╢.). пёя│я┌я─п╬п╧я│я┌п╡п╬ п©п╟п╨п╣я┌п╟ п©п╬п╢я─п╟п╥я┐п╪п╣п╡п╟п╣я┌ п╩п╣пЁп╨п╬п╣ п╢п╬п╠п╟п╡п╩п╣п╫п╦п╣ п╫п╬п╡я▀я┘
п╪п╬п╢я┐п╩п╣п╧.
п°п╬п╢я┐п╩я▄ я│п╬п╠я─п╟п╫ п╢п╩я▐ python 2.3
%if_with doc_package
%package doc
Summary: %modulename API documentation and example programs
Summary(ru_RU.UTF-8): п■п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▐ п©п╬ API п╦ п©я─п╦п╪п╣я─я▀ п©я─п╬пЁя─п╟п╪п╪ п╢п╩я▐ %modulename
Group: Development/Python
Prefix: %_prefix
Requires: %packagename = %version
%description doc
%modulename is a collection of both secure hash functions (such as MD5
and SHA), and various encryption algorithms (AES, DES, IDEA, RSA,
ElGamal, etc.). Install python-%modulename-doc if you need module API
documentation and example programs
%description doc -l ru_RU.UTF-8
%modulename - я█я┌п╬ п╫п╟п╠п╬я─ я└я┐п╫п╨я├п╦п╧ п╢п╩я▐ п╡я▀я┤п╦я│п╩п╣п╫п╦я▐ п╠п╣п╥п╬п©п╟я│п╫я▀я┘ я┘я█я┬п╣п╧ (я┌п╟п╨п╦я┘
п╨п╟п╨ MD5 п╦ SHA) п╦ я─п╟п╥п╩п╦я┤п╫я▀я┘ п╟п╩пЁп╬я─п╦я┌п╪п╬п╡ я┬п╦я└я─п╬п╡п╟п╫п╦я▐ (AES, DES, IDEA, RSA,
ElGamal п╦ я┌.п╢.). пёя│я┌п╟п╫п╬п╡п╦я┌п╣ python-%modulename-doc, п╣я│п╩п╦ п▓п╟п╪ я┌я─п╣п╠я┐п╣я┌я│я▐
п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▐ п©п╬ API п╦ п©я─п╦п╪п╣я─я▀ п©я─п╬пЁя─п╟п╪п╪п╦я─п╬п╡п╟п╫п╦я▐ я│ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣п╪
п╢п╟п╫п╫п╬пЁп╬ п╪п╬п╢я┐п╩я▐.
%endif
%prep
%setup -q -n %sourcename-%modulever
%build
%__python setup.py build
pushd Doc
make -f /usr/share/python-doc-tools/Makefile MODULE=pycrypt html
popd
%install
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=%buildroot \
--record=INSTALLED_FILES
# remove test framework from the [main] build
subst '/\/test/d' INSTALLED_FILES
%__mkdir_p %buildroot%moduledocdir/API
# install can't be [easily] used for a recursive installations :-(
cp -pr Doc/html/* %buildroot%moduledocdir/API
cp -pr Demo %buildroot%moduledocdir/
%__install ACKS ChangeLog README TODO %buildroot%moduledocdir/
%files -f INSTALLED_FILES
%docdir %moduledocdir
%moduledocdir/ACKS
%moduledocdir/ChangeLog
%moduledocdir/README
%moduledocdir/TODO
%if_with doc_package
%files doc
%endif
%docdir %moduledocdir
%moduledocdir/API
%moduledocdir/Demo
%changelog
…
Полный changelog можно просмотреть здесь