/[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 594357 - (show annotations) (download)
Tue Feb 18 16:14:43 2014 UTC (6 years, 7 months ago) by akien
File size: 3039 byte(s)
- New version 1.1.1
- Rediffed qmake_mkspecs patch

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 1
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 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.3.0
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}/%{major}_%{minor}/
46 %{_libdir}/%{name}/%{major}_%{minor}/colors
47 %{_libdir}/%{name}/%{major}_%{minor}/extensions
48 %{_libdir}/%{name}/%{major}_%{minor}/engines
49 %{_libdir}/%{name}/%{major}_%{minor}/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 %{_libdir}/libavogadro_OpenQube.so.*
63
64
65 #--------------------------------------------------------------------
66 %package devel
67 Summary: Development files for Avogadro
68 Group: Development/C++
69 Requires: %{libname} = %{version}-%{release}
70
71 %description devel
72 Development Avogadro files.
73
74 %files devel
75 %{_includedir}/%{name}
76 %{_libdir}/libavogadro.so
77 %{_libdir}/libavogadro_OpenQube.so
78 %{python_sitearch}/Avogadro.so
79 %{_libdir}/%{name}/*.cmake
80 %{_libdir}/%{name}/%{major}_%{minor}/*.cmake
81 %{_libdir}/%{name}/%{major}_%{minor}/cmake/
82 %{_libdir}/pkgconfig/%{name}.pc
83 %dir %{qt4dir}/mkspecs/features/
84 %{qt4dir}/mkspecs/features/%{name}.prf
85
86
87 #--------------------------------------------------------------------
88 %prep
89 %setup -q
90 %apply_patches
91 # (Fedora) nuke unpatched copy, use working version included in cmake instead
92 rm -f cmake/modules/FindPythonLibs.cmake
93
94
95 %build
96 %cmake_qt4 \
97 %{?ENABLE_TESTS} \
98 -DENABLE_GLSL:BOOL=ON \
99 -DENABLE_PYTHON:BOOL=ON \
100 -DCMAKE_SKIP_RPATH:BOOL=ON
101
102 %make
103
104 %install
105 %makeinstall_std -C build

  ViewVC Help
Powered by ViewVC 1.1.28