# Derived from openSUSE:Factory/libnbcompat, which is # Copyright (c) 2021 SUSE LLC %define sover 0 Name: libnbcompat Version: 1.0.1 %if "%{_vendor}" == "redhat" Release: 2%{?dist} %elif "%{_vendor}" == "suse" Release: 2 %endif Summary: NetBSD compatibility library License: BSD-4-Clause Group: Development/Libraries/C and C++ URL: https://github.com/archiecobbs/%{name} Source: https://github.com/archiecobbs/%{name}/archive/%{version}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: libtool BuildRequires: make %description %{name} is a NetBSD compatibility library that supplies routines used by NetBSD bootstrap tools that are missing on other operating systems. %if "%{_vendor}" == "suse" %package -n %{name}%{sover} Summary: NetBSD compatibility library Group: Development/Libraries/C and C++ %description -n %{name}%{sover} This package holds the shared library of %{name}. %endif %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ %if "%{_vendor}" == "suse" Requires: %{name}%{sover} = %{version} %elif "%{_vendor}" == "redhat" Requires: %{name}%{?_isa} = %{version}-%{release} %endif %description devel This package holds the development files for %{name}. %{name} is a NetBSD compatibility library that supplies routines used by NetBSD bootstrap tools that are missing on other operating systems. %prep %setup -q %build autoreconf -vfi -I . %configure --disable-static LIBDIR='%{_libdir}' %make_build %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %if "%{_vendor}" == "suse" %post -n %{name}%{sover} -p /sbin/ldconfig %postun -n %{name}%{sover} -p /sbin/ldconfig %files -n %{name}%{sover} %elif "%{_vendor}" == "redhat" %{?ldconfig_scriptlets} %files %endif %{_libdir}/%{name}.so.%{sover}* %files devel %{_includedir}/* %{_libdir}/*.so %changelog * Wed Jul 27 2022 Jashank Jeremy - 1.0.1-2 - Bump for Fedora 37 mass rebuild.