/[packages]/cauldron/avogadro/current/SPECS/avogadro.spec
ViewVC logotype

Annotation of /cauldron/avogadro/current/SPECS/avogadro.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 274234 - (hide annotations) (download)
Wed Jul 25 13:15:25 2012 UTC (11 years, 8 months ago) by fwang
File size: 2728 byte(s)
rebuild for new glew
1 ahmad 33275
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 mikala 105178 Version: 1.0.3
9 fwang 274234 Release: %mkrel 10
10 ahmad 33275 License: GPLv2
11     URL: http://avogadro.openmolecules.net/
12 mikala 105178 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
13     Patch0: avogadro-1.0.3-mga-fix_qmake_mkspecs_installation.patch
14 mikala 175748 Patch1: avogadro-1.0.3-fix-moc.patch
15 ahmad 33275 BuildRequires: cmake >= 2.6.0
16     BuildRequires: qt4-devel
17     BuildRequires: qt4-linguist
18     BuildRequires: eigen2 >= 2.0.9
19     BuildRequires: openbabel-devel >= 2.2.3
20     BuildRequires: boost-devel >= 1.35
21     BuildRequires: glew-devel >= 1.5.0
22 ahmad 123133 BuildRequires: docbook-utils-pdf
23 ahmad 33275 BuildRequires: python-sip
24     BuildRequires: python-numpy-devel
25 ahmad 60115 BuildRequires: python-devel
26     Requires: openbabel >= 2.2.3
27 fwang 173507
28 ahmad 33275 %description
29     An advanced molecular editor designed for cross-platform use
30     in computational chemistry,molecular modeling, bioinformatics,
31     materials science,and related areas, which offers flexible
32     rendering and a powerful plugin architecture.
33    
34 mikala 60545 %files
35 ahmad 33275 %doc AUTHORS ChangeLog COPYING
36     %{_bindir}/%name
37     %{_bindir}/avopkg
38     %{_datadir}/%name
39     %{_datadir}/pixmaps/%name-icon.png
40     %{_datadir}/applications/%name.desktop
41     %{_mandir}/man1/%name.1*
42     %{_mandir}/man1/avopkg.1*
43     %{_datadir}/libavogadro/
44     %dir %{_libdir}/%name/
45     %dir %{_libdir}/%name/1_0/
46     %{_libdir}/%name/1_0/colors
47     %{_libdir}/%name/1_0/extensions
48     %{_libdir}/%name/1_0/engines
49     %{_libdir}/%name/1_0/tools
50    
51    
52     #--------------------------------------------------------------------
53     %package -n %libname
54     Summary: Shared libraries for Avogadro
55     Group: System/Libraries
56    
57     %description -n %libname
58     Libraries for Avogadro molecular editor.
59    
60 mikala 60545 %files -n %libname
61 ahmad 33275 %{_libdir}/libavogadro.so.%{major}*
62    
63    
64     #--------------------------------------------------------------------
65     %package devel
66     Summary: Development files for Avogadro
67     Group: Development/C++
68     Requires: %libname = %{version}-%{release}
69    
70     %description devel
71     Development Avogadro files.
72    
73     %files devel
74     %{_includedir}/%name
75     %{_libdir}/libavogadro.so
76 mikala 105213 %{python_sitearch}/Avogadro.so
77 ahmad 33275 %{_libdir}/%name/*.cmake
78     %{_libdir}/%name/1_0/*.cmake
79     %{_libdir}/%name/1_0/cmake/
80     %dir %{qt4dir}/mkspecs/features/
81     %{qt4dir}/mkspecs/features/%name.prf
82    
83    
84     #--------------------------------------------------------------------
85     %prep
86     %setup -q
87 mikala 105178 %apply_patches
88 ahmad 60848 # (Fedora) nuke unpatched copy, use working version included in cmake instead
89     rm -f cmake/modules/FindPythonLibs.cmake
90    
91 mikala 105178
92 ahmad 33275 %build
93     %{cmake_qt4}\
94     %{?ENABLE_TESTS} \
95     -DENABLE_GLSL:BOOL=ON \
96 ahmad 60848 -DENABLE_PYTHON:BOOL=ON \
97 mikala 105178 -DCMAKE_SKIP_RPATH:BOOL=ON
98 ahmad 33275
99     %make
100    
101     %install
102     %makeinstall_std -C build

  ViewVC Help
Powered by ViewVC 1.1.30