12 Star 0 Fork 16

src-openEuler / cpp-httplib
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cpp-httplib.spec 2.82 KB
一键复制 编辑 原始数据 按行查看 历史
Name: cpp-httplib
Version: 0.27.0
Release: 1
Summary: A C++ header-only HTTP/HTTPS server and client library
License: MIT
URL: https://github.com/yhirose/cpp-httplib
Source0: https://github.com/yhirose/cpp-httplib/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: remove-REMOTE_PORT-dependency.patch
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(libbrotlicommon)
BuildRequires: pkgconfig(libbrotlidec)
BuildRequires: pkgconfig(libbrotlienc)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
BuildRequires: /usr/bin/openssl
BuildRequires: /usr/bin/python3
%description
A C++11 single-file header-only cross platform HTTP/HTTPS library.
It's extremely easy to setup. Just include httplib.h file in your code!
%package devel
Summary: A C++11 single-file header-only cross platform HTTP/HTTPS library
Requires: %{name}%{?_isa} = %{version}-%{release}
Conflicts: %{name} < 0.18.0
%description devel
A C++11 single-file header-only cross platform HTTP/HTTPS library.
It's extremely easy to setup. Just include the httplib.h file in your code!
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 only.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%cmake \
-S %{_vpath_srcdir} \
-B %{_vpath_builddir} \
-DBUILD_SHARED_LIBS=ON \
-DHTTPLIB_COMPILE=ON \
-DHTTPLIB_TEST=ON
cmake --build %{_vpath_builddir} %{?_smp_mflags} --verbose
%install
DESTDIR="%{buildroot}" cmake --install %{_vpath_builddir}
rm -r $RPM_BUILD_ROOT%{_docdir}/httplib
rm -r $RPM_BUILD_ROOT%{_licensedir}/httplib
%check
cd %{_vpath_builddir}
/usr/bin/ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} --parallel 1 --exclude-regex '_Online$'
cd -
%files
%license LICENSE
%{_libdir}/lib%{name}.so.*
%files devel
%doc README.md example
%{_includedir}/httplib.h
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/httplib
%changelog
* Mon Dec 08 2025 yaoxin <1024769339@qq.com> - 0.27.0-1
- Update to 0.27.0 for fix CVE-2025-66570 and CVE-2025-66577
* Tue Jul 15 2025 yaoxin <1024769339@qq.com> - 0.22.0-2
- Fix CVE-2025-53629
* Tue Jul 01 2025 yaoxin <1024769339@qq.com> - 0.22.0-1
- Update to 0.22.0 for fix CVE-2025-52887
* Wed May 07 2025 yaoxin <1024769339@qq.com> - 0.12.4-4
- Fix CVE-2025-46728
* Fri Feb 07 2025 yaoxin <1024769339@qq.com> - 0.12.4-3
- Fix CVE-2025-0825
* Wed Sep 27 2023 Chenxi Mao <chenxi.mao@suse.com> - 0.12.4-2
- Add openssl to build require list to fix build error
* Tue Jun 13 2023 yaoxin <yao_xin001@hoperun.com> - 0.12.4-1
- Update to 0.12.4 for fix CVE-2023-26130
* Mon Oct 12 2020 liqingqing_1229 <liqingqing3@huawei.com>
- update source0's url
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/cpp-httplib.git
git@gitee.com:src-openeuler/cpp-httplib.git
src-openeuler
cpp-httplib
cpp-httplib
openEuler-22.03-LTS-SP3

搜索帮助