/[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 875837 - (show annotations) (download)
Thu Sep 10 21:02:01 2015 UTC (4 years, 1 month ago) by ovitters
File size: 3355 byte(s)
- SILENT restrict what libraries are matched with major numbers
- SILENT make use of autopatch
1 %define major 1
2 %define minor 1
3 %define libname %mklibname %{name} %{major}
4
5 %define debug_package %{nil}
6
7 Name: avogadro
8 Summary: An advanced molecular editor for chemical purposes
9 Group: System/Libraries
10 Version: %{major}.%{minor}.1
11 Release: %mkrel 10
12 License: GPLv2
13 URL: http://avogadro.openmolecules.net/
14 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
15 Patch0: avogadro-1.1.1-mga-fix_qmake_mkspecs_installation.patch
16 Patch1: avogadro-1.0.3-fix-moc.patch
17 #(lm) avogadro-devel requires eigen2-devel, patch from Fedora (mga#13729)
18 Patch2: avogadro-1.1.1-pkgconfig_eigen.patch
19 Patch3: avogadro-1.1.0-xlibs.patch
20 # https://sourceforge.net/p/avogadro/patches/20
21 Patch4: avogadro-1.1.1-mga-desktop-file.patch
22 BuildRequires: cmake >= 2.6.0
23 BuildRequires: qt4-devel
24 BuildRequires: qt4-linguist
25 BuildRequires: eigen2 >= 2.0.9
26 BuildRequires: openbabel-devel >= 2.2.3
27 BuildRequires: boost-devel >= 1.35
28 BuildRequires: glew-devel >= 1.5.0
29 BuildRequires: docbook-utils-pdf
30 BuildRequires: doxygen
31 BuildRequires: python-sip
32 BuildRequires: python-numpy-devel
33 BuildRequires: python-devel
34 Requires: openbabel >= 2.3.0
35
36 %description
37 An advanced molecular editor designed for cross-platform use
38 in computational chemistry, molecular modeling, bioinformatics,
39 materials science and related areas, which offers flexible
40 rendering and a powerful plugin architecture.
41
42 %files
43 %doc AUTHORS ChangeLog COPYING
44 %{_bindir}/%{name}
45 %{_bindir}/avopkg
46 %{_datadir}/%{name}
47 %{_datadir}/pixmaps/%{name}-icon.png
48 %{_datadir}/applications/%{name}.desktop
49 %{_mandir}/man1/%{name}.1*
50 %{_mandir}/man1/avopkg.1*
51 %{_datadir}/libavogadro/
52 %dir %{_libdir}/%{name}/
53 %dir %{_libdir}/%{name}/%{major}_%{minor}/
54 %{_libdir}/%{name}/%{major}_%{minor}/colors
55 %{_libdir}/%{name}/%{major}_%{minor}/extensions
56 %{_libdir}/%{name}/%{major}_%{minor}/engines
57 %{_libdir}/%{name}/%{major}_%{minor}/tools
58
59
60 #--------------------------------------------------------------------
61 %package -n %{libname}
62 Summary: Shared libraries for Avogadro
63 Group: System/Libraries
64
65 %description -n %{libname}
66 Libraries for Avogadro molecular editor.
67
68 %files -n %{libname}
69 %{_libdir}/libavogadro.so.%{major}{,.*}
70 %{_libdir}/libavogadro_OpenQube.so.*
71
72
73 #--------------------------------------------------------------------
74 %package devel
75 Summary: Development files for Avogadro
76 Group: Development/C++
77 Requires: %{libname} = %{version}-%{release}
78
79 %description devel
80 Development Avogadro files.
81
82 %files devel
83 %{_includedir}/%{name}
84 %{_libdir}/libavogadro.so
85 %{_libdir}/libavogadro_OpenQube.so
86 %{python_sitearch}/Avogadro.so
87 %{_libdir}/%{name}/*.cmake
88 %{_libdir}/%{name}/%{major}_%{minor}/*.cmake
89 %{_libdir}/%{name}/%{major}_%{minor}/cmake/
90 %{_libdir}/pkgconfig/%{name}.pc
91 %dir %{qt4dir}/mkspecs/features/
92 %{qt4dir}/mkspecs/features/%{name}.prf
93
94
95 #--------------------------------------------------------------------
96 %prep
97 %setup -q
98 %autopatch -p1
99 # (Fedora) nuke unpatched copy, use working version included in cmake instead
100 rm -f cmake/modules/FindPythonLibs.cmake
101
102
103 %build
104 %cmake_qt4 \
105 %{?ENABLE_TESTS} \
106 -DENABLE_GLSL:BOOL=ON \
107 -DENABLE_PYTHON:BOOL=ON \
108 -DCMAKE_SKIP_RPATH:BOOL=ON
109
110 %make
111
112 %install
113 %makeinstall_std -C build

  ViewVC Help
Powered by ViewVC 1.1.26