File libnl-tiny.spec of Package libnl-tiny

#
# spec file for package libnl-tiny
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#

%define sover 1
%define libname libnl-tiny%{sover}
Name:           libnl-tiny
Version:        0~git20231205
Release:        0
Summary:        Tiny OpenWrt fork of libnl
License:        LGPL-2.1-only
Group:          System/Libraries
URL:            https://git.openwrt.org/?p=project/libnl-tiny.git;a=summary
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake

%description
Tiny OpenWrt fork of libnl.

%package -n %{libname}
Summary:        Tiny OpenWrt fork of libnl
Group:          System/Libraries

%description -n %{libname}
Tiny OpenWrt fork of libnl.

%package devel
Summary:        Development files for libnl-tiny
Group:          System/Libraries
Requires:       %{libname} = %{version}

%description devel
Tiny OpenWrt fork of libnl.

This subpackage contains files for developing applications that
want to make use of libnl-tiny.

%prep
%setup -q

%build
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
%cmake
%make_jobs

%install
%cmake_install

%ldconfig_scriptlets -n %{libname}

%files -n %{libname}
%{_libdir}/libnl-tiny.so.%{sover}

%files devel
%{_includedir}/libnl-tiny
%{_libdir}/libnl-tiny.a
%{_libdir}/libnl-tiny.so
%{_libdir}/pkgconfig/libnl-tiny.pc

%changelog
openSUSE Build Service is sponsored by