|
|
|
1 |
%define major 1 |
%define major 1 |
2 |
%define libname %mklibname %name %major |
%define libname %mklibname %name %major |
3 |
|
|
9 |
License: GPLv2 |
License: GPLv2 |
10 |
URL: http://avogadro.openmolecules.net/ |
URL: http://avogadro.openmolecules.net/ |
11 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 |
12 |
Patch0: avogadro-1.0.3-mga-fix_qmake_mkspecs_installation.patch |
Patch0: avogadro-1.0.3-mga-fix_qmake_mkspecs_installation.patch |
13 |
Patch1: avogadro-1.0.3-fix-moc.patch |
Patch1: avogadro-1.0.3-fix-moc.patch |
14 |
BuildRequires: cmake >= 2.6.0 |
BuildRequires: cmake >= 2.6.0 |
15 |
BuildRequires: qt4-devel |
BuildRequires: qt4-devel |
16 |
BuildRequires: qt4-linguist |
BuildRequires: qt4-linguist |
26 |
|
|
27 |
%description |
%description |
28 |
An advanced molecular editor designed for cross-platform use |
An advanced molecular editor designed for cross-platform use |
29 |
in computational chemistry,molecular modeling, bioinformatics, |
in computational chemistry, molecular modeling, bioinformatics, |
30 |
materials science,and related areas, which offers flexible |
materials science and related areas, which offers flexible |
31 |
rendering and a powerful plugin architecture. |
rendering and a powerful plugin architecture. |
32 |
|
|
33 |
%files |
%files |
34 |
%doc AUTHORS ChangeLog COPYING |
%doc AUTHORS ChangeLog COPYING |
35 |
%{_bindir}/%name |
%{_bindir}/%name |
36 |
%{_bindir}/avopkg |
%{_bindir}/avopkg |
56 |
%description -n %libname |
%description -n %libname |
57 |
Libraries for Avogadro molecular editor. |
Libraries for Avogadro molecular editor. |
58 |
|
|
59 |
%files -n %libname |
%files -n %libname |
60 |
%{_libdir}/libavogadro.so.%{major}* |
%{_libdir}/libavogadro.so.%{major}* |
61 |
|
|
62 |
|
|
64 |
%package devel |
%package devel |
65 |
Summary: Development files for Avogadro |
Summary: Development files for Avogadro |
66 |
Group: Development/C++ |
Group: Development/C++ |
67 |
Requires: %libname = %{version}-%{release} |
Requires: %libname = %{version}-%{release} |
68 |
|
|
69 |
%description devel |
%description devel |
70 |
Development Avogadro files. |
Development Avogadro files. |
90 |
|
|
91 |
%build |
%build |
92 |
%{cmake_qt4}\ |
%{cmake_qt4}\ |
93 |
%{?ENABLE_TESTS} \ |
%{?ENABLE_TESTS} \ |
94 |
-DENABLE_GLSL:BOOL=ON \ |
-DENABLE_GLSL:BOOL=ON \ |
95 |
-DENABLE_PYTHON:BOOL=ON \ |
-DENABLE_PYTHON:BOOL=ON \ |
96 |
-DCMAKE_SKIP_RPATH:BOOL=ON |
-DCMAKE_SKIP_RPATH:BOOL=ON |
97 |
|
|
98 |
%make |
%make |
99 |
|
|