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