File glycin-loaders.spec of Package glycin-loaders
#
# spec file for package glycin-loaders
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without jxl
Name: glycin-loaders
Version: 2.0.rc+1
Release: 0
Summary: Sandboxed image rendering
License: LGPL-2.1-or-later OR MPL-2.0
URL: https://gitlab.gnome.org/GNOME/glycin
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: clang
BuildRequires: git
BuildRequires: meson
BuildRequires: pkgconfig
%if %{with jxl}
BuildRequires: (pkgconfig(libjxl) >= 0.8.2 with pkgconfig(libjxl) < 0.13.0)
%endif
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk4) >= 4.12.0
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libheif) >= 1.17.4
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libseccomp) >= 2.5.0
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(vapigen)
%description
Sandboxed and extendable image decoding.
%package -n libglycin-2-0
Summary: Shared library for %{name}
%description -n libglycin-2-0
Sandboxed and extendable image decoding.
This package provides the shared library for %{name}
%package -n libglycin-gtk4-2-0
Summary: Shared library for %{name}
%description -n libglycin-gtk4-2-0
Sandboxed and extendable image decoding.
This package provides the shared library for %{name}
%package -n typelib-1_0-Gly_2
Summary: Introspection bindings for %{name}
%description -n typelib-1_0-Gly_2
Sandboxed and extendable image decoding.
This package provides introspection bindings for %{name}
%package -n typelib-1_0-GlyGtk4_2
Summary: Introspection bindings for %{name}
%description -n typelib-1_0-GlyGtk4_2
Sandboxed and extendable image decoding.
This package provides introspection bindings for %{name}
%package devel
Summary: Development Files for %{name}
Requires: libglycin-2-0 = %{version}
Requires: libglycin-gtk4-2-0 = %{version}
Requires: typelib-1_0-GlyGtk4_2 = %{version}
Requires: typelib-1_0-Gly_2 = %{version}
%description devel
Sandboxed and extendable image decoding.
This package provides developments files for %{name}
%prep
%autosetup -p1 -a1
%build
%meson \
-Dloaders=glycin-heif,glycin-image-rs,glycin-svg%[%{with jxl}?",glycin-jxl":""] \
%{nil}
%meson_build
%install
%meson_install
%ldconfig_scriptlets -n libglycin-2-0
%ldconfig_scriptlets -n libglycin-gtk4-2-0
%files
%dir %{_libexecdir}/glycin-loaders
%dir %{_libexecdir}/glycin-loaders/2+
%{_libexecdir}/glycin-loaders/2+/glycin-heif
%{_libexecdir}/glycin-loaders/2+/glycin-image-rs
%{_libexecdir}/glycin-loaders/2+/glycin-svg
%dir %{_datadir}/glycin-loaders
%dir %{_datadir}/glycin-loaders/2+
%dir %{_datadir}/glycin-loaders/2+/conf.d
%{_datadir}/glycin-loaders/2+/conf.d/glycin-heif.conf
%{_datadir}/glycin-loaders/2+/conf.d/glycin-image-rs.conf
%{_datadir}/glycin-loaders/2+/conf.d/glycin-svg.conf
%if %{with jxl}
%{_libexecdir}/glycin-loaders/2+/glycin-jxl
%{_datadir}/glycin-loaders/2+/conf.d/glycin-jxl.conf
%endif
%{_bindir}/glycin-thumbnailer
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/glycin-heif.thumbnailer
%{_datadir}/thumbnailers/glycin-image-rs.thumbnailer
%{_datadir}/thumbnailers/glycin-jxl.thumbnailer
%{_datadir}/thumbnailers/glycin-svg.thumbnailer
%files -n libglycin-2-0
%{_libdir}/libglycin-2.so.0
%files -n libglycin-gtk4-2-0
%{_libdir}/libglycin-gtk4-2.so.0
%files -n typelib-1_0-Gly_2
%{_libdir}/girepository-1.0/Gly-2.typelib
%files -n typelib-1_0-GlyGtk4_2
%{_libdir}/girepository-1.0/GlyGtk4-2.typelib
%files devel
%dir %{_includedir}/glycin-2
%{_includedir}/glycin-2/glycin.h
%dir %{_includedir}/glycin-gtk4-2
%{_includedir}/glycin-gtk4-2/glycin-gtk4.h
%{_libdir}/libglycin-2.so
%{_libdir}/libglycin-gtk4-2.so
%{_libdir}/pkgconfig/glycin-2.pc
%{_libdir}/pkgconfig/glycin-gtk4-2.pc
%{_datadir}/gir-1.0/Gly-2.gir
%{_datadir}/gir-1.0/GlyGtk4-2.gir
%{_datadir}/vala/vapi/glycin-2.deps
%{_datadir}/vala/vapi/glycin-2.vapi
%{_datadir}/vala/vapi/glycin-gtk4-2.deps
%{_datadir}/vala/vapi/glycin-gtk4-2.vapi
%changelog