]>
Commit | Line | Data |
---|---|---|
638a5511 AM |
1 | Summary: An advanced molecular editor for chemical purposes |
2 | Name: avogadro | |
47cd8f4e | 3 | Version: 1.0.3 |
7d5d1ada | 4 | Release: 4 |
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} | |
50c97514 | 50 | Requires: glew-devel |
638a5511 AM |
51 | |
52 | %description devel | |
53 | This package contains files to develop applications using Avogadros | |
54 | libraries. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
0bfdc0c5 | 58 | %patch0 -p0 |
47cd8f4e | 59 | %patch1 -p1 |
638a5511 | 60 | |
638a5511 AM |
61 | %build |
62 | install -d build | |
63 | cd build | |
4d9dc8e3 | 64 | %cmake \ |
638a5511 AM |
65 | -DENABLE_GLSL=ON \ |
66 | -DENABLE_PYTHON=ON \ | |
67 | -DENABLE_UPDATE_CHECKER=OFF \ | |
68 | -DCMAKE_BUILD_TYPE=Release \ | |
638a5511 | 69 | .. |
5654b505 | 70 | |
71 | %{__make} | |
638a5511 | 72 | |
638a5511 AM |
73 | %install |
74 | rm -rf $RPM_BUILD_ROOT | |
47cd8f4e JR |
75 | install -d $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features |
76 | ||
5654b505 | 77 | %{__make} -C build install \ |
78 | DESTDIR=$RPM_BUILD_ROOT | |
638a5511 | 79 | |
638a5511 | 80 | %post libs -p /sbin/ldconfig |
638a5511 AM |
81 | %postun libs -p /sbin/ldconfig |
82 | ||
638a5511 AM |
83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
638a5511 AM |
86 | %files |
87 | %defattr(644,root,root,755) | |
88 | %doc AUTHORS ChangeLog COPYING | |
89 | %attr(755,root,root) %{_bindir}/%{name} | |
47cd8f4e | 90 | %attr(755,root,root) %{_bindir}/avopkg |
638a5511 AM |
91 | %{_datadir}/%{name} |
92 | %{_pixmapsdir}/%{name}-icon.png | |
93 | %{_desktopdir}/%{name}.desktop | |
47cd8f4e JR |
94 | %{_mandir}/man1/avogadro.1* |
95 | %{_mandir}/man1/avopkg.1* | |
638a5511 | 96 | |
638a5511 AM |
97 | %files devel |
98 | %defattr(644,root,root,755) | |
99 | %{_datadir}/lib%{name} | |
100 | %{_includedir}/%{name} | |
101 | %{_libdir}/*.so | |
47cd8f4e | 102 | %{_datadir}/qt4/mkspecs/features/avogadro.prf |
638a5511 | 103 | |
638a5511 AM |
104 | %files libs |
105 | %defattr(644,root,root,755) | |
47cd8f4e | 106 | %{py_sitedir}/Avogadro.so |
638a5511 AM |
107 | %{_libdir}/%{name} |
108 | %attr(755,root,root) %{_libdir}/*.so.* |