Browse Source

update: avogadro

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2763 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 13 years ago
parent
commit
82ae1f7faa
1 changed files with 16 additions and 3 deletions
  1. 16 3
      a/avogadro/avogadro-vl.spec

+ 16 - 3
a/avogadro/avogadro-vl.spec

@@ -1,4 +1,4 @@
-%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.6.3)
+%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.7.1)
 %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver})
 
 %define ENABLE_TESTS -DENABLE_TESTS:BOOL=ON
@@ -6,12 +6,19 @@
 Name:           avogadro
 Summary:        An advanced molecular editor for chemical purposes
 Version:        1.0.1
-Release:        5%{?_dist_release}
+Release:        6%{?_dist_release}
 
 Group:          Applications/Editors
 License:        GPLv2
 URL:            http://avogadro.openmolecules.net/
+
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# fix FTBFS with SIP 4.11 (Gentoo#335644)
+# patch submitted: http://bugs.gentoo.org/attachment.cgi?id=247308 (upstream is
+# CCed on the Gentoo bug)
+Patch0:         avogadro-1.0.1-sip411.patch
+# fix crash with current SIP and Python 2.7 (#642248)
+Patch1:         avogadro-1.0.1-pycapsule.patch
 
 BuildRequires:  cmake >= 2.6.0
 BuildRequires:  qt4-designer >= 4.5.1
@@ -49,7 +56,7 @@ molecular editor Avogadro.
 Summary: Development files for Avogadro
 Group: Development/Libraries
 Requires: %{name}-libs = %{version}-%{release} 
-Requires: qt4-devel
+Requires: qt4-devel = %{_qt4_version}
 
 %description devel
 This package contains files to develop applications using 
@@ -58,6 +65,8 @@ Avogadros libraries.
 
 %prep
 %setup -q
+%patch0 -p1 -b .sip411
+%patch1 -p1 -b .pycapsule
 
 # nuke unpatched copy, use working version included in cmake instead -- Rex
 rm -f cmake/modules/FindPythonLibs.cmake
@@ -129,6 +138,10 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/avogadro.desktop
 
 
 %changelog
+* Wed Feb 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-6
+- rebuilt with qt4-4.7.1
+- added Patch0 and 1 from Fedora
+
 * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> - 1.0.1-5
 - rebuilt with libboost-1.45.0