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