[svn] r9775 - /trunk/rpms/dia/dia.spec

Yury V. Zaytsev yury at shurup.com
Tue Mar 22 20:53:07 CET 2011


Author: yury
Date: Tue Mar 22 19:53:07 2011
New Revision: 9775

URL: http://svn.rpmforge.net/viewvc/rpmforge?rev=9775&view=rev
Log:
EL6 dia build fix


Modified:
    trunk/rpms/dia/dia.spec

Modified: trunk/rpms/dia/dia.spec
URL: http://svn.rpmforge.net/viewvc/rpmforge/trunk/rpms/dia/dia.spec?rev=9775&r1=9774&r2=9775&view=diff
==============================================================================
--- trunk/rpms/dia/dia.spec (original)
+++ trunk/rpms/dia/dia.spec Tue Mar 22 19:53:07 2011
@@ -5,10 +5,12 @@
 ### EL2 ships with dia-0.88.1-3.3
 # ExcludeDist: el2 el4
 
+%{?el6:%define _default_patch_fuzz 2}
+
 Summary: Diagram drawing program
 Name: dia
 Version: 0.97
-Release: 1%{?dist}
+Release: 2%{?dist}
 Epoch: 1
 License: GPL
 Group: Applications/Multimedia
@@ -72,6 +74,9 @@
 
 %{__perl} -pi.orig -e 's|\(W32::HDC\)user_data;|(W32::HDC)(guint64)user_data;|g' plug-ins/wmf/wmf.cpp
 
+# Change linking from static libpython${PYTHON_VERSION}.a to dynamic libpython${PYTHON_VERSION}.so
+%{__perl} -pi -e 's|libpython\${PYTHON_VERSION}.a|libpython\${PYTHON_VERSION}.so|' configure
+
 %build
 #autoreconf --force --install --symlink
 %configure \
@@ -123,6 +128,9 @@
 %{_libdir}/dia/
 
 %changelog
+* Tue Mar 22 2011 Yury V. Zaytsev <yury at shurup.com> - 0.97-2
+- Fixed EL6 build (thanks to Bjarne Saltbaek!)
+
 * Tue Jul 14 2009 Dag Wieers <dag at wieers.com> - 0.97-1
 - Updated to release 0.97.
 




More information about the commits mailing list