]> git.pld-linux.org Git - packages/blender.git/commitdiff
- bcond python23 for optional python 2.3/2.4 build auto/ac/blender-2_35-2
authorsaq <saq@pld-linux.org>
Thu, 23 Dec 2004 17:34:32 +0000 (17:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 2 for rebuild with python 2.4

Changed files:
    blender.spec -> 1.45

blender.spec

index 66a8aacc8b67592c45242e8d76daba4e8d1cfb2f..9aa9bd1f8e77039b7282a861c58e62cefb9af931 100644 (file)
@@ -3,11 +3,14 @@
 # - enable OpenAL support
 # - libsolid/libqhull/libode BR ?
 # - package python scripts
+#
+# Conditional build:
+%bcond_with    python23        # build for Python 2.3
 Summary:       3D modeling, rendering, animation and game creation package
 Summary(pl):   Pakiet do tworzenia animacji 3D oraz gier
 Name:          blender
 Version:       2.35
-Release:       1
+Release:       2
 License:       GPL
 Group:         X11/Applications/Graphics
 Source0:       http://download.blender.org/source/%{name}-%{version}.tar.bz2
@@ -29,7 +32,12 @@ BuildRequires:       libstdc++-devel
 BuildRequires: libtool
 BuildRequires: libvorbis-devel
 BuildRequires: openssl-devel >= 0.9.7d
-BuildRequires: python-devel
+%if %{with python23}
+BuildRequires: python-devel >= 1:2.3
+BuildRequires: python-devel < 1:2.4
+%else
+BuildRequires: python-devel >= 1:2.3
+%endif
 BuildRequires: scons
 #BuildRequires:        smpeg-devel
 BuildRequires: zlib-devel
@@ -69,7 +77,9 @@ sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \
 sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \
        -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \
        config.opts
-# TODO fix PYTHON_* vars in config.opts
+%if %{without python23}
+sed -i 's/python2\.3/python2.4/' config.opts
+%endif
 
 scons
 %{__make} -C po OCGDIR=..
This page took 0.130993 seconds and 4 git commands to generate.