File uhttpd.spec of Package uhttpd
#
# spec file for package uhttpd
#
# 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: uhttpd
Version: 0~git20230625
Release: 0
Summary: Tiny HTTP server
License: BSD-3-Clause
Group: System/Daemons
URL: https://git.openwrt.org/?p=project/uhttpd.git;a=summary
Source: %{name}-%{version}.tar.xz
Patch0: uhttpd-cmake-use-gnuinstalldirs.patch
BuildRequires: cmake
BuildRequires: libubox-devel
BuildRequires: pkgconfig
BuildRequires: ubus-devel
BuildRequires: ucode-devel
BuildRequires: pkgconfig(json-c)
%description
Single-threaded httpd server.
%prep
%setup -q
%autopatch -p1
%build
%cmake \
-DTLS_SUPPORT=OFF \
-DLUA_SUPPORT=OFF \
-DUBUS_SUPPORT=ON \
-DUCODE_SUPPORT=ON
%make_jobs
%install
%cmake_install
%files
%{_bindir}/uhttpd
%{_libdir}/uhttpd_ubus.so
%{_libdir}/uhttpd_ucode.so
%changelog