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

  ViewVC Help
Powered by ViewVC 1.1.30