132 lines
3.8 KiB
RPMSpec
132 lines
3.8 KiB
RPMSpec
Name: avogadro
|
|
Version: 1.1.0
|
|
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
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libGL-devel
|
|
BuildRequires: libglew-devel
|
|
BuildRequires: libGLU-devel
|
|
BuildRequires: libICE-devel
|
|
BuildRequires: libpython-devel
|
|
BuildRequires: libqt4-devel
|
|
BuildRequires: libSM-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequires: libz-devel
|
|
BuildRequires: openbabel-devel
|
|
BuildRequires: python-boost-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python-sip-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
|
|
# use working version included in cmake
|
|
rm -f cmake/modules/FindPythonLibs.cmake
|
|
|
|
%build
|
|
%cmake -d build \
|
|
-DENABLE_GLSL:BOOL=ON \
|
|
-DENABLE_PYTHON:BOOL=ON \
|
|
-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
|
|
* 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
|