Name: avogadrolibs Version: 1.102.1 Release: 1 Summary: An advanced molecular editor License: BSD Group: Sciences/Chemistry Url: https://www.openchemistry.org/projects/avogadro2/ Source0: https://github.com/OpenChemistry/avogadrolibs/archive/%{version}/%{name}-%{version}.tar.gz Source2: https://github.com/OpenChemistry/molecules/archive/refs/tags/%{version}/molecules-%{version}.tar.gz Source3: https://github.com/OpenChemistry/crystals/archive/refs/tags/%{version}/crystals-%{version}.tar.gz Source4: https://github.com/OpenChemistry/fragments/archive/refs/tags/%{version}/fragments-%{version}.tar.gz Source100: avogadrolibs.rpmlintrc #Patch1: avogadro2-libs-1.94.0-do_not_download_external_files.patch BuildRequires: cmake BuildRequires: boost-devel BuildRequires: cmake(Spglib) BuildRequires: cmake(ECM) BuildRequires: cmake(JKQTPlotter6) BuildRequires: pkgconfig(eigen3) BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(Qt6Concurrent) BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Gui) BuildRequires: pkgconfig(Qt6Network) BuildRequires: pkgconfig(Qt6OpenGL) BuildRequires: pkgconfig(Qt6OpenGLWidgets) BuildRequires: pkgconfig(Qt6PrintSupport) BuildRequires: pkgconfig(Qt6Svg) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: pkgconfig(Qt6Xml) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) BuildRequires: mmtf-cpp-devel BuildRequires: msym-devel BuildRequires: pkgconfig(libarchive) %description Avogadro is an advanced molecular editor designed for cross-platform use in computational chemistry, molecular modeling, bioinformatics, materials science, and related areas. It offers flexible rendering and a powerful plugin architecture. The code in this repository is a rewrite of Avogadro with source code split across a libraries repository and an application repository. Core features and goals of the Avogadro project: * Open source distributed under the liberal 3-clause BSD license * Cross platform with nightly builds on Linux, Mac OS X and Windows * Intuitive interface designed to be useful to whole community * Fast and efficient embracing the latest technologies * Extensible, making extensive use of a plugin architecture * Flexible supporting a range of chemical data formats and packages #---------------------------------------------------- %package devel Summary: Development files for %{name} Group: Development/Other Requires: %{name} >= %{version}-%{release} Requires: pkgconfig(glew) Requires: spglib-devel Provides: avogadro2-devel = %{version}-%{release} %description devel The %{name}-devel package contains header files for developing applications that use %{name}. #---------------------------------------------------- %prep %autosetup -p1 tar -xf %{SOURCE2} && mv molecules-%{version} ../molecules tar -xf %{SOURCE3} && mv crystals-%{version} ../crystals tar -xf %{SOURCE4} && mv fragments-%{version} ../fragments %build %cmake \ -DOpenGL_GL_PREFERENCE=GLVND \ -DAvogadroLibs_SOURCEDATA_DIR:STATIC=%{builddir} \ -DQT_VERSION=6 \ -DBUILD_MOLEQUEUE=OFF \ -G Ninja %ninja_build %install %ninja_install -C build # Somehow lib64 becomes lib6464 here... sed -i -e 's,6464,64,g;s,3232,32,g;s,x32x32,x32,g' %{buildroot}%{_libdir}/cmake/avogadrolibs/AvogadroLibsConfig.cmake # Load the package for a hard dependency before # referencing it sed -i -e '/CMAKE_IMPORT_FILE_VERSION 1/ifind_package(JKQTPlotter6 REQUIRED)' %{buildroot}%{_libdir}/cmake/avogadrolibs/AvogadroLibsTargets.cmake %files %doc %{_docdir}/AvogadroLibs/ %{_libdir}/*.so.* %{_libdir}/avogadro2/ %{_datadir}/avogadro2/ %files devel %{_includedir}/avogadro/ %{_libdir}/cmake/%{name}/ %{_libdir}/*.so