From: wrobell Date: Fri, 29 Sep 2006 01:25:37 +0000 (+0000) Subject: - ver. 2.42a X-Git-Tag: auto/th/blender-2_42a-0_1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=811f0f5d29740ba70831301cbee7b37b5ad07cb2;p=packages%2Fblender.git - ver. 2.42a - drop build config installed using SOURCE, just generate it on the fly (imho, much simpler) - above also fixes problem, when files are built in ~/rpm/BUILD instead of ~/rpm/BUILD/blender* Changed files: blender.spec -> 1.66 --- diff --git a/blender.spec b/blender.spec index 529659e..aaf88fd 100644 --- a/blender.spec +++ b/blender.spec @@ -6,15 +6,14 @@ Summary: 3D modeling, rendering, animation and game creation package Summary(pl): Pakiet do tworzenia animacji 3D oraz gier Name: blender -Version: 2.42 -Release: 0.2 +Version: 2.42a +Release: 0.1 License: GPL Group: X11/Applications/Graphics Source0: http://download.blender.org/source/%{name}-%{version}.tar.gz -# Source0-md5: 232d714a64c3a2208f0ea999fe4a2440 +# Source0-md5: 3d60b7ebe0dea47da12744fe2462d96c Source1: %{name}.desktop Source2: %{name}.png -Source3: %{name}-config.opts Source4: %{name}-wrapper Source5: %{name}.manpage Patch0: %{name}-po_and_locale_names.patch @@ -58,29 +57,32 @@ Blender to darmowy i w pe 3D oraz gier, dostêpny dla systemów Unix, Windows i BeOS. %prep -%setup -q -n %{name}%{version} +%setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 mv -f po/pt_{br,BR}.po -install %{SOURCE3} config.opts %build rm -f missing +rm -f user-config.py RPMCFLAGS="\"`echo %{rpmcflags}|sed 's/ /\",\"/g'`\"" RPMLDFLAGS="\"`echo %{rpmldflags}|sed 's/ /\",\"/g'`\"" -sed -i -e "s|^CCFLAGS =.*|CCFLAGS = [$RPMCFLAGS]|" \ - -e "s|^CXXFLAGS =.*|CXXFLAGS = [$RPMCFLAGS]|" \ - -e "s|^LDFLAGS =.*|LDFLAGS = [$RPMLDFLAGS]|" \ - config.opts -sed -i -e "s|TARGET_CC =.*|TARGET_CC = '%{__cc}'|" \ - -e "s|TARGET_CXX =.*|TARGET_CXX = '%{__cxx}'|" \ - config.opts -sed -i 's/python2\.3/python%{py_ver}/' config.opts +cat > user-config.py <