2020-01-09 23:57:14 +00:00
|
|
|
#
|
|
|
|
# spec file for package kcgi
|
|
|
|
#
|
2021-02-04 20:00:46 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
|
|
|
# Copyright (c) 2018 Archie L. Cobbs. All rights reserved.
|
2020-01-09 23:57:14 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-02-04 20:00:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-01-09 23:57:14 +00:00
|
|
|
#
|
|
|
|
|
2021-02-04 20:00:46 +00:00
|
|
|
|
2020-01-09 23:57:14 +00:00
|
|
|
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++
|
2021-02-04 20:00:46 +00:00
|
|
|
URL: https://github.com/kristapsdz/%{name}
|
2020-01-09 23:57:14 +00:00
|
|
|
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
|
2021-02-04 20:00:46 +00:00
|
|
|
%patch0 -p1
|
2020-01-09 23:57:14 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
./configure \
|
|
|
|
PREFIX=%{_usr} \
|
|
|
|
BINDIR=%{_bindir} \
|
|
|
|
SHAREDIR=%{_datadir} \
|
|
|
|
SBINDIR=%{_sbindir} \
|
|
|
|
INCLUDEDIR=%{_includedir} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
MANDIR=%{_mandir}
|
|
|
|
|
|
|
|
bmake %{?_smp_mflags}
|
|
|
|
|
2020-01-10 16:30:55 +00:00
|
|
|
# doesn't work on obs server
|
2020-01-10 17:28:43 +00:00
|
|
|
#%%check
|
2020-01-10 16:30:55 +00:00
|
|
|
#bmake %{?_smp_mflags} regress
|
2020-01-09 23:57:14 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
bmake %{?_smp_mflags} install DESTDIR=%{?buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%attr(0755,root,root) %{_sbindir}/kfcgi
|
|
|
|
%license LICENSE.md
|
|
|
|
|
|
|
|
%files -n %{name}-devel
|
2020-01-10 17:28:43 +00:00
|
|
|
%license LICENSE.md
|
2021-02-04 20:00:46 +00:00
|
|
|
%doc %{_datadir}/%{name}
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/libkcgi*.a
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man8/*
|
2020-01-09 23:57:14 +00:00
|
|
|
|
|
|
|
%changelog
|