forked from pool/cpp-httplib
- Move examples to devel subpackage
- Drop headers-only flavor and remove aliases for pkg-config files (gh#yhirose/cpp-httplib#1491) OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=15
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<multibuild>
|
||||
<flavor>cpp-httplib-headers</flavor>
|
||||
</multibuild>
|
||||
@@ -1,68 +0,0 @@
|
||||
#
|
||||
# spec file for package cpp-httplib-headers
|
||||
#
|
||||
# Copyright (c) 2023 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/
|
||||
#
|
||||
|
||||
|
||||
Name: cpp-httplib-headers
|
||||
Version: 0.12.0
|
||||
Release: 0
|
||||
Summary: A C++11 header-only HTTP/HTTPS library
|
||||
License: MIT
|
||||
URL: https://github.com/yhirose/cpp-httplib
|
||||
Source0: cpp-httplib-%{version}.tar.gz
|
||||
BuildRequires: meson >= 0.47.0
|
||||
|
||||
%package devel
|
||||
Summary: A C++11 header-only HTTP/HTTPS library
|
||||
Conflicts: cpp-httplib-devel
|
||||
Provides: cpp-httplib-devel-static = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This is a multi-threaded HTTP library with blocking I/O. There is no
|
||||
support for non-blocking mode.
|
||||
|
||||
%description devel
|
||||
This is a multi-threaded HTTP library with blocking I/O. There is no
|
||||
support for non-blocking mode.
|
||||
|
||||
It features built-in mappings, static file server, pre-routing and
|
||||
post-routing handlers, and support for binding sockets to multiple
|
||||
interfaces and any available port.
|
||||
|
||||
%prep
|
||||
%setup -q -n cpp-httplib-%{version}
|
||||
# For avoid c++ compiler check
|
||||
sed -i "7s/.*/version: '%{version}',/" meson.build
|
||||
chmod -x example/uploader.sh
|
||||
|
||||
%build
|
||||
%meson -Dcpp-httplib_openssl=disabled -Dcpp-httplib_brotli=disabled \
|
||||
-Dcpp-httplib_zlib=disabled
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
cd %{buildroot}%{_datadir}/pkgconfig
|
||||
ln -s cpp-httplib.pc %{name}.pc
|
||||
|
||||
%files devel
|
||||
%{_includedir}/httplib.h
|
||||
%{_datadir}/pkgconfig/cpp-httplib.pc
|
||||
%{_datadir}/pkgconfig/%{name}.pc
|
||||
%doc README.md example
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 16 07:01:16 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
|
||||
|
||||
- Move examples to devel subpackage
|
||||
- Drop headers-only flavor and remove aliases for pkg-config files
|
||||
(gh#yhirose/cpp-httplib#1491)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 09 12:34:29 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ interfaces and any available port.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
chmod -x example/uploader.sh
|
||||
|
||||
%build
|
||||
%meson -Dcpp-httplib_compile=true -Dcpp-httplib_test=true \
|
||||
@@ -66,9 +67,6 @@ interfaces and any available port.
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
# Create a pkgconfig alias
|
||||
cd %{buildroot}%{_libdir}/pkgconfig
|
||||
ln -s %{name}.pc %{name}-shared.pc
|
||||
|
||||
%check
|
||||
# OBS and chroot build environments does not provide internet
|
||||
@@ -87,7 +85,7 @@ export GTEST_FILTER='-*.*_Online'
|
||||
%files devel
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_includedir}/httplib.h
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%doc README.md
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%doc README.md example
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user