1 |
|
2 |
%define major 1 |
3 |
%define libname %mklibname %name %major |
4 |
|
5 |
Name: avogadro |
6 |
Summary: An advanced molecular editor for chemical purposes |
7 |
Group: System/Libraries |
8 |
Version: 1.0.1 |
9 |
Release: %mkrel 3 |
10 |
License: GPLv2 |
11 |
URL: http://avogadro.openmolecules.net/ |
12 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
13 |
Patch0: avogadro-1.0.1-fix-build-with-newer-sip.patch |
14 |
Patch1: avogadro-1.0.1-py27.patch |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
BuildRequires: cmake >= 2.6.0 |
17 |
BuildRequires: qt4-devel |
18 |
BuildRequires: qt4-linguist |
19 |
BuildRequires: eigen2 >= 2.0.9 |
20 |
BuildRequires: openbabel-devel >= 2.2.3 |
21 |
BuildRequires: boost-devel >= 1.35 |
22 |
BuildRequires: glew-devel >= 1.5.0 |
23 |
BuildRequires: docbook-utils |
24 |
BuildRequires: python-sip |
25 |
BuildRequires: python-numpy-devel |
26 |
BuildRequires: python-devel |
27 |
Requires: %libname = %{version}-%{release} |
28 |
|
29 |
%description |
30 |
An advanced molecular editor designed for cross-platform use |
31 |
in computational chemistry,molecular modeling, bioinformatics, |
32 |
materials science,and related areas, which offers flexible |
33 |
rendering and a powerful plugin architecture. |
34 |
|
35 |
%files |
36 |
%defattr(-,root,root,-) |
37 |
%doc AUTHORS ChangeLog COPYING |
38 |
%{_bindir}/%name |
39 |
%{_bindir}/avopkg |
40 |
%{_datadir}/%name |
41 |
%{_datadir}/pixmaps/%name-icon.png |
42 |
%{_datadir}/applications/%name.desktop |
43 |
%{_mandir}/man1/%name.1* |
44 |
%{_mandir}/man1/avopkg.1* |
45 |
%{python_sitelib}/Avogadro.so |
46 |
%{_datadir}/libavogadro/ |
47 |
%dir %{_libdir}/%name/ |
48 |
%dir %{_libdir}/%name/1_0/ |
49 |
%{_libdir}/%name/1_0/colors |
50 |
%{_libdir}/%name/1_0/extensions |
51 |
%{_libdir}/%name/1_0/engines |
52 |
%{_libdir}/%name/1_0/tools |
53 |
|
54 |
|
55 |
#-------------------------------------------------------------------- |
56 |
%package -n %libname |
57 |
Summary: Shared libraries for Avogadro |
58 |
Group: System/Libraries |
59 |
|
60 |
%description -n %libname |
61 |
Libraries for Avogadro molecular editor. |
62 |
|
63 |
%files -n %libname |
64 |
%defattr(-,root,root,-) |
65 |
%{_libdir}/libavogadro.so.%{major}* |
66 |
|
67 |
|
68 |
#-------------------------------------------------------------------- |
69 |
%package devel |
70 |
Summary: Development files for Avogadro |
71 |
Group: Development/C++ |
72 |
Requires: %libname = %{version}-%{release} |
73 |
|
74 |
%description devel |
75 |
Development Avogadro files. |
76 |
|
77 |
%files devel |
78 |
%defattr(-,root,root,-) |
79 |
%{_includedir}/%name |
80 |
%{_libdir}/libavogadro.so |
81 |
%{_libdir}/%name/*.cmake |
82 |
%{_libdir}/%name/1_0/*.cmake |
83 |
%{_libdir}/%name/1_0/cmake/ |
84 |
%dir %{qt4dir}/mkspecs/features/ |
85 |
%{qt4dir}/mkspecs/features/%name.prf |
86 |
|
87 |
|
88 |
#-------------------------------------------------------------------- |
89 |
%prep |
90 |
%setup -q |
91 |
%patch0 -p0 |
92 |
%patch1 -p0 |
93 |
|
94 |
%build |
95 |
%{cmake_qt4}\ |
96 |
%{?ENABLE_TESTS} \ |
97 |
-DENABLE_GLSL:BOOL=ON \ |
98 |
-DENABLE_PYTHON:BOOL=ON |
99 |
|
100 |
%make |
101 |
|
102 |
%install |
103 |
rm -rf %buidroot |
104 |
%makeinstall_std -C build |
105 |
|
106 |
|
107 |
%clean |
108 |
rm -rf %buildroot |
109 |
|
110 |
|