[users] x86_64 patch for clearsilver.spec
Paul Heinlein
heinlein at madboa.com
Wed Apr 18 00:45:54 CEST 2007
I'm new to the list. I've been using rpm-based systems since 1997, and
have rolled my own packages for several years (nothing as broad and
well tested as rpmforge packages, but workable nonetheless).
I note that there are no x86_64 rpms for clearsilver and related
packages. The somewhat simplistic patch below gets clearsilver.spec to
build on CentOS 5 x86_64. All the tests in util/test pass (at least
they return an exit code of 0), and the rpmforge Trac package works
properly when installed on top the resulting clearsilver and
python-clearsilver packages.
What I really wanted to do was append "-fPIC" to %{optflags}, but I
couldn't figure out how to do that without encountering recursion
errors.
----- %< -----
--- clearsilver.spec.orig 2006-04-18 15:05:03.000000000 -0700
+++ clearsilver.spec 2007-04-17 15:39:18.000000000 -0700
@@ -7,6 +7,10 @@
%define need_buildroot %(perl -e 'use ExtUtils::MakeMaker; print ($ExtUtils::MakeMaker::VERSION<6.10?1:0)')
%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
+%ifarch x86_64
+%define optflags %{__global_cflags} -m64 -mtune=generic -fPIC
+%endif
+
Summary: ClearSilver HTML template system
Name: clearsilver
Version: 0.10.1
----- %< -----
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
More information about the users
mailing list