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