4 Summary: An advanced molecular editor for chemical purposes
9 Group: Applications/Editors
10 Source0: http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2
11 # fix build with sip 4.10
12 URL: http://avogadro.openmolecules.net/
13 Patch0: %{name}-sip.patch
14 BuildRequires: boost-devel >= 1.35
15 BuildRequires: cmake >= 2.8.0
16 BuildRequires: desktop-file-utils
17 BuildRequires: docbook-utils
18 BuildRequires: eigen >= 1:2.0.12
19 BuildRequires: glew-devel >= 1.5.0
21 BuildRequires: openbabel-devel >= 2.2.2
22 BuildRequires: qt4-build >= %{qtver}
23 BuildRequires: qt4-qmake >= %{qtver}
25 Requires: %{name}-libs = %{version}-%{release}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 An advanced molecular editor designed for cross-platform use in
30 computational chemistry, molecular modeling, bioinformatics, materials
31 science, and related areas, which offers flexible rendering and a
32 powerful plugin architecture.
35 Summary: Shared libraries for Avogadro
39 This package contains the shared libraries for the molecular editor
43 Summary: Development files for Avogadro
44 Group: Development/Libraries
45 Requires: %{name}-libs = %{version}-%{release}
48 This package contains files to develop applications using Avogadros
53 %patch0 -p1 -b .sip410
61 -DENABLE_UPDATE_CHECKER=OFF \
62 -DCMAKE_BUILD_TYPE=Release \
63 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
64 -DLIB_INSTALL_DIR=%{_libdir} \
67 %{__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
78 %post libs -p /sbin/ldconfig
79 %postun libs -p /sbin/ldconfig
82 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
86 %doc AUTHORS ChangeLog COPYING
87 %attr(755,root,root) %{_bindir}/%{name}
89 %{_pixmapsdir}/%{name}-icon.png
90 %{_desktopdir}/%{name}.desktop
93 %defattr(644,root,root,755)
94 %{_datadir}/lib%{name}
95 %{_includedir}/%{name}
99 %defattr(644,root,root,755)
100 %{py_sitedir}/Avogadro.so
102 %attr(755,root,root) %{_libdir}/*.so.*