[packages/ocaml-cairo2] - up to 0.6.5 - disable gtk2
baggins
baggins at pld-linux.org
Sat Apr 25 10:20:59 CEST 2026
commit 4b8cc4c488536d1c5d8d0cb77524f360335935f2
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Apr 25 12:20:25 2026 +0200
- up to 0.6.5
- disable gtk2
ocaml-cairo2.spec | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/ocaml-cairo2.spec b/ocaml-cairo2.spec
index 4a4bd50..e30e123 100644
--- a/ocaml-cairo2.spec
+++ b/ocaml-cairo2.spec
@@ -1,7 +1,7 @@
# TODO: C optflags (currently are taken from ocamlc -config)
#
# Conditional build:
-%bcond_without gtk # lablgtk2 interface (cairo_gtk)
+%bcond_with gtk # lablgtk2 interface (cairo_gtk)
%bcond_without ocaml_opt # build opt (native code)
%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
@@ -11,13 +11,13 @@
Summary: OCaml interface to Cairo
Summary(pl.UTF-8): Interfejs OCamla do biblioteki Cairo
Name: ocaml-cairo2
-Version: 0.6.2
-Release: 3
+Version: 0.6.5
+Release: 1
License: LGPL v3+
Group: Libraries
#Source0Download: https://github.com/Chris00/ocaml-cairo/releases
Source0: https://github.com/Chris00/ocaml-cairo/releases/download/%{version}/cairo2-%{version}.tbz
-# Source0-md5: 2d13f7ae6c90dd29a72571e7e94dc2dd
+# Source0-md5: 923ef5c1534bffad798fc5dfe4d49555
URL: https://github.com/Chris00/ocaml-cairo
BuildRequires: ocaml >= 1:4.02
BuildRequires: ocaml-dune
@@ -139,6 +139,10 @@ biblioteki Cairo-Pango.
%prep
%setup -q -n cairo2-%{version}
+%if %{without gtk}
+%{__rm} -r gtk pango examples-gtk examples-pango
+%endif
+
%build
%{__make}
@@ -212,6 +216,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/ocaml/cairo2-gtk/libcairo_gtk_stubs.a
%endif
+%if %{with gtk}
%files pango
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllcairo_pango_stubs.so
@@ -237,3 +242,4 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/ocaml/cairo2-pango/dune-package
%{_libdir}/ocaml/cairo2-pango/opam
%{_libdir}/ocaml/cairo2-pango/libcairo_pango_stubs.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ocaml-cairo2.git/commitdiff/4b8cc4c488536d1c5d8d0cb77524f360335935f2
More information about the pld-cvs-commit
mailing list