839654842e349d8d483391e8f519cba6b4061a71
[packages/avogadro.git] / avogadro.spec
1 Summary:        An advanced molecular editor for chemical purposes
2 Name:           avogadro
3 Version:        1.0.3
4 Release:        8
5 License:        GPL v2
6 Group:          Applications/Editors
7 Source0:        http://downloads.sourceforge.net/avogadro/%{name}-%{version}.tar.bz2
8 # Source0-md5:  92c2702c1980f70fb6d87a1a58147911
9 Patch0:         %{name}-linguist.patch
10 Patch1:         %{name}-cmake.patch
11 Patch2:         %{name}-moc-boost.patch
12 URL:            http://avogadro.openmolecules.net/
13 BuildRequires:  QtNetwork-devel
14 BuildRequires:  QtOpenGL-devel
15 BuildRequires:  boost-devel >= 1.35
16 BuildRequires:  boost-python-devel
17 BuildRequires:  cmake >= 2.8.0
18 BuildRequires:  desktop-file-utils
19 BuildRequires:  docbook-utils
20 BuildRequires:  eigen >= 1:2.0.12
21 BuildRequires:  glew-devel >= 1.5.0
22 BuildRequires:  openbabel-devel >= 2.2.2
23 BuildRequires:  pkgconfig
24 BuildRequires:  python-numpy-devel
25 BuildRequires:  python-sip-devel
26 BuildRequires:  qt4-build >= 4.8.2-5
27 BuildRequires:  qt4-linguist
28 BuildRequires:  qt4-qmake >= 4.8.2-5
29 BuildRequires:  sip
30 Requires:       %{name}-libs = %{version}-%{release}
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 An advanced molecular editor designed for cross-platform use in
35 computational chemistry, molecular modeling, bioinformatics, materials
36 science, and related areas, which offers flexible rendering and a
37 powerful plugin architecture.
38
39 %package libs
40 Summary:        Shared libraries for Avogadro
41 Group:          Libraries
42
43 %description libs
44 This package contains the shared libraries for the molecular editor
45 Avogadro.
46
47 %package devel
48 Summary:        Development files for Avogadro
49 Group:          Development/Libraries
50 Requires:       %{name}-libs = %{version}-%{release}
51 Requires:       glew-devel
52
53 %description devel
54 This package contains files to develop applications using Avogadros
55 libraries.
56
57 %prep
58 %setup -q
59 %patch0 -p0
60 %patch1 -p1
61 %patch2 -p1
62
63 %build
64 install -d build
65 cd build
66 %cmake \
67         -DENABLE_GLSL=ON \
68         -DENABLE_PYTHON=ON \
69         -DENABLE_UPDATE_CHECKER=OFF \
70         -DCMAKE_BUILD_TYPE=Release \
71         ..
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features
78
79 %{__make} -C build install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %post libs -p /sbin/ldconfig
83 %postun libs -p /sbin/ldconfig
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog COPYING
91 %attr(755,root,root) %{_bindir}/%{name}
92 %attr(755,root,root) %{_bindir}/avopkg
93 %{_datadir}/%{name}
94 %{_pixmapsdir}/%{name}-icon.png
95 %{_desktopdir}/%{name}.desktop
96 %{_mandir}/man1/avogadro.1*
97 %{_mandir}/man1/avopkg.1*
98
99 %files devel
100 %defattr(644,root,root,755)
101 %{_datadir}/lib%{name}
102 %{_includedir}/%{name}
103 %{_libdir}/*.so
104 %{_datadir}/qt4/mkspecs/features/avogadro.prf
105
106 %files libs
107 %defattr(644,root,root,755)
108 %{py_sitedir}/Avogadro.so
109 %{_libdir}/%{name}
110 %attr(755,root,root) %{_libdir}/*.so.*
This page took 0.037079 seconds and 2 git commands to generate.