author Samuel Trégouët <>
Tue, 15 Mar 2016 17:17:06 +0100
changeset 5 dd9529d42509
parent 0 04653b4e17e2
child 10 4b74407a9b31
permissions -rw-r--r--
ckeditor url can be configured with uiprops closes #13521192

# for el5, force use of python2.6
%if 0%{?el5}
%define python python26
%define __python /usr/bin/python2.6
%define python python
%define __python /usr/bin/python
%{!?_python_sitelib: %define _python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           cubicweb-ckeditor
Version:        0.1.0
Release:        logilab.1%{?dist}
Summary:        WYSIWYG js editor with ckeditor
Group:          Applications/Internet
License:        LGPL
Source0:        cubicweb-ckeditor-%{version}.tar.gz

BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires:  %{python} %{python}-setuptools
Requires:       cubicweb >= 3.22.2
Requires:       %{python}-six >= 1.4.0

WYSIWYG js editor with ckeditor

%setup -q -n cubicweb-ckeditor-%{version}
%if 0%{?el5}
# change the python version in shebangs
find . -name '*.py' -type f -print0 |  xargs -0 sed -i '1,3s;^#!.*python.*$;#! /usr/bin/python2.6;'

NO_SETUPTOOLS=1 %{__python} --quiet install --no-compile --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
# remove generated .egg-info file
rm -rf $RPM_BUILD_ROOT/usr/lib/python*


%defattr(-, root, root)