]> git.pld-linux.org Git - packages/python-pygtk.git/commitdiff
- deal with numpy BR/R (bcond added)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 4 Dec 2003 23:03:48 +0000 (23:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-pygtk.spec -> 1.85

python-pygtk.spec

index 2fd001c15ed247806ccfd888304c79b1f5698649..2313e448e7eab436edef02919e4bb30100d179b2 100644 (file)
@@ -1,6 +1,8 @@
 #
-# todo:
-# 1. numpy? extensions?
+# Conditional build:
+%bcond_without numpy   # without numpy features
+#
+# todo: extensions?
 
 %include       /usr/lib/rpm/macros.python
 
@@ -18,12 +20,13 @@ Source0:    http://ftp.gnome.org/pub/gnome/sources/%{module}/2.0/%{module}-%{versio
 # Source0-md5: 14db9cfffe31f6df0351bd5fec69f606
 Patch0:                %{name}-pyc.patch
 URL:           http://www.daa.com.au/~james/software/pygtk/
-%pyrequires_eq python-modules
 BuildRequires: gtkglarea-devel >= 1.99.0
 BuildRequires: libglade2-devel >= 2.0.1
 BuildRequires: python-devel >= 2.3.2
+%{?with_numpy:BuildRequires:   python-numpy-devel}
 BuildRequires: rpm-pythonprov
-Requires:      python-numpy
+%pyrequires_eq python-modules
+%{?with_numpy:Requires:        python-numpy}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -135,7 +138,9 @@ Wi
 
 %build
 %configure \
-       --enable-thread
+       --enable-thread \
+       %{!?with_numpy:--disable-numpy}
+
 %{__make}
 
 %install
This page took 0.031096 seconds and 4 git commands to generate.