This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
avogadro/avogadro.spec

143 lines
4.2 KiB
RPMSpec

Name: avogadro
Version: 1.1.1
Release: 1mamba
Summary: An advanced molecule editor and visualizer
Group: Graphical Desktop/Applications/Scientific
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://avogadro.openmolecules.net
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch0: avogadro-1.1.1-boost-1.5.5.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libgcc
BuildRequires: libglew-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: openbabel-devel
BuildRequires: python-boost-devel
## AUTOBUILDREQ-END
BuildRequires: python-sip-devel
BuildRequires: libeigen2-devel
BuildRequires: eigen3-devel
Requires: python-numpy
Requires: libavogadro = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Avogadro is an advanced molecule editor and visualizer designed for cross-platform use in computational chemistry, molecular modeling, bioinformatics, materials science, and related areas.
It offers flexible high quality rendering and a powerful plugin architecture.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
%{summary}.
%package -n libavogadro
Summary: Runtime files for %{name}
Group: System/Libraries
%description -n libavogadro
%{summary}.
%prep
%setup -q
%patch0 -p1
## use working version included in cmake
#rm -f cmake/modules/FindPythonLibs.cmake
%build
%cmake -d build \
-DENABLE_GLSL:BOOL=ON \
-DENABLE_PYTHON:BOOL=ON \
-DEIGEN2_INCLUDE_DIR=%{_includedir}/eigen2 \
-DEIGEN3_INCLUDE_DIR=%{_includedir}/eigen3
# -DPYTHON_LIBRARY:FILEPATH=%{_libdir}/libpython%{python_version}.so \
# -DPYTHON_INCLUDE_DIR:PATH=%{_includedir}/python%{python_version} \
# -DSIP_INCLUDE_DIR=%{_includedir}/python%{python_version}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
install -d %{buildroot}%{_qt4_prefix}/mkspecs/features
mv %{buildroot}%{_prefix}/features/avogadro.prf \
%{buildroot}%{_qt4_prefix}/mkspecs/features/avogadro.prf
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libavogadro -p /sbin/ldconfig
%postun -n libavogadro -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/avogadro
%{_bindir}/avopkg
%{_datadir}/applications/avogadro.desktop
%dir %{_datadir}/avogadro/builder
%{_datadir}/avogadro/builder/*
%dir %{_datadir}/avogadro/crystals
%{_datadir}/avogadro/crystals/*
%dir %{_datadir}/avogadro/fragments
%{_datadir}/avogadro/fragments/*
%{_datadir}/avogadro/i18n/avogadro*.qm
%{_datadir}/pixmaps/avogadro-icon.png
%{_mandir}/man1/avogadro.*
%{_mandir}/man1/avopkg.*
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/avogadro/
%{_includedir}/avogadro/*
%{_libdir}/libavogadro.so
%{_libdir}/libavogadro_OpenQube.so
%{_libdir}/avogadro/*.cmake
%{_libdir}/avogadro/*/*.cmake
%{_libdir}/avogadro/*/cmake/
%{_libdir}/pkgconfig/avogadro.pc
%{_qt4_prefix}/mkspecs/features/avogadro.prf
%doc ChangeLog README
%files -n libavogadro
%defattr(-,root,root,-)
%{_datadir}/avogadro/i18n/libavogadro*.qm
%dir %{_datadir}/libavogadro
%{_datadir}/libavogadro/*
%{_libdir}/libavogadro.so.*
%{_libdir}/libavogadro_OpenQube.so.*
%dir %{_libdir}/avogadro
%{_libdir}/avogadro/*/colors/
%{_libdir}/avogadro/*/extensions/
%{_libdir}/avogadro/*/engines/
%{_libdir}/avogadro/*/tools/
%{python_sitearch}/Avogadro.so
#%doc AUTHORS COPYING
%changelog
* Sat Jun 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- update to 1.1.1
* Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- update to 1.1.0
* Tue Sep 27 2011 Davide Madrisan <davide.madrisan@gmail.com> 1.0.3-1mamba
- package created by autospec