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