## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autochangelog ## END: Set by rpmautospec # CGAL is a header-only library, with dependencies. %global debug_package %{nil} # Min dependencies %global boost_version 1.74 %global qt_version 6.4 %global cmake_version 3.22 #global fullversion %{version} %global fullversion 6.1-beta1 Name: CGAL Version: 6.1 Release: 0.1.beta1%{?dist} 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}/%{name}-%{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: qt6-qtbase-devel >= %{qt_version} BuildRequires: qt6-qtsvg-devel >= %{qt_version} BuildRequires: qt6-qtdeclarative-devel >= %{qt_version} BuildRequires: qt6-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: CGAL-static = %{version}-%{release} 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 qt6-devel Summary: Development files and tools for CGAL applications using CGAL_qt6 Requires: %{name}-devel = %{version}-%{release} Requires: qt6-qtbase-devel%{?_isa} >= %{qt_version} Requires: qt6-qtsvg-devel%{?_isa} >= %{qt_version} Requires: qt6-qtdeclarative-devel%{?_isa} >= %{qt_version} Requires: qt6-qttools-devel%{?_isa} >= %{qt_version} %description qt6-devel The %{name}-qt6-devel package provides the headers files and tools you may need to develop applications using the CGAL_qt6 component of CGAL. %package demos-source BuildArch: noarch Summary: Examples and demos of CGAL algorithms Requires: %{name}-devel = %{version}-%{release} %description demos-source The %{name}-demos-source package provides the sources of examples and demos of CGAL algorithms. %prep %autosetup -p1 -n %{name}-%{fullversion} # Fix some file permissions #chmod a-x include/CGAL/export/ImageIO.h # Install README.Fedora here, to include it in %%doc cat << 'EOF' > ./README.Fedora Header-only ----------- CGAL is a header-only library since version 5.0. Packages -------- In Fedora, the CGAL tarball is separated in several packages: - CGAL is empty since CGAL-5.0 - CGAL-devel contains header files, and several files and tools needed to develop CGAL applications, - CGAL-demos-source contains the source of examples and demos of CGAL. Documentation ------------- Note that the CGAL documentation cannot be packaged for Fedora due to unclear license conditions. The complete documentation in PDF and HTML is available at http://www.cgal.org/Manual/index.html EOF %build %cmake -DCGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE=ON -DCGAL_INSTALL_LIB_DIR=%{_datadir} -DCGAL_INSTALL_DOC_DIR= %cmake_build %install rm -rf %{buildroot} %cmake_install # Install demos and examples mkdir -p %{buildroot}%{_datadir}/CGAL touch -r demo %{buildroot}%{_datadir}/CGAL/ cp -a demo %{buildroot}%{_datadir}/CGAL/demo cp -a examples %{buildroot}%{_datadir}/CGAL/examples %check rm -rf include/ mkdir build-example cd build-example cmake -L "-DCMAKE_PREFIX_PATH=%{buildroot}/usr" %{buildroot}%{_datadir}/CGAL/examples/Triangulation_2 make constrained_plus ldd ./constrained_plus ./constrained_plus %files devel %license AUTHORS LICENSE LICENSE.BSL LICENSE.RFL LICENSE.LGPL LICENSE.GPL %doc CHANGES.md README.Fedora %{_includedir}/CGAL %exclude %{_includedir}/CGAL/Qt %dir %{_datadir}/CGAL %{_datadir}/cmake/CGAL %exclude %{_datadir}/cmake/CGAL/demo %{_bindir}/* %{_mandir}/man1/cgal_create_cmake_script.1.gz %files qt6-devel %{_includedir}/CGAL/Qt %{_datadir}/cmake/CGAL/demo %files demos-source %{_datadir}/CGAL/demo %{_datadir}/CGAL/examples %exclude %{_datadir}/CGAL/*/*/skip_vcproj_auto_generation %changelog ## START: Generated by rpmautospec * Wed Sep 03 2025 Laurent Rineau - 6.1-1 - update to 6.1-beta1 * Wed Jul 23 2025 Fedora Release Engineering - 6.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jan 16 2025 Fedora Release Engineering - 6.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Oct 22 2024 Laurent Rineau - 6.0.1-1 - new upstream version 6.0.1 * Tue Oct 22 2024 Laurent Rineau - 6.0-2 - Update README.md * Tue Oct 15 2024 Laurent Rineau - 6.0-1 - Update CGAL to version 6.0 and adjust dependencies * Wed Aug 07 2024 Miroslav Suchý - 5.6.1-3 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 5.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Mar 13 2024 Laurent Rineau - 5.6.1-1 - Update to 5.6.1 (#2269356) * Mon Jan 22 2024 Fedora Release Engineering - 5.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 5.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 18 2024 Jonathan Wakely - 5.6-6 - Rebuilt for Boost 1.83 * Thu Jan 18 2024 Fedora Release Engineering - 5.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 28 2023 Laurent Rineau - 5.6-4 - new upstream release CGAL 5.6 * Fri Jul 28 2023 Laurent Rineau - 5.6-3 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec