/[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 585922 - (show annotations) (download)
Sat Feb 8 13:56:06 2014 UTC (5 years, 5 months ago) by barjac
File size: 2728 byte(s)
rebuild against boost-1.55
1
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 Version: 1.0.3
9 Release: %mkrel 19
10 License: GPLv2
11 URL: http://avogadro.openmolecules.net/
12 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
13 Patch0: avogadro-1.0.3-mga-fix_qmake_mkspecs_installation.patch
14 Patch1: avogadro-1.0.3-fix-moc.patch
15 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 BuildRequires: docbook-utils-pdf
23 BuildRequires: python-sip
24 BuildRequires: python-numpy-devel
25 BuildRequires: python-devel
26 Requires: openbabel >= 2.2.3
27
28 %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 %files
35 %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 %files -n %libname
61 %{_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 %{python_sitearch}/Avogadro.so
77 %{_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 %apply_patches
88 # (Fedora) nuke unpatched copy, use working version included in cmake instead
89 rm -f cmake/modules/FindPythonLibs.cmake
90
91
92 %build
93 %{cmake_qt4}\
94 %{?ENABLE_TESTS} \
95 -DENABLE_GLSL:BOOL=ON \
96 -DENABLE_PYTHON:BOOL=ON \
97 -DCMAKE_SKIP_RPATH:BOOL=ON
98
99 %make
100
101 %install
102 %makeinstall_std -C build

  ViewVC Help
Powered by ViewVC 1.1.26