]> git.pld-linux.org Git - packages/avogadro.git/blobdiff - avogadro.spec
- prevent moc from tripping over BOOST_JOIN
[packages/avogadro.git] / avogadro.spec
index c8a44833d32f5df2d1dc4a2e7937d2445c957fe4..b853c5c7e31fa5a7901254ab613d75e80129d47e 100644 (file)
@@ -1,23 +1,32 @@
 Summary:       An advanced molecular editor for chemical purposes
 Name:          avogadro
-Version:       1.0.0
-Release:       0.1
+Version:       1.0.3
+Release:       5
 License:       GPL v2
 Group:         Applications/Editors
-URL:           http://avogadro.openmolecules.net/
 Source0:       http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2
-# fix build with sip 4.10
-Patch0:                %{name}-sip.patch
+# Source0-md5: 92c2702c1980f70fb6d87a1a58147911
+Patch0:                %{name}-linguist.patch
+Patch1:                %{name}-cmake.patch
+Patch2:                %{name}-moc-boost.patch
+URL:           http://avogadro.openmolecules.net/
+BuildRequires: QtNetwork-devel
+BuildRequires: QtOpenGL-devel
 BuildRequires: boost-devel >= 1.35
-BuildRequires: cmake >= 2.6.0
+BuildRequires: boost-python-devel
+BuildRequires: cmake >= 2.8.0
 BuildRequires: desktop-file-utils
 BuildRequires: docbook-utils
-BuildRequires: eigen2-devel >= 2.0.3
+BuildRequires: eigen >= 1:2.0.12
 BuildRequires: glew-devel >= 1.5.0
-BuildRequires: numpy
 BuildRequires: openbabel-devel >= 2.2.2
-BuildRequires: qt4-build >= 4.5.1
-BuildRequires: sip-devel
+BuildRequires: pkgconfig
+BuildRequires: python-numpy-devel
+BuildRequires: python-sip-devel
+BuildRequires: qt4-build >= 4.8.2-5
+BuildRequires: qt4-linguist
+BuildRequires: qt4-qmake >= 4.8.2-5
+BuildRequires: sip
 Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,7 +36,6 @@ computational chemistry, molecular modeling, bioinformatics, materials
 science, and related areas, which offers flexible rendering and a
 powerful plugin architecture.
 
-
 %package libs
 Summary:       Shared libraries for Avogadro
 Group:         Libraries
@@ -40,7 +48,7 @@ Avogadro.
 Summary:       Development files for Avogadro
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
-Requires:
+Requires:      glew-devel
 
 %description devel
 This package contains files to develop applications using Avogadros
@@ -48,58 +56,52 @@ libraries.
 
 %prep
 %setup -q
-%patch0 -p1 -b .sip410
-
+%patch0 -p0
+%patch1 -p1
+%patch2 -p1
 
 %build
 install -d build
 cd build
-%{cmake} \
+%cmake \
        -DENABLE_GLSL=ON \
        -DENABLE_PYTHON=ON \
        -DENABLE_UPDATE_CHECKER=OFF \
        -DCMAKE_BUILD_TYPE=Release \
-       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-       -DLIB_INSTALL_DIR=%{_libdir} \
        ..
-cd ..
-%{__make} -C %{_target_platform}
 
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
-
-# system menu entry
-desktop-file-install --vendor=""                 \
-  --dir=$RPM_BUILD_ROOT%{_desktopdir}  \
-  $RPM_BUILD_ROOT%{_desktopdir}/avogadro.desktop
+install -d $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features
 
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %post libs -p /sbin/ldconfig
-
 %postun libs -p /sbin/ldconfig
 
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %files
 %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)
This page took 0.04303 seconds and 4 git commands to generate.