author Sylvain Thénault <>
Fri, 03 Nov 2017 11:44:31 +0100
changeset 2862 f434324b01f0
parent 2788 4d31d5d82e35
child 2874 301ca325d47e
permissions -rw-r--r--
[hooks] Add condition on rql syncing mime type and format id from file category Add restriction in each EXISTS clause to ensure the specified eids are actually a generic category (top level concept) or a file extension (1st level concept). This will avoid errors catched by test added in next commit with a different default vocabulary for mime types / format ids. A monkey-patch has to be backported to allow using computed relation in write query, which is not implemented in cw < 3.25.4 Related to #39322647

# 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-seda
Version:        0.11.5
Release:        logilab.1%{?dist}
Summary:        Data Exchange Standard for Archival
Group:          Applications/Internet
License:        LGPL
Source0:        cubicweb-seda-%{version}.tar.gz

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

BuildRequires:  %{python} %{python}-setuptools
Requires:       cubicweb >= 3.25.3
Requires:       cubicweb-eac
Requires:       cubicweb-skos >= 0.12.1
Requires:       cubicweb-compound >= 0.6
Requires:       cubicweb-relationwidget >= 0.4l
Requires:       cubicweb-squareui
Requires:       %{python}-rdflib >= 4.1
Requires:       %{python}-pyxst >= 0.2
Requires:       %{python}-six >= 1.4.0

Data Exchange Standard for Archival

%setup -q -n cubicweb-seda-%{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;'

%{__python} install --no-compile --skip-build --root $RPM_BUILD_ROOT


%defattr(-, root, root)