124 lines
3.1 KiB
RPMSpec
124 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package libucl
|
|
#
|
|
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define sover 0
|
|
Name: libucl
|
|
Version: 0.9.2
|
|
Release: 0
|
|
Summary: Universal configuration library parser
|
|
License: BSD-2-Clause
|
|
URL: https://github.com/vstakhov/libucl
|
|
Source: https://github.com/vstakhov/libucl/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake >= 3.1.0
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(libcrypto)
|
|
BuildRequires: pkgconfig(libcurl)
|
|
BuildRequires: pkgconfig(lua5.1)
|
|
BuildRequires: pkgconfig(luajit2)
|
|
|
|
%description
|
|
C library for parsing configurations written in UCL - universal configuration
|
|
language.
|
|
|
|
%package -n %{name}%{sover}
|
|
Summary: Universal configuration library parser
|
|
|
|
%description -n %{name}%{sover}
|
|
C library for parsing configurations written in UCL - universal configuration
|
|
language.
|
|
|
|
This package contains the shared library.
|
|
|
|
%package -n liblua-ucl%{sover}
|
|
Summary: Lua for libucl
|
|
|
|
%description -n liblua-ucl%{sover}
|
|
C library for parsing configurations written in UCL - universal configuration
|
|
language.
|
|
|
|
This package contains lua support.
|
|
|
|
%package devel
|
|
Summary: Development files for libucl
|
|
Requires: %{name}%{sover} = %{version}
|
|
Requires: liblua-ucl%{sover} = %{version}
|
|
|
|
%description devel
|
|
C library for parsing configurations written in UCL - universal configuration
|
|
language.
|
|
|
|
This package contains the files needed for building using %{name}.
|
|
|
|
%package tools
|
|
Summary: Universal configuration parser tools
|
|
|
|
%description tools
|
|
Tools for parsing configurations written in UCL - universal configuration
|
|
language.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DENABLE_URL_INCLUDE:BOOL=ON \
|
|
-DENABLE_URL_SIGN:BOOL=ON \
|
|
-DENABLE_LUA:BOOL=ON \
|
|
-DENABLE_LUAJIT:BOOL=ON \
|
|
-DENABLE_UTILS:BOOL=ON \
|
|
%{nil}
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%ldconfig_scriptlets -n %{name}%{sover}
|
|
%ldconfig_scriptlets -n liblua-ucl%{sover}
|
|
|
|
%files devel
|
|
%license COPYING
|
|
%doc README.md ChangeLog.md
|
|
%{_includedir}/ucl++.h
|
|
%{_includedir}/ucl.h
|
|
%{_includedir}/lua_ucl.h
|
|
%{_libdir}/libucl.so
|
|
%{_libdir}/liblua-ucl.so
|
|
%{_datadir}/ucl/ucl-config-relwithdebinfo.cmake
|
|
%{_datadir}/ucl/ucl-config.cmake
|
|
|
|
%files -n %{name}%{sover}
|
|
%license COPYING
|
|
%{_libdir}/libucl.so.%{sover}{,.*}
|
|
%dir %{_datadir}/ucl
|
|
|
|
%files -n liblua-ucl%{sover}
|
|
%license COPYING
|
|
%{_libdir}/liblua-ucl.so.%{sover}{,.*}
|
|
%dir %{_datadir}/ucl
|
|
|
|
%files tools
|
|
%license COPYING
|
|
%{_bindir}/ucl_chargen
|
|
%{_bindir}/ucl_objdump
|
|
%{_bindir}/ucl_tool
|
|
|
|
%changelog
|