[packages/glycin] - keep glycin-loaders subpackage for loaders (main will be for glycin library, disabled for now)
qboosh
qboosh at pld-linux.org
Sun Feb 2 15:42:11 CET 2025
commit 2ea3188d5403dfb34cd1ed8fcd76f1047794a0bf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 2 15:03:26 2025 +0100
- keep glycin-loaders subpackage for loaders (main will be for glycin library, disabled for now)
glycin.spec | 64 +++++++++++++++++++++++++++++++++++++++----------------------
1 file changed, 41 insertions(+), 23 deletions(-)
---
diff --git a/glycin.spec b/glycin.spec
index 61a4db1..cace224 100644
--- a/glycin.spec
+++ b/glycin.spec
@@ -4,29 +4,28 @@ Name: glycin
Version: 1.1.4
Release: 0.1
License: MPL v2.0 or LGPL v2.1+
-Group: Applications
+Group: Applications/Graphics
Source0: https://download.gnome.org/sources/glycin/1.1/%{name}-%{version}.tar.xz
# Source0-md5: 4faccd31dbe4c2b223784ef20918fb74
URL: https://gitlab.gnome.org/sophie-h/glycin
BuildRequires: cairo-devel >= 1.17.0
BuildRequires: cargo
-BuildRequires: glib2-devel >= 2.0
+BuildRequires: glib2-devel >= 1:2.60
BuildRequires: gdk-pixbuf2-devel >= 2.0
BuildRequires: gtk4-devel >= 4.12.0
BuildRequires: libheif-devel >= 1.14.2
BuildRequires: libjxl-devel >= 0.8.2
BuildRequires: libxml2-devel >= 2.0
-BuildRequires: meson >= 0.57
+BuildRequires: meson >= 1.2
BuildRequires: ninja >= 1.5
BuildRequires: pango-devel
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.736
-BuildRequires: rust >= 1.75
+BuildRequires: rust >= 1.77
+# for libs
+#BuildRequires: lcms2-devel >= 2.14
+#BuildRequires: libseccomp-devel >= 2.5.0
Obsoletes: glycin-loaders < 1.1
-Requires: cairo >= 1.17.0
-Requires: gtk4 >= 4.12.0
-Requires: libheif >= 1.14.2
-Requires: libjxl >= 0.8.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _debugsource_packages 0
@@ -40,6 +39,24 @@ Glycin pozwala dekodować obrazy do obiektów gdk::Texture oraz
wydobywać metadane z obrazów. Dekodowanie dzieje się w modułach
wczytujących działających w piaskownicy.
+%package loaders
+Summary: Sandboxed image rendering
+Summary(pl.UTF-8): Renderowanie obrazów w piaskownicy
+Group: Applications/Graphics
+Requires: cairo >= 1.17.0
+Requires: gtk4 >= 4.12.0
+Requires: libheif >= 1.14.2
+Requires: libjxl >= 0.8.2
+
+%description loaders
+Glycin allows to decode images into gdk::Textures and to extract image
+metadata. The decoding happens in sandboxed modular image loaders.
+
+%description loaders -l pl.UTF-8
+Glycin pozwala dekodować obrazy do obiektów gdk::Texture oraz
+wydobywać metadane z obrazów. Dekodowanie dzieje się w modułach
+wczytujących działających w piaskownicy.
+
%prep
%setup -q
@@ -52,7 +69,8 @@ wczytujących działających w piaskownicy.
%ifarch x32
export PKG_CONFIG_ALLOW_CROSS=1
%endif
-%meson build
+%meson build \
+ -Dlibglycin=false
%ninja_build -C build
@@ -67,19 +85,19 @@ export PKG_CONFIG_ALLOW_CROSS=1
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files loaders
%defattr(644,root,root,755)
%doc NEWS LICENSE README.md
-%dir %{_libexecdir}/glycin
-%dir %{_libexecdir}/glycin/1+
-%attr(755,root,root) %{_libexecdir}/glycin/1+/glycin-heif
-%attr(755,root,root) %{_libexecdir}/glycin/1+/glycin-image-rs
-%attr(755,root,root) %{_libexecdir}/glycin/1+/glycin-jxl
-%attr(755,root,root) %{_libexecdir}/glycin/1+/glycin-svg
-%dir %{_datadir}/glycin
-%dir %{_datadir}/glycin/1+
-%dir %{_datadir}/glycin/1+/conf.d
-%{_datadir}/glycin/1+/conf.d/glycin-heif.conf
-%{_datadir}/glycin/1+/conf.d/glycin-image-rs.conf
-%{_datadir}/glycin/1+/conf.d/glycin-jxl.conf
-%{_datadir}/glycin/1+/conf.d/glycin-svg.conf
+%dir %{_libexecdir}/glycin-loaders
+%dir %{_libexecdir}/glycin-loaders/1+
+%attr(755,root,root) %{_libexecdir}/glycin-loaders/1+/glycin-heif
+%attr(755,root,root) %{_libexecdir}/glycin-loaders/1+/glycin-image-rs
+%attr(755,root,root) %{_libexecdir}/glycin-loaders/1+/glycin-jxl
+%attr(755,root,root) %{_libexecdir}/glycin-loaders/1+/glycin-svg
+%dir %{_datadir}/glycin-loaders
+%dir %{_datadir}/glycin-loaders/1+
+%dir %{_datadir}/glycin-loaders/1+/conf.d
+%{_datadir}/glycin-loaders/1+/conf.d/glycin-heif.conf
+%{_datadir}/glycin-loaders/1+/conf.d/glycin-image-rs.conf
+%{_datadir}/glycin-loaders/1+/conf.d/glycin-jxl.conf
+%{_datadir}/glycin-loaders/1+/conf.d/glycin-svg.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/glycin.git/commitdiff/2ea3188d5403dfb34cd1ed8fcd76f1047794a0bf
More information about the pld-cvs-commit
mailing list