# CGAL-5.x is now a header-only library, with dependencies. It no # longer has any binary to build, but cannot be noarch because of # arch-specific dependencies %global debug_package %{nil} # Min dependencies %global boost_version 1.66 %global qt_version 5.9 %global cmake_version 3.14 %global fullversion %{version} #global fullversion 5.6-beta1 Name: CGAL5 Version: 5.6.2 Release: %autorelease Summary: Computational Geometry Algorithms Library # Automatically converted from old format: LGPLv3+ and GPLv3+ and Boost - review is highly recommended. License: LGPL-3.0-or-later AND GPL-3.0-or-later AND BSL-1.0 URL: http://www.cgal.org/ Source0: https://github.com/CGAL/cgal/releases/download/v%{fullversion}/CGAL-%{fullversion}.tar.xz # Required devel packages. BuildRequires: cmake >= %{cmake_version} BuildRequires: gcc-c++ BuildRequires: gmp-devel BuildRequires: boost-devel >= %{boost_version} BuildRequires: mpfr-devel BuildRequires: qt5-qtbase-devel >= %{qt_version} BuildRequires: qt5-qtsvg-devel >= %{qt_version} BuildRequires: qt5-qtscript-devel >= %{qt_version} BuildRequires: qt5-qttools-devel >= %{qt_version} BuildRequires: make %description Libraries for CGAL applications. CGAL is a collaborative effort of several sites in Europe and Israel. The goal is to make the most important of the solutions and methods developed in computational geometry available to users in industry and academia in a C++ library. The goal is to provide easy access to useful, reliable geometric algorithms. %package devel Summary: Development files and tools for CGAL applications Provides: CGAL5-static = %{version}-%{release} Conflicts: CGAL-devel Conflicts: CGAL-static Requires: cmake Requires: boost-devel%{?_isa} >= %{boost_version} Requires: gmp-devel%{?_isa} Requires: mpfr-devel%{?_isa} Recommends: zlib-devel%{?_isa} Recommends: eigen3-devel %description devel Libraries for CGAL applications. CGAL is a collaborative effort of several sites in Europe and Israel. The goal is to make the most important of the solutions and methods developed in computational geometry available to users in industry and academia in a C++ library. The goal is to provide easy access to useful, reliable geometric algorithms. The %{name}-devel package provides the headers files and tools you may need to develop applications using CGAL. %package qt5-devel Summary: Development files and tools for CGAL applications using CGAL_Qt5 Conflicts: CGAL-qt5-devel Requires: %{name}-devel = %{version}-%{release} Requires: qt5-qtbase-devel%{?_isa} >= %{qt_version} Requires: qt5-qtsvg-devel%{?_isa} >= %{qt_version} Requires: qt5-qtscript-devel%{?_isa} >= %{qt_version} Requires: qt5-qttools-devel%{?_isa} >= %{qt_version} %description qt5-devel The %{name}-qt5-devel package provides the headers files and tools you may need to develop applications using the CGAL_Qt5 component of CGAL. %prep %setup -q -n CGAL-%{fullversion} %build %cmake -DCGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE=ON -DCGAL_INSTALL_LIB_DIR=%{_datadir} -DCGAL_INSTALL_DOC_DIR= %cmake_build %install %cmake_install %files devel %license AUTHORS LICENSE LICENSE.BSL LICENSE.RFL LICENSE.LGPL LICENSE.GPL %doc CHANGES.md %{_includedir}/CGAL %exclude %{_includedir}/CGAL/Qt %{_datadir}/cmake/CGAL %exclude %{_datadir}/cmake/CGAL/demo %{_bindir}/* %exclude %{_bindir}/cgal_make_macosx_app %{_mandir}/man1/cgal_create_cmake_script.1.gz %files qt5-devel %{_includedir}/CGAL/Qt %{_datadir}/cmake/CGAL/demo %changelog %autochangelog