File libucl.spec of Package libucl

#
# spec file for package libucl
#
# Copyright (c) 2024 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 libname libucl5
Name:           libucl
Version:        0.8.2
Release:        0
Summary:        Universal configuration library parser
License:        BSD-2-Clause
URL:            https://github.com/vstakhov/libucl
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  curl-devel
BuildRequires:  libtool
BuildRequires:  libtree-devel
BuildRequires:  mum-hash-devel
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
%{summary}.

%package        devel
Summary:        Development files for Libucl
Requires:       %{libname} = %{version}

%description    devel
%{summary}.

%package     -n %{libname}
Summary:        Universal configuration library parser

%description -n %{libname}
%{summary}.

%prep
%autosetup

%build
./autogen.sh
%configure --disable-static
%make_build

%install
%make_install

rm %{buildroot}%{_libdir}/%{name}.la

%ldconfig_scriptlets -n %{libname}

%files -n %{libname}
%license COPYING
%doc README.md
%{_libdir}/libucl.so.*
%{_mandir}/man3/libucl.3%{?ext_man}

%files devel
%{_libdir}/pkgconfig/libucl.pc
%{_libdir}/libucl.so
%{_includedir}/ucl*

%changelog
openSUSE Build Service is sponsored by