1 Summary: An advanced molecular editor for chemical purposes
6 Group: Applications/Editors
7 Source0: http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2
8 # Source0-md5: 92c2702c1980f70fb6d87a1a58147911
9 Patch0: %{name}-linguist.patch
10 Patch1: %{name}-cmake.patch
11 Patch2: %{name}-moc-boost.patch
12 Patch3: link-X11.patch
13 URL: http://avogadro.openmolecules.net/
14 BuildRequires: QtNetwork-devel
15 BuildRequires: QtOpenGL-devel
16 BuildRequires: boost-devel >= 1.35
17 BuildRequires: boost-python-devel
18 BuildRequires: cmake >= 2.8.0
19 BuildRequires: desktop-file-utils
20 BuildRequires: docbook-utils
21 BuildRequires: eigen >= 1:2.0.12
22 BuildRequires: glew-devel >= 1.5.0
23 BuildRequires: openbabel-devel >= 2.2.2
24 BuildRequires: pkgconfig
25 BuildRequires: python-numpy-devel
26 BuildRequires: python-sip-devel
27 BuildRequires: qt4-build >= 4.8.2-5
28 BuildRequires: qt4-linguist
29 BuildRequires: qt4-qmake >= 4.8.2-5
31 Requires: %{name}-libs = %{version}-%{release}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 An advanced molecular editor designed for cross-platform use in
36 computational chemistry, molecular modeling, bioinformatics, materials
37 science, and related areas, which offers flexible rendering and a
38 powerful plugin architecture.
41 Summary: Shared libraries for Avogadro
45 This package contains the shared libraries for the molecular editor
49 Summary: Development files for Avogadro
50 Group: Development/Libraries
51 Requires: %{name}-libs = %{version}-%{release}
55 This package contains files to develop applications using Avogadros
71 -DENABLE_UPDATE_CHECKER=OFF \
72 -DCMAKE_BUILD_TYPE=Release \
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features
81 %{__make} -C build install \
82 DESTDIR=$RPM_BUILD_ROOT
84 %post libs -p /sbin/ldconfig
85 %postun libs -p /sbin/ldconfig
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog COPYING
93 %attr(755,root,root) %{_bindir}/%{name}
94 %attr(755,root,root) %{_bindir}/avopkg
96 %{_pixmapsdir}/%{name}-icon.png
97 %{_desktopdir}/%{name}.desktop
98 %{_mandir}/man1/avogadro.1*
99 %{_mandir}/man1/avopkg.1*
102 %defattr(644,root,root,755)
103 %{_datadir}/lib%{name}
104 %{_includedir}/%{name}
106 %{_datadir}/qt4/mkspecs/features/avogadro.prf
109 %defattr(644,root,root,755)
110 %{py_sitedir}/Avogadro.so
112 %attr(755,root,root) %{_libdir}/*.so.*