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