File libsfdo.spec of Package libsfdo
#
# spec file for package libsfdo
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#
%define vver v%{version}
%define l_name %{name}0
Name: libsfdo
Version: 0.1.4
Release: 0
Summary: Libraries which implement some freedesktop specifications
License: BSD-2-Clause
Group: System/Libraries
URL: https://gitlab.freedesktop.org/vyivel/libsfdo
Source0: https://gitlab.freedesktop.org/vyivel/libsfdo/-/archive/%{vver}/libsfdo-%{vver}.tar.gz
BuildRequires: gcc
BuildRequires: meson
BuildRequires: pkg-config
%description
Libraries which implement some freedesktop.org specifications
freedesktop.org specifications are sometimes ambiguous in their requirements,
leaving room for interpretation. libsfdo tries to follow them as closely as
possible nonetheless, except for cases when doing so would add too much complexity
for no benefit and/or result in suboptimal behavior. Additionally, libsfdo is
much stricter than other implementations, so it may refuse to process non-conformant
desktop entry files or icon themes. It is advised that you try to fix the offending
files before opening an issue.
%package -n %{l_name}
Summary: Libraries which implement some freedesktop specifications
Group: System/Libraries
%description -n %{l_name}
Libraries which implement some freedesktop.org specifications
freedesktop.org specifications are sometimes ambiguous in their requirements,
leaving room for interpretation. libsfdo tries to follow them as closely as
possible nonetheless, except for cases when doing so would add too much complexity
for no benefit and/or result in suboptimal behavior. Additionally, libsfdo is
much stricter than other implementations, so it may refuse to process non-conformant
desktop entry files or icon themes. It is advised that you try to fix the offending
files before opening an issue.
%package devel
Summary: Development package for %{name}
Group: Development/Languages/C and C++
Requires: %{l_name} = %{version}
%description devel
Headers and libraries for libsfdo
freedesktop.org specifications are sometimes ambiguous in their requirements,
leaving room for interpretation. libsfdo tries to follow them as closely as
possible nonetheless, except for cases when doing so would add too much complexity
for no benefit and/or result in suboptimal behavior. Additionally, libsfdo is
much stricter than other implementations, so it may refuse to process non-conformant
desktop entry files or icon themes. It is advised that you try to fix the offending
files before opening an issue.
This package provides headers required to build software
using %{name}.
%prep
%autosetup -p1 -n %{name}-%{vver}
%build
%meson \
--includedir=/usr/include/%{name}/
%meson_build
%install
%meson_install
%post -n %{l_name} -p /sbin/ldconfig
%postun -n %{l_name} -p /sbin/ldconfig
%files -n %{l_name}
%{_libdir}/%{name}*.so.0
%license LICENSE
%files devel
%{_includedir}/%{name}
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/%{name}*.pc
%changelog