CGAL 6.1: Initial packaging for the PostgreSQL RPM repository to support SFCGAL on...
authorDevrim Gunduz <devrim@gunduz.org>
Fri, 7 Nov 2025 09:38:18 +0000 (12:38 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Fri, 7 Nov 2025 09:38:18 +0000 (12:38 +0300)
rpm/redhat/main/common/CGAL61/SLES-16/CGAL61.spec [new symlink]
rpm/redhat/main/common/CGAL61/SLES-16/Makefile [new file with mode: 0644]
rpm/redhat/main/common/CGAL61/main/CGAL61.spec [new file with mode: 0644]
rpm/redhat/main/common/CGAL61/main/Makefile [new file with mode: 0644]

diff --git a/rpm/redhat/main/common/CGAL61/SLES-16/CGAL61.spec b/rpm/redhat/main/common/CGAL61/SLES-16/CGAL61.spec
new file mode 120000 (symlink)
index 0000000..986ddbb
--- /dev/null
@@ -0,0 +1 @@
+../main/CGAL61.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/CGAL61/SLES-16/Makefile b/rpm/redhat/main/common/CGAL61/SLES-16/Makefile
new file mode 100644 (file)
index 0000000..f67f8de
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=".sles16"
+SPECFILE="CGAL61.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/CGAL61/main/CGAL61.spec b/rpm/redhat/main/common/CGAL61/main/CGAL61.spec
new file mode 100644 (file)
index 0000000..40b3b87
--- /dev/null
@@ -0,0 +1,121 @@
+%global                 _sourcename CGAL
+
+Name:          cgal
+Version:       6.1
+Release:       420001PGDG%{?dist}
+Summary:       Computational Geometry Algorithms Library
+License:       GPL-3.0-or-later AND LGPL-3.0-or-later
+URL:           https://www.cgal.org/
+Source0:       https://github.com/CGAL/cgal/releases/download/v%{version}/CGAL-%{version}.tar.xz
+Source1:       https://github.com/CGAL/cgal/releases/download/v%{version}/CGAL-%{version}-doc_html.tar.xz
+Source2:       cgal-rpmlintrc
+BuildRequires: blas-devel cmake >= 3.14 fdupes glu-devel gmp-devel
+BuildRequires: lapack-devel libboost_atomic-devel >= 1.74
+BuildRequires: libboost_thread-devel >= 1.74 mpfr-devel xz zlib-devel
+Requires:      libcgal-devel = %{version}
+%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
+BuildRequires: gcc13-c++
+%else
+BuildRequires: gcc-c++
+%endif
+
+%description
+CGAL provides geometric algorithms in a C++ library.
+
+The library offers data structures and algorithms like
+triangulations, Voronoi diagrams, Boolean operations on polygons and
+polyhedra, point set processing, arrangements of curves, surface and
+volume mesh generation, geometry processing, alpha shapes, convex
+hull algorithms, shape analysis, AABB and KD trees.
+
+%package devel
+Summary:       Development files and tools for CGAL applications
+License:       BSL-1.0 AND GPL-3.0-or-later AND LGPL-3.0-or-later
+Requires:      blas cmake gmp-devel lapack libboost_atomic-devel >= 1.72
+Requires:      libboost_thread-devel >= 1.72 mpfr-devel zlib-devel
+#For compatibility with package looking for our old name
+Provides:      libcgal-devel = %{version}
+
+%description devel
+This package provides the headers files and tools you may need to
+develop applications using CGAL.
+
+%package demo-examples-devel
+Summary:       Example & demo files for CGAL library usage
+License:       BSL-1.0 AND GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT
+Requires:      %{name}-devel = %{version}
+BuildArch:     noarch
+
+%description demo-examples-devel
+This package provides the sources of examples and demos of
+CGAL algorithms. You can study them, compile and test CGAL
+library.
+
+%package doc
+Summary:       Documentation CGAL algorithms
+License:       GPL-3.0-or-later AND LGPL-3.0-or-later
+Group:         Documentation/HTML
+BuildArch:     noarch
+
+%description doc
+This package provides the documentation for CGAL algorithms.
+
+%prep
+%setup -q -n CGAL-%{version} -a1
+
+%build
+%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
+export CXX="g++-13"
+%endif
+
+%cmake -DCGAL_INSTALL_LIB_DIR=%{_lib} \
+        -DCGAL_INSTALL_DOC_DIR=%{_docdir}/%{name}-doc
+
+%make_build
+
+# Unfortunately take +6600sec locally.
+# So we just deliver the source code in cgal package.
+# -DWITH_examples=true \
+# -DWITH_demos=true \
+
+%install
+%cmake_install
+
+%{__install} -d %{buildroot}/%{_datadir}/CGAL/examples
+%{__install} -d %{buildroot}/%{_datadir}/CGAL/demo
+%{__cp} -a examples/* %{buildroot}/%{_datadir}/CGAL/examples
+%{__cp} -a demo/* %{buildroot}/%{_datadir}/CGAL/demo
+
+# installed as docs, but licenses are under %%{_datadir}/licenses/, remove duplicate
+%{__rm} %{buildroot}%{_docdir}/%{name}-doc/LICENSE*
+
+%{__cp} -a doc_html %{buildroot}/%{_docdir}/%{name}-doc/
+%fdupes %{buildroot}%{_docdir}/%{name}-doc/
+
+%fdupes %{buildroot}/%{_datadir}
+
+%files devel
+%license LICENSE*
+%doc AUTHORS CHANGES.md
+%{_includedir}/CGAL
+%{_libdir}/cmake/CGAL
+%{_bindir}/cgal_create_CMakeLists
+%{_bindir}/cgal_create_cmake_script
+%{_mandir}/man1/cgal_create_cmake_script.1%{?ext_man}
+
+%files demo-examples-devel
+%license LICENSE*
+%{_datadir}/CGAL
+
+%files doc
+%license LICENSE*
+%doc %dir %{_docdir}/%{name}-doc
+%doc %{_docdir}/%{name}-doc/doc_html
+%doc %{_docdir}/%{name}-doc/AUTHORS
+%doc %{_docdir}/%{name}-doc/CHANGES.md
+
+%changelog
+* Fri Nov 7 2025 Devrim Gündüz <devrim@gunduz.org> - 6.1-420001PGDG
+- Initial packaging for the PostgreSQL RPM repository to support SFCGAL on SLES 16.
+  Took spec file from:
+  https://download.opensuse.org/repositories/home:/Simmphonie:/blender/16.0/src/
diff --git a/rpm/redhat/main/common/CGAL61/main/Makefile b/rpm/redhat/main/common/CGAL61/main/Makefile
new file mode 100644 (file)
index 0000000..ce25492
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f99
+SPECFILE="CGAL61.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global