cubicweb-seda.spec
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 09 Mar 2017 16:28:55 +0100
changeset 2474 d331fbee620a
parent 2459 ce42d96a30a4
child 2517 a1c4bd82b303
permissions -rw-r--r--
[profile gen] Support for digest algorithm in SEDA 0.2 export This is a bit tough since in SEDA 0.2, Integrity element are defined as children of the root transfer node, hence we have to reuse the kind of reference trick we have in SEDA 0.2 export: document export a seda:profid attribute whose value is the referenced by default value on the UnitIdentifier element associated to the digest (and algorithm) definition. Related to #16687452

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

Name:           cubicweb-seda
Version:        0.8.0
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.24
Requires:       cubicweb-eac
Requires:       cubicweb-skos >= 0.12.1
Requires:       cubicweb-compound >= 0.4
Requires:       cubicweb-relationwidget >= 0.4l
Requires:       cubicweb-squareui
Requires:       %{python}-rdflib >= 4.1
Requires:       %{python}-pyxst
Requires:       %{python}-six >= 1.4.0

%description
Data Exchange Standard for Archival

%prep
%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;'
%endif

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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_python_sitelib}/*