author Julien Cristau <>
Fri, 17 Jul 2015 16:43:09 +0200
changeset 772 d5be0ab6712c
parent 770 0906f9daa48e
child 775 c629ea9f78f6
permissions -rw-r--r--
[pkg] fix Debian package dependencies Fix regression introduced by switch to dh_python2: it reads our egg-info/requires.txt to try and guess package dependencies. This generates a broken dependency on nonexistent "python-yapps" (instead of yapps2-runtime) and an unnecessary one on python-logilab-constraint (we use gecode).

%if 0%{?el5}
%define python python26
%define __python /usr/bin/python2.6
%{!?python_scriptarch: %define python_scriptarch %(%{__python} -c "from distutils.sysconfig import get_python_lib; from os.path import join; print join(get_python_lib(1, 1), 'scripts')")}
%define python python
%define __python /usr/bin/python

Name:           %{python}-rql
Version:        0.33.1
Release:        logilab.1%{?dist}
Summary:        relationship query language (RQL) utilities

Group:          Development/Languages/Python
License:        LGPLv2+
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires:  %{python}-devel
BuildRequires:  %{python}-setuptools
BuildRequires:  gecode-devel
Requires:       %{python}
Requires:       %{python}-logilab-common >= 0.47.0
Requires:       %{python}-logilab-database >= 1.6.0
Requires:       %{python}-yapps2 >= 2.1.1
Requires:       %{python}-logilab-constraint >= 0.5.0
Requires:       %{python}-six >= 1.4.0
Requires:       %{python}-setuptools

relationship query language (RQL) utilities

%setup -q -n rql-%{version}

%{__python} build
%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} install -O1 --skip-build --root $RPM_BUILD_ROOT %{?python_scriptarch: --install-scripts=%{python_scriptarch}}


%defattr(-, root, root)