SFCGAL: Add SLES 16 support
authorDevrim Gunduz <devrim@gunduz.org>
Sat, 4 Oct 2025 12:55:20 +0000 (15:55 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Sat, 4 Oct 2025 12:55:20 +0000 (15:55 +0300)
rpm/redhat/main/common/SFCGAL/main/sfcgal.spec

index 41d4cff4d249420813838f7aeed5c17d94c34793..cd111e7727f6dc624e3c801ad38da945c172c9dd 100644 (file)
@@ -2,11 +2,16 @@
 
 Summary:       C++ wrapper library around CGAL for PostGIS
 Name:          SFCGAL
-%if 0%{?suse_version} && 0%{?suse_version} >= 1500
+%if 0%{?suse_version} && 0%{?suse_version} == 1500
 Version:       1.4.1
 BuildRequires: cgal-devel
 %endif
 
+%if 0%{?suse_version} && 0%{?suse_version} == 1600
+Version:       2.2.0
+BuildRequires: cgal-devel
+%endif
+
 %if 0%{?rhel} && 0%{?rhel} == 8
 Version:       1.4.1
 Requires:      CGAL >= 4.7
@@ -23,7 +28,7 @@ Version:      2.2.0
 BuildRequires: CGAL-devel >= 5.6
 %endif
 
-Release:       2PGDG%{?dist}
+Release:       3PGDG%{?dist}
 License:       GLPLv2
 Source:                https://gitlab.com/sfcgal/SFCGAL/-/archive/v%{version}/SFCGAL-v%{version}.tar.gz
 
@@ -36,11 +41,16 @@ BuildRequires:  cmake-rpm-macros
 %endif
 BuildRequires: cmake pgdg-srpm-macros
 
-%if 0%{?suse_version} >= 1500
+%if 0%{?suse_version} == 1500
 BuildRequires: libboost_date_time1_66_0 libboost_thread1_66_0
 BuildRequires: libboost_system1_66_0 libboost_serialization1_66_0
 BuildRequires: libboost_serialization1_66_0-devel libboost_atomic1_66_0-devel
 %endif
+%if 0%{?suse_version} == 1600
+BuildRequires: libboost_date_time1_86_0 libboost_thread1_86_0
+BuildRequires: libboost_system1_86_0 libboost_serialization1_86_0
+BuildRequires: libboost_serialization1_86_0-devel libboost_atomic1_86_0-devel
+%endif
 %if 0%{?rhel} || 0%{?fedora}
 BuildRequires: boost-thread, boost-system, boost-date-time, boost-serialization
 %endif
@@ -120,6 +130,9 @@ Development headers and libraries for SFCGAL.
 %{_libdir}/libSFCGAL.so*
 
 %changelog
+* Sat Oct 4 2025 Devrim Gunduz <devrim@gunduz.org> - 2.2.0-3PGDG
+- Add SLES 16 support
+
 * Wed Oct 01 2025 Yogesh Sharma <yogesh.sharma@catprosystems.com> - 2.2.0-2PGDG
 - Bump release number (missed in previous commit)