|
@@ -1,7 +1,6 @@
|
|
|
%define name clearsilver
|
|
|
%define version 0.10.5
|
|
|
%define release 7%{_dist_release}
|
|
|
-%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
|
|
|
|
|
|
Summary: A fast, powerful, and language-neutral HTML template system.
|
|
|
Summary(ja): 高速、パワフルで言語中立なHTMLテンプレートシステム
|
|
@@ -42,8 +41,12 @@ Clearsilver は高速、強力で言語中立なテンプレートシステム
|
|
|
%patch1 -p1
|
|
|
%patch2 -p1
|
|
|
%patch3 -p1
|
|
|
-
|
|
|
+touch configure
|
|
|
perl -pi -e 's/python_versions="2\.5/python_versions="2.7 2.6 2.5/' configure
|
|
|
+sed -i 's|/neo/opt/bin/python|%{__python}|' python/examples/*/*.py
|
|
|
+sed -i 's|PYTHON_SITE = @PYTHON_SITE@|PYTHON_SITE = %{python_sitearch}|' rules.mk.in
|
|
|
+find python/examples -type f | xargs chmod -x
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
%configure --disable-csharp
|
|
@@ -73,7 +76,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{perl_sitearch}/auto/ClearSilver/
|
|
|
%{ruby_vendorarchdir}/*.so
|
|
|
%{ruby_vendorlibdir}/*.rb
|
|
|
-%{python_sitelib}/*.so
|
|
|
+%{python_sitearch}/*.so
|
|
|
%{_libdir}/*.a
|
|
|
%{_mandir}/man*/*.gz
|
|
|
|