Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37648596
en ru br
Репозитории ALT
5.1: 0.9.8.5-alt2
4.1: 0.9.4.1-alt1.1.1.1
4.0: 0.9.4.1-alt1.1.1
3.0: 0.9.3-alt2.1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-Pyrex

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# -*- mode: rpm-spec; coding: utf-8 -*-
%define version 0.9.8.5
%define release    alt2
%define source_version 0.9.8.5
%define source_name Pyrex
%define archdir %{_libexecdir}64/python%__python_version/site-packages
%setup_python_module Pyrex

%add_python_req_skip Pyrex

Summary: A language for writing Python extension modules
Name: python-module-Pyrex
Version: %version
Release: %release
Source: %source_name-%source_version.tar
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
License: Freeware
Group: Development/Python
Prefix: %_prefix
Url: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
BuildPreReq: rpm-build-python >= 0.20-alt1
BuildArch: noarch

%description
Pyrex  is  a  language  specially designed for writing Python extension
modules.  It's designed to bridge the gap between the nice, high-level,
easy-to-use world of Python and the messy, low-level world of C.

%prep
%setup -q -n %source_name-%source_version

%build
%python_build

%install
CFLAGS="%optflags" python setup.py \
install --optimize=2 \
--root=%buildroot \
--record=INSTALLED_FILES

# fool the ALT building system a little to avoid dependency on

# python-strict :-)
%__subst 's/^#!.*\/python\([ ].*\)\?$/#!\/usr\/bin\/env python%__python_version\1/' \
%buildroot%_bindir/*

# Remove Mac-specific stuff

%__subst '/\/Mac\//d' INSTALLED_FILES
# Remove test file
%__subst '/\/Plex\/test/d' INSTALLED_FILES
sed -i 's|^%{_libexecdir}64/|%_libexecdir/|' INSTALLED_FILES
if [ -d %archdir ]; then
mv %buildroot%archdir/Pyrex/Compiler/Lexicon.pickle \
%buildroot%_libexecdir/python%__python_version/site-packages/Pyrex/Compiler/
fi

%files -f INSTALLED_FILES
%doc README.txt ToDo.txt USAGE.txt CHANGES.txt Doc Demos

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin