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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 859639 - (show annotations) (download)
Fri Jul 31 08:11:40 2015 UTC (5 years, 1 month ago) by neoclust
File size: 3166 byte(s)
Rebuild against new boost python
1 %define major 1
2 %define minor 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 Version: %{major}.%{minor}.1
9 Release: %mkrel 8
10 License: GPLv2
11 URL: http://avogadro.openmolecules.net/
12 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
13 Patch0: avogadro-1.1.1-mga-fix_qmake_mkspecs_installation.patch
14 Patch1: avogadro-1.0.3-fix-moc.patch
15 #(lm) avogadro-devel requires eigen2-devel, patch from Fedora (mga#13729)
16 Patch2: avogadro-1.1.1-pkgconfig_eigen.patch
17 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 BuildRequires: docbook-utils-pdf
25 BuildRequires: python-sip
26 BuildRequires: python-numpy-devel
27 BuildRequires: python-devel
28 Requires: openbabel >= 2.3.0
29
30 %description
31 An advanced molecular editor designed for cross-platform use
32 in computational chemistry, molecular modeling, bioinformatics,
33 materials science and related areas, which offers flexible
34 rendering and a powerful plugin architecture.
35
36 %files
37 %doc AUTHORS ChangeLog COPYING
38 %{_bindir}/%{name}
39 %{_bindir}/avopkg
40 %{_datadir}/%{name}
41 %{_datadir}/pixmaps/%{name}-icon.png
42 %{_datadir}/applications/%{name}.desktop
43 %{_mandir}/man1/%{name}.1*
44 %{_mandir}/man1/avopkg.1*
45 %{_datadir}/libavogadro/
46 %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
53
54 #--------------------------------------------------------------------
55 %package -n %{libname}
56 Summary: Shared libraries for Avogadro
57 Group: System/Libraries
58
59 %description -n %{libname}
60 Libraries for Avogadro molecular editor.
61
62 %files -n %{libname}
63 %{_libdir}/libavogadro.so.%{major}*
64 %{_libdir}/libavogadro_OpenQube.so.*
65
66
67 #--------------------------------------------------------------------
68 %package devel
69 Summary: Development files for Avogadro
70 Group: Development/C++
71 Requires: %{libname} = %{version}-%{release}
72
73 %description devel
74 Development Avogadro files.
75
76 %files devel
77 %{_includedir}/%{name}
78 %{_libdir}/libavogadro.so
79 %{_libdir}/libavogadro_OpenQube.so
80 %{python_sitearch}/Avogadro.so
81 %{_libdir}/%{name}/*.cmake
82 %{_libdir}/%{name}/%{major}_%{minor}/*.cmake
83 %{_libdir}/%{name}/%{major}_%{minor}/cmake/
84 %{_libdir}/pkgconfig/%{name}.pc
85 %dir %{qt4dir}/mkspecs/features/
86 %{qt4dir}/mkspecs/features/%{name}.prf
87
88
89 #--------------------------------------------------------------------
90 %prep
91 %setup -q
92 %apply_patches
93 # (Fedora) nuke unpatched copy, use working version included in cmake instead
94 rm -f cmake/modules/FindPythonLibs.cmake
95
96
97 %build
98 %cmake_qt4 \
99 %{?ENABLE_TESTS} \
100 -DENABLE_GLSL:BOOL=ON \
101 -DENABLE_PYTHON:BOOL=ON \
102 -DCMAKE_SKIP_RPATH:BOOL=ON
103
104 %make
105
106 %install
107 %makeinstall_std -C build

  ViewVC Help
Powered by ViewVC 1.1.28