File sigscheme.spec of Package sigscheme

#
# spec file for package sigscheme
#
# Copyright (c) 2021 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 http://bugs.opensuse.org/
#


%define sover   3
Name:           sigscheme
Version:        0.9.1
Release:        0
Summary:        R5RS Scheme interpreter for embedded use
License:        BSD-3-Clause
Group:          System/Libraries
Url:            https://github.com/uim/sigscheme
Source0:        https://github.com/uim/sigscheme/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  asciidoc
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gcroots)

%description
sigscheme is a R5RS Scheme interpreter that features small footprint,
low memory consumption, multibytes characters handling and more.

%package -n     libsscm%{sover}
Summary:        R5RS Scheme interpreter for embedded use
Group:          System/Libraries

%description -n libsscm%{sover}
sigscheme is a R5RS Scheme interpreter that features small footprint,
low memory consumption, multibytes characters handling and more.


%package        devel
Summary:        Development files for sigscheme
Group:          Development/Libraries/
Requires:       libsscm%{sover} = %{version}

%description    devel
sigscheme is a R5RS Scheme interpreter that features small footprint,
low memory consumption, multibytes characters handling and more.

This package contains header files and development library.

%prep
%autosetup -p1

%build
%configure --disable-static --with-libgcroots=installed --docdir=%{_defaultdocdir}/%{name}
%make_build

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%check
./runtest.sh
./runtest-tail-rec.sh

%post -n libsscm%{sover} -p /sbin/ldconfig
%postun -n libsscm%{sover} -p /sbin/ldconfig

%files
%license COPYING
%{_bindir}/sscm

%files -n libsscm%{sover}
%license COPYING
%{_libdir}/libsscm.so.%{sover}*

%files devel
%doc NEWS README
%license COPYING
%{_datadir}/%{name}
%{_defaultdocdir}/%{name}
%{_includedir}/%{name}
%{_libdir}/libsscm.so
%{_libdir}/pkgconfig/%{name}.pc

%changelog
openSUSE Build Service is sponsored by