75 lines
2.0 KiB
RPMSpec
75 lines
2.0 KiB
RPMSpec
|
|
Name: libevent
|
||
|
|
Version: 2.1.11
|
||
|
|
Release: 1
|
||
|
|
Summary: An event notification library
|
||
|
|
|
||
|
|
License: BSD
|
||
|
|
URL: http://libevent.org/
|
||
|
|
Source0: https://github.com/libevent/libevent/releases/download/release-%{version}-stable/libevent-%{version}-stable.tar.gz
|
||
|
|
|
||
|
|
BuildRequires: gcc doxygen openssl-devel libevent
|
||
|
|
|
||
|
|
Patch01: libevent-nonettests.patch
|
||
|
|
Patch02: 0103-http-add-callback-to-allow-server-to-decline-and-the.patch
|
||
|
|
|
||
|
|
%description
|
||
|
|
Libevent additionally provides a sophisticated framework for buffered network IO, with support for sockets,
|
||
|
|
filters, rate-limiting, SSL, zero-copy file transmission, and IOCP.
|
||
|
|
Libevent includes support for several useful protocols, including DNS, HTTP, and a minimal RPC framewor.
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development files for %{name}
|
||
|
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
|
||
|
|
%description devel
|
||
|
|
This package contains the header files and libraries for developing
|
||
|
|
with %{name}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n libevent-%{version}-stable -p1
|
||
|
|
|
||
|
|
%build
|
||
|
|
%configure --disable-dependency-tracking --disable-static
|
||
|
|
%make_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%make_install
|
||
|
|
cp -a %{_libdir}/libevent* %{buildroot}%{_libdir}
|
||
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
||
|
|
|
||
|
|
|
||
|
|
%check
|
||
|
|
make check
|
||
|
|
|
||
|
|
%ldconfig_scriptlets
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc ChangeLog
|
||
|
|
%license LICENSE
|
||
|
|
%{_libdir}/libevent-2.1.so.*
|
||
|
|
%{_libdir}/libevent_core-2.1.so.*
|
||
|
|
%{_libdir}/libevent_extra-2.1.so.*
|
||
|
|
%{_libdir}/libevent_openssl-2.1.so.*
|
||
|
|
%{_libdir}/libevent_pthreads-2.1.so.*
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%{_includedir}/*.h
|
||
|
|
%dir %{_includedir}/event2
|
||
|
|
%{_includedir}/event2/*.h
|
||
|
|
%{_libdir}/libevent.so
|
||
|
|
%{_libdir}/libevent_core.so
|
||
|
|
%{_libdir}/libevent_extra.so
|
||
|
|
%{_libdir}/libevent_openssl.so
|
||
|
|
%{_libdir}/libevent_pthreads.so
|
||
|
|
%{_libdir}/pkgconfig/libevent.pc
|
||
|
|
%{_libdir}/pkgconfig/libevent_core.pc
|
||
|
|
%{_libdir}/pkgconfig/libevent_extra.pc
|
||
|
|
%{_libdir}/pkgconfig/libevent_openssl.pc
|
||
|
|
%{_libdir}/pkgconfig/libevent_pthreads.pc
|
||
|
|
%{_bindir}/event_rpcgen.*
|
||
|
|
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.1.11-1
|
||
|
|
- Package init
|