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