1 Summary: An advanced molecular editor for chemical purposes
6 Group: Applications/Editors
7 URL: http://avogadro.openmolecules.net/
8 Source0: http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2
9 # fix build with sip 4.10
10 Patch0: %{name}-sip.patch
11 BuildRequires: boost-devel >= 1.35
12 BuildRequires: cmake >= 2.6.0
13 BuildRequires: desktop-file-utils
14 BuildRequires: docbook-utils
15 BuildRequires: eigen2-devel >= 2.0.3
16 BuildRequires: glew-devel >= 1.5.0
18 BuildRequires: openbabel-devel >= 2.2.2
19 BuildRequires: qt4-build >= 4.5.1
20 BuildRequires: sip-devel
21 Requires: %{name}-libs = %{version}-%{release}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 An advanced molecular editor designed for cross-platform use in
26 computational chemistry, molecular modeling, bioinformatics, materials
27 science, and related areas, which offers flexible rendering and a
28 powerful plugin architecture.
32 Summary: Shared libraries for Avogadro
36 This package contains the shared libraries for the molecular editor
40 Summary: Development files for Avogadro
41 Group: Development/Libraries
42 Requires: %{name}-libs = %{version}-%{release}
46 This package contains files to develop applications using Avogadros
51 %patch0 -p1 -b .sip410
60 -DENABLE_UPDATE_CHECKER=OFF \
61 -DCMAKE_BUILD_TYPE=Release \
62 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
63 -DLIB_INSTALL_DIR=%{_libdir} \
66 %{__make} -C %{_target_platform}
70 rm -rf $RPM_BUILD_ROOT
71 %{__make} install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
74 desktop-file-install --vendor="" \
75 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
76 $RPM_BUILD_ROOT%{_desktopdir}/avogadro.desktop
79 %post libs -p /sbin/ldconfig
81 %postun libs -p /sbin/ldconfig
85 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog COPYING
91 %attr(755,root,root) %{_bindir}/%{name}
93 %{_pixmapsdir}/%{name}-icon.png
94 %{_desktopdir}/%{name}.desktop
98 %defattr(644,root,root,755)
99 %{_datadir}/lib%{name}
100 %{_includedir}/%{name}
105 %defattr(644,root,root,755)
106 %{py_sitedir}/Avogadro.so
108 %attr(755,root,root) %{_libdir}/*.so.*