/[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 60848 - (hide annotations) (download)
Sat Feb 26 15:29:13 2011 UTC (13 years, 1 month ago) by ahmad
File size: 2942 byte(s)
- drop py27 patch not needed any more
- delete the bundled FindPythonLibs.cmake and use the working copy included with
  cmake (Fedora)
- drop cmake-rpath patch and compile with -DCMAKE_SKIP_RPATH:BOOL=ON instead
  (Fedora)
- add patch to fix crash with current SIP and Python 2.7

1 ahmad 33275
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.1
9 ahmad 60848 Release: %mkrel 6
10 ahmad 33275 License: GPLv2
11     URL: http://avogadro.openmolecules.net/
12     Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
13     Patch0: avogadro-1.0.1-fix-build-with-newer-sip.patch
14 ahmad 60848 # (ahmad) fix crash with current SIP and Python 2.7
15     # https://bugzilla.redhat.com/show_bug.cgi?id=642248
16     Patch3: avogadro-1.0.1-pycapsule.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     BuildRequires: docbook-utils
25     BuildRequires: python-sip
26     BuildRequires: python-numpy-devel
27 ahmad 60115 BuildRequires: python-devel
28     Requires: openbabel >= 2.2.3
29 ahmad 33275 %description
30     An advanced molecular editor designed for cross-platform use
31     in computational chemistry,molecular modeling, bioinformatics,
32     materials science,and related areas, which offers flexible
33     rendering and a powerful plugin architecture.
34    
35 mikala 60545 %files
36 ahmad 33275 %defattr(-,root,root,-)
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     %{python_sitelib}/Avogadro.so
46     %{_datadir}/libavogadro/
47     %dir %{_libdir}/%name/
48     %dir %{_libdir}/%name/1_0/
49     %{_libdir}/%name/1_0/colors
50     %{_libdir}/%name/1_0/extensions
51     %{_libdir}/%name/1_0/engines
52     %{_libdir}/%name/1_0/tools
53    
54    
55     #--------------------------------------------------------------------
56     %package -n %libname
57     Summary: Shared libraries for Avogadro
58     Group: System/Libraries
59    
60     %description -n %libname
61     Libraries for Avogadro molecular editor.
62    
63 mikala 60545 %files -n %libname
64 ahmad 33275 %defattr(-,root,root,-)
65     %{_libdir}/libavogadro.so.%{major}*
66    
67    
68     #--------------------------------------------------------------------
69     %package devel
70     Summary: Development files for Avogadro
71     Group: Development/C++
72     Requires: %libname = %{version}-%{release}
73    
74     %description devel
75     Development Avogadro files.
76    
77     %files devel
78     %defattr(-,root,root,-)
79     %{_includedir}/%name
80     %{_libdir}/libavogadro.so
81     %{_libdir}/%name/*.cmake
82     %{_libdir}/%name/1_0/*.cmake
83     %{_libdir}/%name/1_0/cmake/
84     %dir %{qt4dir}/mkspecs/features/
85     %{qt4dir}/mkspecs/features/%name.prf
86    
87    
88     #--------------------------------------------------------------------
89     %prep
90     %setup -q
91     %patch0 -p0
92 ahmad 60848 %patch3 -p1 -b .sip
93 ahmad 33275
94 ahmad 60848 # (Fedora) nuke unpatched copy, use working version included in cmake instead
95     rm -f cmake/modules/FindPythonLibs.cmake
96    
97 ahmad 33275 %build
98     %{cmake_qt4}\
99     %{?ENABLE_TESTS} \
100     -DENABLE_GLSL:BOOL=ON \
101 ahmad 60848 -DENABLE_PYTHON:BOOL=ON \
102     -DCMAKE_SKIP_RPATH:BOOL=ON
103 ahmad 33275
104     %make
105    
106     %install
107     rm -rf %buidroot
108     %makeinstall_std -C build
109    
110    
111     %clean
112     rm -rf %buildroot

  ViewVC Help
Powered by ViewVC 1.1.30