5 |
Name: avogadro |
Name: avogadro |
6 |
Summary: An advanced molecular editor for chemical purposes |
Summary: An advanced molecular editor for chemical purposes |
7 |
Group: System/Libraries |
Group: System/Libraries |
8 |
Version: 1.0.1 |
Version: 1.0.3 |
9 |
Release: %mkrel 6 |
Release: %mkrel 8 |
10 |
License: GPLv2 |
License: GPLv2 |
11 |
URL: http://avogadro.openmolecules.net/ |
URL: http://avogadro.openmolecules.net/ |
12 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 |
13 |
Patch0: avogadro-1.0.1-fix-build-with-newer-sip.patch |
Patch0: avogadro-1.0.3-mga-fix_qmake_mkspecs_installation.patch |
14 |
# (ahmad) fix crash with current SIP and Python 2.7 |
Patch1: avogadro-1.0.3-fix-moc.patch |
|
# https://bugzilla.redhat.com/show_bug.cgi?id=642248 |
|
|
Patch3: avogadro-1.0.1-pycapsule.patch |
|
15 |
BuildRequires: cmake >= 2.6.0 |
BuildRequires: cmake >= 2.6.0 |
16 |
BuildRequires: qt4-devel |
BuildRequires: qt4-devel |
17 |
BuildRequires: qt4-linguist |
BuildRequires: qt4-linguist |
19 |
BuildRequires: openbabel-devel >= 2.2.3 |
BuildRequires: openbabel-devel >= 2.2.3 |
20 |
BuildRequires: boost-devel >= 1.35 |
BuildRequires: boost-devel >= 1.35 |
21 |
BuildRequires: glew-devel >= 1.5.0 |
BuildRequires: glew-devel >= 1.5.0 |
22 |
BuildRequires: docbook-utils |
BuildRequires: docbook-utils-pdf |
23 |
BuildRequires: python-sip |
BuildRequires: python-sip |
24 |
BuildRequires: python-numpy-devel |
BuildRequires: python-numpy-devel |
25 |
BuildRequires: python-devel |
BuildRequires: python-devel |
26 |
Requires: openbabel >= 2.2.3 |
Requires: openbabel >= 2.2.3 |
27 |
|
|
28 |
%description |
%description |
29 |
An advanced molecular editor designed for cross-platform use |
An advanced molecular editor designed for cross-platform use |
30 |
in computational chemistry,molecular modeling, bioinformatics, |
in computational chemistry,molecular modeling, bioinformatics, |
32 |
rendering and a powerful plugin architecture. |
rendering and a powerful plugin architecture. |
33 |
|
|
34 |
%files |
%files |
|
%defattr(-,root,root,-) |
|
35 |
%doc AUTHORS ChangeLog COPYING |
%doc AUTHORS ChangeLog COPYING |
36 |
%{_bindir}/%name |
%{_bindir}/%name |
37 |
%{_bindir}/avopkg |
%{_bindir}/avopkg |
40 |
%{_datadir}/applications/%name.desktop |
%{_datadir}/applications/%name.desktop |
41 |
%{_mandir}/man1/%name.1* |
%{_mandir}/man1/%name.1* |
42 |
%{_mandir}/man1/avopkg.1* |
%{_mandir}/man1/avopkg.1* |
|
%{python_sitelib}/Avogadro.so |
|
43 |
%{_datadir}/libavogadro/ |
%{_datadir}/libavogadro/ |
44 |
%dir %{_libdir}/%name/ |
%dir %{_libdir}/%name/ |
45 |
%dir %{_libdir}/%name/1_0/ |
%dir %{_libdir}/%name/1_0/ |
58 |
Libraries for Avogadro molecular editor. |
Libraries for Avogadro molecular editor. |
59 |
|
|
60 |
%files -n %libname |
%files -n %libname |
|
%defattr(-,root,root,-) |
|
61 |
%{_libdir}/libavogadro.so.%{major}* |
%{_libdir}/libavogadro.so.%{major}* |
62 |
|
|
63 |
|
|
71 |
Development Avogadro files. |
Development Avogadro files. |
72 |
|
|
73 |
%files devel |
%files devel |
|
%defattr(-,root,root,-) |
|
74 |
%{_includedir}/%name |
%{_includedir}/%name |
75 |
%{_libdir}/libavogadro.so |
%{_libdir}/libavogadro.so |
76 |
|
%{python_sitearch}/Avogadro.so |
77 |
%{_libdir}/%name/*.cmake |
%{_libdir}/%name/*.cmake |
78 |
%{_libdir}/%name/1_0/*.cmake |
%{_libdir}/%name/1_0/*.cmake |
79 |
%{_libdir}/%name/1_0/cmake/ |
%{_libdir}/%name/1_0/cmake/ |
84 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
85 |
%prep |
%prep |
86 |
%setup -q |
%setup -q |
87 |
%patch0 -p0 |
%apply_patches |
|
%patch3 -p1 -b .sip |
|
|
|
|
88 |
# (Fedora) nuke unpatched copy, use working version included in cmake instead |
# (Fedora) nuke unpatched copy, use working version included in cmake instead |
89 |
rm -f cmake/modules/FindPythonLibs.cmake |
rm -f cmake/modules/FindPythonLibs.cmake |
90 |
|
|
91 |
|
|
92 |
%build |
%build |
93 |
%{cmake_qt4}\ |
%{cmake_qt4}\ |
94 |
%{?ENABLE_TESTS} \ |
%{?ENABLE_TESTS} \ |
95 |
-DENABLE_GLSL:BOOL=ON \ |
-DENABLE_GLSL:BOOL=ON \ |
96 |
-DENABLE_PYTHON:BOOL=ON \ |
-DENABLE_PYTHON:BOOL=ON \ |
97 |
-DCMAKE_SKIP_RPATH:BOOL=ON |
-DCMAKE_SKIP_RPATH:BOOL=ON |
98 |
|
|
99 |
%make |
%make |
100 |
|
|
101 |
%install |
%install |
|
rm -rf %buidroot |
|
102 |
%makeinstall_std -C build |
%makeinstall_std -C build |
|
|
|
|
|
|
|
%clean |
|
|
rm -rf %buildroot |
|