# -*- mode: rpm-spec; coding: utf-8; -*- %define bname ERP5Type %define version 0.9 %define release alt1 Name: %bname Summary: Base objects for ERP5 Summary(ru_RU.UTF-8): Базовые объекты для ERP5 Version: %version Release: %release Group: System/Servers/ZProducts URL: http://www.erp5.org License: GPL or ZPL Source: %name-%version.tar.bz2 Patch: ERP5Type-0.9-cvs-get_request.patch Patch1: ERP5Type-0.9-alt-ZCatalog-compat.patch # Standard Zope Product stuff Requires: Zope-Modules BuildRequires: python-devel = %__python_version Requires: python = %__python_version Prefix: /usr/lib/zope/lib/python/Products %python_module_declare %prefix %add_python_lib_path /usr/lib/zope/lib/python %python_req_hier # Work aroubd a bug in hierarchical requirements search tool # (cray@ told he fixed it in trunk already) %add_python_req_skip Accessor Accessor.Base Accessor.TypeDefinition Document.Folder #---------------------------------------------------------------------- %description ERP5Type contains most importants objects for ERP5. ERP5Type defines most of methods that will be used by every object. It also implements the Rapid Application Developpement feature used in ERP5. http://www.erp5.org %description -l ru_RU.UTF-8 ERP5Type содержит наиболее важные объекты для ERP5, он определяет большую часть методов, используемых всеми объектами. Кроме этого, он реализует метод Быстрой Разработки Приложений (Rapid Application Developpement), используемый в ERP5 http://www.erp5.org #---------------------------------------------------------------------- %prep %setup -q %patch0 -p1 %patch1 -p1 find ./ -type f -exec chmod 0644 {} \; ||: find ./ -type d -name CVS -exec rm -rf {} \; ||: find ./ -type f -name .cvsignore -exec rm -rf {} \; ||: chmod +x tests/{runalltests,ERP5TypeTestCase,framework,runUnitTest,testERP5Type,testXMLMatrix}.py tests/*.sh #---------------------------------------------------------------------- %install %__mkdir_p %buildroot%prefix/%name/ %__install -m 0644 *.py *.png %buildroot%prefix/%name/ %__install -m 0644 VERSION.txt %buildroot%prefix/%name/version.txt %__cp -pr Accessor Constraint Document dtml help Interface PropertySheet skins Tool \ %buildroot%prefix/%name/ # tests depends on the rest of ERP5. # skip them currently #%__cp -pr tests %buildroot%prefix/%name/ # Fixup tests scripts. They shouldn't depend on /usr/bin/python #%__subst 's|^#!%_bindir/python[^ \t]*\(.*\)|#!/usr/bin/python%__python_version \1|' %buildroot%prefix/%name/tests/* %clean #---------------------------------------------------------------------- %files %doc CHANGES.txt %prefix/%name #---------------------------------------------------------------------- %changelog * Wed Jun 15 2005 Alexey Morozov 0.9-alt1 - Initial build for ALT Linux - Added patch to ERP5Type/Utils.py from ERP5 CVS (version 2.49 of Utils.py) to work w/ Localizer-1.1.0+ (ERP5Type-0.9-cvs-get_request.patch) - Added patch to allow ERP5Type to coexist w/ stock ZCatalog ERP5Type-0.9-alt-ZCatalog-compat.patch * Tue Sep 01 2004 Sebastien Robin 0.8-1mdk - Final relase for Mandrake 10.1 * Thu Jun 10 2004 Sebastien Robin 0.1-5mdk - New Release For Mandkrake 10.1 * Mon Feb 09 2004 Sebastien Robin 0.1-4mdk - Updated to the last code * Mon Sep 08 2003 Sebastien Robin 0.1-3mdk - Changed permissions on files * Wed Sep 05 2003 Sebastien Robin 0.1-2mdk - Update spec in order to follows Mandrake Rules * Mon May 12 2003 Sebastien Robin 0.1-1nxd - Create the spec file