/[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 841993 - (hide annotations) (download)
Wed Jun 24 12:28:39 2015 UTC (8 years, 9 months ago) by akien
File size: 3166 byte(s)
Rebuild for GLEW 1.12

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 akien 841993 Release: %mkrel 7
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     BuildRequires: eigen2 >= 2.0.9
21     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 ahmad 33275 BuildRequires: python-sip
26     BuildRequires: python-numpy-devel
27 ahmad 60115 BuildRequires: python-devel
28 akien 594357 Requires: openbabel >= 2.3.0
29 fwang 173507
30 ahmad 33275 %description
31     An advanced molecular editor designed for cross-platform use
32 akien 594342 in computational chemistry, molecular modeling, bioinformatics,
33     materials science and related areas, which offers flexible
34 ahmad 33275 rendering and a powerful plugin architecture.
35    
36 akien 594342 %files
37 ahmad 33275 %doc AUTHORS ChangeLog COPYING
38 akien 594356 %{_bindir}/%{name}
39 ahmad 33275 %{_bindir}/avopkg
40 akien 594356 %{_datadir}/%{name}
41     %{_datadir}/pixmaps/%{name}-icon.png
42     %{_datadir}/applications/%{name}.desktop
43     %{_mandir}/man1/%{name}.1*
44 ahmad 33275 %{_mandir}/man1/avopkg.1*
45     %{_datadir}/libavogadro/
46 akien 594356 %dir %{_libdir}/%{name}/
47     %dir %{_libdir}/%{name}/%{major}_%{minor}/
48     %{_libdir}/%{name}/%{major}_%{minor}/colors
49     %{_libdir}/%{name}/%{major}_%{minor}/extensions
50     %{_libdir}/%{name}/%{major}_%{minor}/engines
51     %{_libdir}/%{name}/%{major}_%{minor}/tools
52 ahmad 33275
53    
54     #--------------------------------------------------------------------
55 akien 594356 %package -n %{libname}
56 ahmad 33275 Summary: Shared libraries for Avogadro
57     Group: System/Libraries
58    
59 akien 594356 %description -n %{libname}
60 ahmad 33275 Libraries for Avogadro molecular editor.
61    
62 akien 594356 %files -n %{libname}
63 ahmad 33275 %{_libdir}/libavogadro.so.%{major}*
64 akien 594357 %{_libdir}/libavogadro_OpenQube.so.*
65 ahmad 33275
66    
67     #--------------------------------------------------------------------
68     %package devel
69     Summary: Development files for Avogadro
70     Group: Development/C++
71 akien 594356 Requires: %{libname} = %{version}-%{release}
72 ahmad 33275
73     %description devel
74     Development Avogadro files.
75    
76     %files devel
77 akien 594356 %{_includedir}/%{name}
78 ahmad 33275 %{_libdir}/libavogadro.so
79 akien 594357 %{_libdir}/libavogadro_OpenQube.so
80 mikala 105213 %{python_sitearch}/Avogadro.so
81 akien 594356 %{_libdir}/%{name}/*.cmake
82     %{_libdir}/%{name}/%{major}_%{minor}/*.cmake
83     %{_libdir}/%{name}/%{major}_%{minor}/cmake/
84 akien 594357 %{_libdir}/pkgconfig/%{name}.pc
85 ahmad 33275 %dir %{qt4dir}/mkspecs/features/
86 akien 594356 %{qt4dir}/mkspecs/features/%{name}.prf
87 ahmad 33275
88    
89     #--------------------------------------------------------------------
90     %prep
91     %setup -q
92 mikala 105178 %apply_patches
93 ahmad 60848 # (Fedora) nuke unpatched copy, use working version included in cmake instead
94     rm -f cmake/modules/FindPythonLibs.cmake
95    
96 mikala 105178
97 ahmad 33275 %build
98 akien 594356 %cmake_qt4 \
99 akien 594342 %{?ENABLE_TESTS} \
100     -DENABLE_GLSL:BOOL=ON \
101     -DENABLE_PYTHON:BOOL=ON \
102     -DCMAKE_SKIP_RPATH:BOOL=ON
103 ahmad 33275
104     %make
105    
106     %install
107     %makeinstall_std -C build

  ViewVC Help
Powered by ViewVC 1.1.30