Files
kcgi/kcgi.spec

89 lines
2.5 KiB
RPMSpec

#
# spec file for package kcgi
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2018 Archie L. Cobbs. All rights reserved.
#
# 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/
#
Name: kcgi
Version: 0.10.11
Release: 0
Summary: Minimal CGI and FastCGI library for C/C++
License: ISC
#Group: c c++ web cgi fastcgi
Group: Development/Languages/C and C++
URL: https://github.com/kristapsdz/%{name}
Source: https://github.com/kristapsdz/%{name}/archive/VERSION_0_10_11.tar.gz
Patch0: rpmlint-security-fixes.patch
BuildRequires: binutils
BuildRequires: bmake
BuildRequires: grep
BuildRequires: libcurl-devel
BuildRequires: zlib-devel
%description
kcgi is an open source CGI and FastCGI library for C/C++ web applications.
It is minimal, secure, and auditable.
This package includes the kfcgi server that handles FastCGI connections.
%package -n %{name}-devel
Summary: Development headers and libraries for kcgi
Group: Development/Libraries/C and C++
%description -n %{name}-devel
kcgi is an open source CGI and FastCGI library for C/C++ web applications.
It is minimal, secure, and auditable.
This package includes header files and scripts needed for developers
using the kcgi library, along with the kcgi library itself.
%prep
%setup -q -n %{name}-VERSION_0_10_11
%patch0 -p1
%build
./configure \
PREFIX=%{_usr} \
BINDIR=%{_bindir} \
SHAREDIR=%{_datadir} \
SBINDIR=%{_sbindir} \
INCLUDEDIR=%{_includedir} \
LIBDIR=%{_libdir} \
MANDIR=%{_mandir}
bmake %{?_smp_mflags}
# doesn't work on obs server
#%%check
#bmake %{?_smp_mflags} regress
%install
bmake %{?_smp_mflags} install DESTDIR=%{?buildroot}
%files
%attr(0755,root,root) %{_sbindir}/kfcgi
%license LICENSE.md
%files -n %{name}-devel
%license LICENSE.md
%doc %{_datadir}/%{name}
%{_includedir}/*
%{_libdir}/libkcgi*.a
%{_mandir}/man3/*
%{_mandir}/man8/*
%changelog