Changeset: 9a674c575a94 for python-monetdb
URL: http://dev.monetdb.org/hg/python-monetdb?cmd=changeset;node=9a674c575a94
Modified Files:
python-monetdb.spec
Branch: default
Log Message:
Make spec file compatible with EPEL, and add missing build dependencies.
diffs (36 lines):
diff --git a/python-monetdb.spec b/python-monetdb.spec
--- a/python-monetdb.spec
+++ b/python-monetdb.spec
@@ -7,6 +7,21 @@
%bcond_with python3
%endif
+%if %{?rhel:1}%{!?rhel:0}
+# On RedHat Enterprise Linux, there is no python3, and the py2_build
+# and py2_install macros are also not available. We define them here.
+%define py_setup setup.py
+%define py_shbang_opts -s
+%define py2_build %{expand:\
+CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} build
--executable="%{__python2} %{py2_shbang_opts}" %{?1}\
+}
+%define py2_install %{expand:\
+CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1
--skip-build --root %{buildroot} %{?1}\
+}
+# We need an extra dependecy
+BuildRequires: python-setuptools
+%endif
+
Name: python-monetdb
Epoch: 1
Version: 1.0
@@ -19,8 +34,10 @@ Source0: http://dev.monetdb.org/download
BuildArch: noarch
BuildRequires: python2-devel
+BuildRequires: python-six
%if %{with python3}
BuildRequires: python3-devel
+BuildRequires: python3-six
%endif # with python3
Requires: python-six
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list