8
0
forked from pool/cpp-httplib
Files
cpp-httplib/cpp-httplib.spec
Jan Engelhardt 455e15d2d5 Accepting request 1045357 from home:svalx
A C++11 cross platform HTTP/HTTPS library
Features:
- Built-in mappings
- Static file server
- Post routing handler
- Pre routing handler
- Receive content with a content receiver
- Bind a socket to multiple interfaces and any available port
NOTE: This is a multi-threaded 'blocking' HTTP library.
If you are looking for a 'non-blocking' library, this is not the one that you want.

OBS-URL: https://build.opensuse.org/request/show/1045357
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=1
2023-01-02 11:27:03 +00:00

86 lines
2.6 KiB
RPMSpec

#
# spec file for package cpp-httplib
#
# Copyright (c) 2022 SUSE LLC
#
# 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.11
%define libver 0_11
Name: cpp-httplib
Version: 0.11.3
Release: 0
Summary: A C++11 cross platform HTTP/HTTPS library
License: MIT
URL: https://github.com/yhirose/cpp-httplib
Source: _service
BuildRequires: cmake
BuildRequires: gcc-c++ >= 11
BuildRequires: meson >= 0.47.0
BuildRequires: pkgconfig(libbrotlienc)
BuildRequires: pkgconfig(libbrotlidec)
BuildRequires: pkgconfig(openssl) >= 1.1.1
%package -n lib%{name}%{libver}
Summary: A C++11 cross platform HTTP/HTTPS library
%package devel
Summary: A C++11 cross platform HTTP/HTTPS library
Requires: lib%{name}%{libver} = %{version}
Conflicts: cpp-httplib-headers-devel
%description
Features: - Built-in mappings - Static file server
- Post routing handler - Pre routing handler
- Receive content with a content receiver
- Bind a socket to multiple interfaces and any available port
%description -n lib%{name}%{libver}
Features: - Built-in mappings - Static file server
- Post routing handler - Pre routing handler
- Receive content with a content receiver
- Bind a socket to multiple interfaces and any available port
%description devel
NOTE: This is a multi-threaded 'blocking' HTTP library.
If you are looking for a 'non-blocking' library, this is not the one that you want.
Development files - c++ headers, pkg-config file, docs.
%prep
%setup -q -n %_sourcedir/%name-%version -T -D
%build
LDFLAGS="-s"
%meson -Dcpp-httplib_compile=true
%meson_build
%install
%meson_install
%post -n lib%{name}%{libver} -p /sbin/ldconfig
%postun -n lib%{name}%{libver} -p /sbin/ldconfig
%files -n lib%{name}%{libver}
%{_libdir}/lib%{name}.so.%{sover}
%{_libdir}/lib%{name}.so.%{version}
%files devel
%{_libdir}/lib%{name}.so
%{_includedir}/httplib.h
%{_libdir}/pkgconfig/%{name}.pc
%doc README.md
%license LICENSE
%changelog