libevhtp/libevhtp.spec
YoungJQ 12aece64bd libevhtp : modify source0 address in spec file
Signed-off-by: YoungJQ <yangjiaqi11@huawei.com>
2020-09-01 19:29:31 +08:00

75 lines
2.0 KiB
RPMSpec

Name: libevhtp
Version: 1.2.18
Release: 2
Summary: Libevent based HTTP API.
License: BSD3
URL: https://github.com
Source0: https://github.com/criticalstack/libevhtp/archive/1.2.18.tar.gz
Patch9000: 0001-decrease-numbers-of-fd-for-shared-pipe-mode.patch
Patch9001: 0002-evhtp-enable-dynamic-thread-pool.patch
Patch9002: 0003-close-open-ssl.-we-do-NOT-use-it-in-lcrd.patch
Patch9003: 0004-Use-shared-library-instead-static-one.patch
BuildRequires: git gcc-c++ cmake libevent-devel
%description
Libevent based HTTP API.Libevent's http interface was created as a JIT server, never meant
to be a full-fledged HTTP service. This library attempts to improve on that with the following
features: + design as a fully functional HTTP server + HTTP parser able to process data with a
low memory footprint + use of regular expressions for routing + out-of-the box HTTPS server
This package contains the runtime library.
%package devel
Summary: Headers for developing programs that will use %{name}
Requires: %{name} = %{version}-%{release}
%description devel
%{name}-devel contains the header files for developing
applications that want to make use of %{name}.
%global debug_package %{nil}
%prep
%autosetup -n %{name}-%{version} -p1
%build
mkdir -p build
cd build
%cmake -DEVHTP_BUILD_SHARED=ON -DEVHTP_DISABLE_SSL=ON -DLIB_INSTALL_DIR=lib ..
%make_build
%install
rm -rf %{buildroot}
cd build
%make_install
%delete_la_and_a
find %{buildroot} -name '*.cmake' -exec rm -f {} ';'
%ldconfig_scriptlets
%files
%defattr(-,root,root)
%license LICENSE
/usr/lib/%{name}.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_includedir}/evhtp/*.h
%{_includedir}/evhtp/sys/*.h
/usr/lib/%{name}.so
/usr/lib/pkgconfig/evhtp.pc
%changelog
* Tue Sep 01 2020 openeuler Buildteam <buildteam@openeuler.org> - 1.2.18-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: modify source0 address
* Wed Apr 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.2.18-1
- Package init