]>
Commit | Line | Data |
---|---|---|
638a5511 AM |
1 | Summary: An advanced molecular editor for chemical purposes |
2 | Name: avogadro | |
47cd8f4e JR |
3 | Version: 1.0.3 |
4 | Release: 1 | |
638a5511 AM |
5 | License: GPL v2 |
6 | Group: Applications/Editors | |
638a5511 | 7 | Source0: http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2 |
47cd8f4e JR |
8 | # Source0-md5: 92c2702c1980f70fb6d87a1a58147911 |
9 | Patch0: %{name}-linguist.patch | |
10 | Patch1: %{name}-cmake.patch | |
4d9dc8e3 | 11 | URL: http://avogadro.openmolecules.net/ |
1abd04fb KK |
12 | BuildRequires: QtNetwork-devel |
13 | BuildRequires: QtOpenGL-devel | |
638a5511 | 14 | BuildRequires: boost-devel >= 1.35 |
aa7b58b0 | 15 | BuildRequires: boost-python-devel |
4d9dc8e3 | 16 | BuildRequires: cmake >= 2.8.0 |
638a5511 AM |
17 | BuildRequires: desktop-file-utils |
18 | BuildRequires: docbook-utils | |
4d9dc8e3 | 19 | BuildRequires: eigen >= 1:2.0.12 |
638a5511 | 20 | BuildRequires: glew-devel >= 1.5.0 |
638a5511 | 21 | BuildRequires: openbabel-devel >= 2.2.2 |
cc593d4e | 22 | BuildRequires: pkgconfig |
fdf58bb8 KK |
23 | BuildRequires: python-numpy-devel |
24 | BuildRequires: python-sip-devel | |
47cd8f4e | 25 | BuildRequires: qt4-build >= 4.8.2-5 |
cc593d4e | 26 | BuildRequires: qt4-linguist |
47cd8f4e | 27 | BuildRequires: qt4-qmake >= 4.8.2-5 |
4d9dc8e3 | 28 | BuildRequires: sip |
638a5511 AM |
29 | Requires: %{name}-libs = %{version}-%{release} |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | An advanced molecular editor designed for cross-platform use in | |
34 | computational chemistry, molecular modeling, bioinformatics, materials | |
35 | science, and related areas, which offers flexible rendering and a | |
36 | powerful plugin architecture. | |
37 | ||
638a5511 AM |
38 | %package libs |
39 | Summary: Shared libraries for Avogadro | |
40 | Group: Libraries | |
41 | ||
42 | %description libs | |
43 | This package contains the shared libraries for the molecular editor | |
44 | Avogadro. | |
45 | ||
46 | %package devel | |
47 | Summary: Development files for Avogadro | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-libs = %{version}-%{release} | |
638a5511 AM |
50 | |
51 | %description devel | |
52 | This package contains files to develop applications using Avogadros | |
53 | libraries. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
0bfdc0c5 | 57 | %patch0 -p0 |
47cd8f4e | 58 | %patch1 -p1 |
638a5511 | 59 | |
638a5511 AM |
60 | %build |
61 | install -d build | |
62 | cd build | |
4d9dc8e3 | 63 | %cmake \ |
638a5511 AM |
64 | -DENABLE_GLSL=ON \ |
65 | -DENABLE_PYTHON=ON \ | |
66 | -DENABLE_UPDATE_CHECKER=OFF \ | |
67 | -DCMAKE_BUILD_TYPE=Release \ | |
638a5511 | 68 | .. |
5654b505 | 69 | |
70 | %{__make} | |
638a5511 | 71 | |
638a5511 AM |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
47cd8f4e JR |
74 | install -d $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features |
75 | ||
5654b505 | 76 | %{__make} -C build install \ |
77 | DESTDIR=$RPM_BUILD_ROOT | |
638a5511 | 78 | |
47cd8f4e JR |
79 | %{__mv} $RPM_BUILD_ROOT{%{_prefix},%{_datadir}/qt4/mkspecs}/features/avogadro.prf |
80 | ||
638a5511 | 81 | %post libs -p /sbin/ldconfig |
638a5511 AM |
82 | %postun libs -p /sbin/ldconfig |
83 | ||
638a5511 AM |
84 | %clean |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
638a5511 AM |
87 | %files |
88 | %defattr(644,root,root,755) | |
89 | %doc AUTHORS ChangeLog COPYING | |
90 | %attr(755,root,root) %{_bindir}/%{name} | |
47cd8f4e | 91 | %attr(755,root,root) %{_bindir}/avopkg |
638a5511 AM |
92 | %{_datadir}/%{name} |
93 | %{_pixmapsdir}/%{name}-icon.png | |
94 | %{_desktopdir}/%{name}.desktop | |
47cd8f4e JR |
95 | %{_mandir}/man1/avogadro.1* |
96 | %{_mandir}/man1/avopkg.1* | |
638a5511 | 97 | |
638a5511 AM |
98 | %files devel |
99 | %defattr(644,root,root,755) | |
100 | %{_datadir}/lib%{name} | |
101 | %{_includedir}/%{name} | |
102 | %{_libdir}/*.so | |
47cd8f4e | 103 | %{_datadir}/qt4/mkspecs/features/avogadro.prf |
638a5511 | 104 | |
638a5511 AM |
105 | %files libs |
106 | %defattr(644,root,root,755) | |
47cd8f4e | 107 | %{py_sitedir}/Avogadro.so |
638a5511 AM |
108 | %{_libdir}/%{name} |
109 | %attr(755,root,root) %{_libdir}/*.so.* |