/[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 863420 - (hide annotations) (download)
Wed Aug 12 07:08:24 2015 UTC (8 years, 8 months ago) by fwang
File size: 3189 byte(s)
force eigen2
1 ahmad 33275 %define major 1
2 akien 594357 %define minor 1
3 akien 594356 %define libname %mklibname %{name} %{major}
4 ahmad 33275
5     Name: avogadro
6     Summary: An advanced molecular editor for chemical purposes
7     Group: System/Libraries
8 akien 594357 Version: %{major}.%{minor}.1
9 neoclust 859639 Release: %mkrel 8
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 akien 594357 Patch0: avogadro-1.1.1-mga-fix_qmake_mkspecs_installation.patch
14 akien 594342 Patch1: avogadro-1.0.3-fix-moc.patch
15 lmenut 651421 #(lm) avogadro-devel requires eigen2-devel, patch from Fedora (mga#13729)
16 lmenut 651420 Patch2: avogadro-1.1.1-pkgconfig_eigen.patch
17 ahmad 33275 BuildRequires: cmake >= 2.6.0
18     BuildRequires: qt4-devel
19     BuildRequires: qt4-linguist
20 fwang 863420 BuildRequires: eigen2 >= 2.0.9
21 ahmad 33275 BuildRequires: openbabel-devel >= 2.2.3
22     BuildRequires: boost-devel >= 1.35
23     BuildRequires: glew-devel >= 1.5.0
24 ahmad 123133 BuildRequires: docbook-utils-pdf
25 fwang 863389 BuildRequires: doxygen
26 ahmad 33275 BuildRequires: python-sip
27     BuildRequires: python-numpy-devel
28 ahmad 60115 BuildRequires: python-devel
29 akien 594357 Requires: openbabel >= 2.3.0
30 fwang 173507
31 ahmad 33275 %description
32     An advanced molecular editor designed for cross-platform use
33 akien 594342 in computational chemistry, molecular modeling, bioinformatics,
34     materials science and related areas, which offers flexible
35 ahmad 33275 rendering and a powerful plugin architecture.
36    
37 akien 594342 %files
38 ahmad 33275 %doc AUTHORS ChangeLog COPYING
39 akien 594356 %{_bindir}/%{name}
40 ahmad 33275 %{_bindir}/avopkg
41 akien 594356 %{_datadir}/%{name}
42     %{_datadir}/pixmaps/%{name}-icon.png
43     %{_datadir}/applications/%{name}.desktop
44     %{_mandir}/man1/%{name}.1*
45 ahmad 33275 %{_mandir}/man1/avopkg.1*
46     %{_datadir}/libavogadro/
47 akien 594356 %dir %{_libdir}/%{name}/
48     %dir %{_libdir}/%{name}/%{major}_%{minor}/
49     %{_libdir}/%{name}/%{major}_%{minor}/colors
50     %{_libdir}/%{name}/%{major}_%{minor}/extensions
51     %{_libdir}/%{name}/%{major}_%{minor}/engines
52     %{_libdir}/%{name}/%{major}_%{minor}/tools
53 ahmad 33275
54    
55     #--------------------------------------------------------------------
56 akien 594356 %package -n %{libname}
57 ahmad 33275 Summary: Shared libraries for Avogadro
58     Group: System/Libraries
59    
60 akien 594356 %description -n %{libname}
61 ahmad 33275 Libraries for Avogadro molecular editor.
62    
63 akien 594356 %files -n %{libname}
64 ahmad 33275 %{_libdir}/libavogadro.so.%{major}*
65 akien 594357 %{_libdir}/libavogadro_OpenQube.so.*
66 ahmad 33275
67    
68     #--------------------------------------------------------------------
69     %package devel
70     Summary: Development files for Avogadro
71     Group: Development/C++
72 akien 594356 Requires: %{libname} = %{version}-%{release}
73 ahmad 33275
74     %description devel
75     Development Avogadro files.
76    
77     %files devel
78 akien 594356 %{_includedir}/%{name}
79 ahmad 33275 %{_libdir}/libavogadro.so
80 akien 594357 %{_libdir}/libavogadro_OpenQube.so
81 mikala 105213 %{python_sitearch}/Avogadro.so
82 akien 594356 %{_libdir}/%{name}/*.cmake
83     %{_libdir}/%{name}/%{major}_%{minor}/*.cmake
84     %{_libdir}/%{name}/%{major}_%{minor}/cmake/
85 akien 594357 %{_libdir}/pkgconfig/%{name}.pc
86 ahmad 33275 %dir %{qt4dir}/mkspecs/features/
87 akien 594356 %{qt4dir}/mkspecs/features/%{name}.prf
88 ahmad 33275
89    
90     #--------------------------------------------------------------------
91     %prep
92     %setup -q
93 mikala 105178 %apply_patches
94 ahmad 60848 # (Fedora) nuke unpatched copy, use working version included in cmake instead
95     rm -f cmake/modules/FindPythonLibs.cmake
96    
97 mikala 105178
98 ahmad 33275 %build
99 akien 594356 %cmake_qt4 \
100 akien 594342 %{?ENABLE_TESTS} \
101     -DENABLE_GLSL:BOOL=ON \
102     -DENABLE_PYTHON:BOOL=ON \
103     -DCMAKE_SKIP_RPATH:BOOL=ON
104 ahmad 33275
105     %make
106    
107     %install
108     %makeinstall_std -C build

  ViewVC Help
Powered by ViewVC 1.1.30