- up to 1.0.3 auto/th/avogadro-1_0_3-1
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 25 Jun 2012 19:41:57 +0000 (19:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- removed obsolete patches
- updated files
- BR qt4 with fixed moc wrt boost

Changed files:
    avogadro-python2.7.patch -> 1.2
    avogadro-sipfix.patch -> 1.2
    avogadro.spec -> 1.21

avogadro-python2.7.patch [deleted file]
avogadro-sipfix.patch [deleted file]
avogadro.spec

diff --git a/avogadro-python2.7.patch b/avogadro-python2.7.patch
deleted file mode 100644 (file)
index 7482d15..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- cmake/modules/FindPythonLibs.cmake.orig    2010-11-04 01:25:19.550730820 +0100
-+++ cmake/modules/FindPythonLibs.cmake 2010-11-04 01:25:37.337400069 +0100
-@@ -27,7 +27,7 @@
- # Search for the python framework on Apple.
- CMAKE_FIND_FRAMEWORKS(Python)
--FOREACH(_CURRENT_VERSION 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
-+FOREACH(_CURRENT_VERSION 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
-   STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
-   IF(WIN32)
-     FIND_LIBRARY(PYTHON_DEBUG_LIBRARY
diff --git a/avogadro-sipfix.patch b/avogadro-sipfix.patch
deleted file mode 100644 (file)
index e2eea8c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- libavogadro/src/python/sip.cpp.orig        2010-11-04 02:55:32.850814584 +0100
-+++ libavogadro/src/python/sip.cpp     2010-11-04 03:09:53.326202047 +0100
-@@ -204,7 +204,7 @@
-     sipWrapper *wrapper = reinterpret_cast<sipWrapper*>(obj_ptr);
- #endif
-     // return the C++ pointer
--    return wrapper->u.cppPtr;
-+    return wrapper->data;
-   }
-     
-   QClass_converters()
index 00b7df7..cc6c15e 100644 (file)
@@ -1,20 +1,14 @@
-
-%define                qtver   4.7.0
-
 Summary:       An advanced molecular editor for chemical purposes
 Name:          avogadro
-Version:       1.0.1
-Release:       9
+Version:       1.0.3
+Release:       1
 License:       GPL v2
 Group:         Applications/Editors
 Source0:       http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2
-# Source0-md5: 0d5c391197101f0aab7be6b59f81e6fd
-# fix build with sip 4.10
+# Source0-md5: 92c2702c1980f70fb6d87a1a58147911
+Patch0:                %{name}-linguist.patch
+Patch1:                %{name}-cmake.patch
 URL:           http://avogadro.openmolecules.net/
-Patch0:                %{name}-python2.7.patch
-Patch1:                %{name}-linguist.patch
-Patch2:                %{name}-cmake.patch
-Patch3:                %{name}-sipfix.patch
 BuildRequires: QtNetwork-devel
 BuildRequires: QtOpenGL-devel
 BuildRequires: boost-devel >= 1.35
@@ -28,9 +22,9 @@ BuildRequires:        openbabel-devel >= 2.2.2
 BuildRequires: pkgconfig
 BuildRequires: python-numpy-devel
 BuildRequires: python-sip-devel
-BuildRequires: qt4-build >= %{qtver}
+BuildRequires: qt4-build >= 4.8.2-5
 BuildRequires: qt4-linguist
-BuildRequires: qt4-qmake >= %{qtver}
+BuildRequires: qt4-qmake >= 4.8.2-5
 BuildRequires: sip
 Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -61,9 +55,7 @@ libraries.
 %prep
 %setup -q
 %patch0 -p0
-%patch1 -p0
-%patch2 -p1
-%patch3 -p0
+%patch1 -p1
 
 %build
 install -d build
@@ -73,17 +65,19 @@ cd build
        -DENABLE_PYTHON=ON \
        -DENABLE_UPDATE_CHECKER=OFF \
        -DCMAKE_BUILD_TYPE=Release \
-       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-       -DLIB_INSTALL_DIR=%{_libdir} \
        ..
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features
+
 %{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__mv} $RPM_BUILD_ROOT{%{_prefix},%{_datadir}/qt4/mkspecs}/features/avogadro.prf
+
 %post libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
@@ -94,18 +88,22 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog COPYING
 %attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/avopkg
 %{_datadir}/%{name}
 %{_pixmapsdir}/%{name}-icon.png
 %{_desktopdir}/%{name}.desktop
+%{_mandir}/man1/avogadro.1*
+%{_mandir}/man1/avopkg.1*
 
 %files devel
 %defattr(644,root,root,755)
 %{_datadir}/lib%{name}
 %{_includedir}/%{name}
 %{_libdir}/*.so
+%{_datadir}/qt4/mkspecs/features/avogadro.prf
 
 %files libs
 %defattr(644,root,root,755)
-%{_datadir}/python*/site-packages/Avogadro.so
+%{py_sitedir}/Avogadro.so
 %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/*.so.*
This page took 0.260718 seconds and 4 git commands to generate.