]> git.pld-linux.org Git - packages/blender.git/commitdiff
- drop python23 bcond, autodetect python version
authorsaq <saq@pld-linux.org>
Sun, 2 Jan 2005 16:38:02 +0000 (16:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    blender.spec -> 1.47

blender.spec

index 2b353c74ca7c78bb0ea92fd9bd654ae6cfe66c72..282c0ca44d7e704d86582f7f66ed0e5db943241f 100644 (file)
@@ -3,9 +3,7 @@
 # - 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
@@ -32,12 +30,7 @@ BuildRequires:       libstdc++-devel
 BuildRequires: libtool
 BuildRequires: libvorbis-devel
 BuildRequires: openssl-devel >= 0.9.7d
-%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
@@ -77,9 +70,7 @@ 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
-%if %{without python23}
-sed -i 's/python2\.3/python2.4/' config.opts
-%endif
+sed -i 's/python2\.3/python%{py_ver}/' config.opts
 
 scons
 %{__make} -C po OCGDIR=..
This page took 0.270537 seconds and 4 git commands to generate.