# # SPDX-License-Identifier: BSD-2-Clause # SPDX-FileCopyrightText: 2026 Nassim Lhadj # # spec file for package libsingularity # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright notice, # this list of conditions, and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # This file is provided "as is", without any warranty; without even the implied # warranty of merchantability or fitness for a particular purpose. %global debug_package %{nil} %global snapshot 20260609 %global commit b0e8449c4099df9349ad8616bd33ba88452fdecc %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libsingularity Version: 0.1.0~git.%{snapshot}.%{shortcommit} Release: 3%{?dist} Summary: Singularity Desktop application framework library License: LGPL-2.1-only URL: https://github.com/singularityos-lab/libsingularity Source0: https://github.com/singularityos-lab/libsingularity/archive/%{commit}/libsingularity-%{shortcommit}.tar.gz BuildRequires: meson >= 1.11.0 BuildRequires: vala BuildRequires: gcc BuildRequires: pkgconfig(gtk4) >= 4.6 BuildRequires: pkgconfig(gtk4-layer-shell-0) >= 0.7 BuildRequires: pkgconfig(gee-0.8) >= 0.20 BuildRequires: pkgconfig(json-glib-1.0) >= 1.6 BuildRequires: pkgconfig(libpeas-2) >= 2.0 BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(libsoup-3.0) BuildRequires: pkgconfig(gtksourceview-5) BuildRequires: pkgconfig(gobject-introspection-1.0) # runtime stuff Requires: %{name}-typelib %description A GTK4 application and widget framework for the Singularity Desktop Environment. # devel package %package devel Summary: Development files for %{name} Requires: %{name} Requires: %{name}-typelib %description devel Development files for libsingularity # gir %package typelib Summary: GObject introspection typelib files for %{name} Requires: %{name} %description typelib GObject introspection typelib. %prep %autosetup -n libsingularity-%{commit} %build %meson \ -Dintrospection=true %meson_build %install %meson_install install -Dm644 LICENSE %{buildroot}/%{_datadir}/licenses/%{name}/LICENSE %files %{_libdir}/libsingularity.so %{_libdir}/libsingularity.so.* %license LICENSE %files devel %{_includedir}/singularity.h %{_libdir}/pkgconfig/singularity-1.0.pc %{_datadir}/gir-1.0/Singularity-1.0.gir %{_datadir}/vala/vapi/singularity-1.0.deps %{_datadir}/vala/vapi/singularity-1.0.vapi %files typelib %{_libdir}/girepository-1.0/Singularity-1.0.typelib %changelog