### BEGIN CONFIG ### %define version 5.4.6 %define name erp5 %define release 1 ### END CONFIG ### # We do not actually use /usr/local/bin/python %define _requires_exceptions /usr/local/bin/python %define fullname %{name}-%{version} %define installdir /opt/%{fullname} Name: %{name} Version: %{version} Release: %mkrel %{release} Summary: Open Source ERP Solution URL: http://www.erp5.org License: GPL Vendor: Nexedi Packager: Nicolas Dumazet Group: Databases # to run buildout BuildRequires: python BuildRequires: python-devel # common C/C++ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: patch BuildRequires: libglib2.0-devel # Python dependencies BuildRequires: libbzip2-devel BuildRequires: libgdbm-devel BuildRequires: libjpeg-devel BuildRequires: libncurses-devel BuildRequires: libopenssl-devel BuildRequires: libtermcap-devel BuildRequires: zlib1-devel # pysvn and svn client BuildRequires: subversion BuildRequires: subversion-devel BuildRequires: subversion-tools # MySQL BuildRequires: bison BuildRequires: flex # ood BuildRequires: cpio BuildRequires: rpm BuildRequires: x11-server-xvfb # python-lxml BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRoot: %{_tmppath}/%{fullname}-%{release}-root %description %{summary} %prep %{__rm} -rf %{installdir} %{__mkdir_p} %{installdir} %build cd %{installdir} svn co https://svn.erp5.org/repos/public/erp5/trunk/buildout . python bootstrap/bootstrap.py bin/buildout %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot} %{__cp} -ar --parents %{installdir} %{buildroot} # cleanup .svn files find %{buildroot} -name .svn -print0 | xargs -0 %{__rm} -rf %files %defattr(-, root, root, 0755) %{installdir} %clean %{__rm} -rf %{buildroot} %{installdir}