File ucode.spec of Package ucode
#
# spec file for package ucode
#
# 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/
#
Name: ucode
Version: 0.0.20231102
Release: 0
Summary: JavaScript-like language with optional templating
License: ISC
Group: System/Libraries
URL: https://github.com/jow-/ucode
Source: https://github.com/jow-/ucode/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: ucode-cmake-gnuinstalldirs.patch
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(json-c)
%description
JavaScript-like language with optional templating.
%package devel
Summary: Development files for ucode
Group: System/Libraries
Requires: %{name} = %{version}
%description devel
JavaScript-like language with optional templating.
This subpackage contains files for developing applications that want
to make use of the libucode.
%prep
%setup -q
%autopatch -p1
%build
%cmake \
-DUBUS_SUPPORT=OFF \
-DUCI_SUPPORT=OFF \
-DULOOP_SUPPORT=OFF
%make_jobs
%install
%cmake_install
%ldconfig_scriptlets
%files
%license LICENSE
%doc README.md
%{_bindir}/ucc
%{_bindir}/ucode
%{_bindir}/utpl
%{_libdir}/libucode.so.0
%dir %{_libdir}/ucode
%{_libdir}/ucode/debug.so
%{_libdir}/ucode/fs.so
%{_libdir}/ucode/log.so
%{_libdir}/ucode/math.so
%{_libdir}/ucode/resolv.so
%{_libdir}/ucode/struct.so
%files devel
%{_libdir}/libucode.so
%dir %{_includedir}/ucode
%{_includedir}/ucode/*.h
%changelog