2007-01-16 00:21:45 +01:00
|
|
|
#
|
2011-03-24 16:39:43 +01:00
|
|
|
# spec file for package libevent
|
2007-01-16 00:21:45 +01:00
|
|
|
#
|
2018-07-17 10:08:10 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:45 +01:00
|
|
|
#
|
2008-09-24 00:19:19 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:21:45 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-01 02:15:22 +01:00
|
|
|
|
2015-03-16 14:44:37 +01:00
|
|
|
Name: libevent
|
2017-02-21 19:47:23 +01:00
|
|
|
%define version_base 2
|
|
|
|
%define version_minor 1
|
|
|
|
%define version_release 8
|
|
|
|
%define abi_release 6
|
|
|
|
%define version_suffix stable
|
2017-02-21 19:41:30 +01:00
|
|
|
%define libsoname %{name}-%{version_base}_%{version_minor}-%{version_release}
|
2017-02-21 19:41:03 +01:00
|
|
|
|
|
|
|
Version: %{version_base}.%{version_minor}.%{version_release}
|
2012-02-01 02:15:22 +01:00
|
|
|
Release: 0
|
2013-06-29 15:07:21 +02:00
|
|
|
Summary: An event notification library
|
2012-02-01 02:15:22 +01:00
|
|
|
License: BSD-3-Clause
|
2017-10-03 16:11:48 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-11-17 05:18:11 +01:00
|
|
|
Url: http://libevent.org/
|
2017-02-21 19:46:36 +01:00
|
|
|
Source0: https://github.com/%{name}/%{name}/releases/download/release-%{version}-%{version_suffix}/%{name}-%{version}-%{version_suffix}.tar.gz
|
2017-02-21 19:43:08 +01:00
|
|
|
Source1: https://github.com/%{name}/%{name}/releases/download/release-%{version}-%{version_suffix}/%{name}-%{version}-%{version_suffix}.tar.gz.asc
|
2015-03-16 14:44:37 +01:00
|
|
|
Source2: %{name}.keyring
|
2018-07-17 10:08:10 +02:00
|
|
|
Source3: libevent-rpmlintrc
|
2017-10-02 10:38:41 +02:00
|
|
|
Source99: baselibs.conf
|
2018-07-17 10:08:10 +02:00
|
|
|
Patch0: python2-shebang.patch
|
2017-02-21 19:41:03 +01:00
|
|
|
BuildRequires: autoconf
|
2017-02-21 19:43:08 +01:00
|
|
|
BuildRequires: automake
|
2017-02-21 19:41:03 +01:00
|
|
|
BuildRequires: libtool
|
2012-07-31 08:12:09 +02:00
|
|
|
BuildRequires: openssl-devel
|
2017-02-21 19:41:03 +01:00
|
|
|
%if 0%{?fedora_version} || 0%{?rhel_version}
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%else
|
2013-06-29 15:07:21 +02:00
|
|
|
BuildRequires: pkg-config
|
2017-02-21 19:41:03 +01:00
|
|
|
%endif
|
2012-07-31 08:12:09 +02:00
|
|
|
BuildRequires: zlib-devel
|
2017-02-21 19:41:03 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): %insserv_prereq
|
|
|
|
%endif
|
2010-09-24 00:24:42 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:21:45 +01:00
|
|
|
|
|
|
|
%description
|
2013-06-29 15:07:21 +02:00
|
|
|
The libevent API provides a mechanism to execute a callback function
|
|
|
|
when a specific event occurs on a file descriptor or after a timeout
|
|
|
|
has been reached. Furthermore, libevent also support callbacks due to
|
|
|
|
signals or regular timeouts.
|
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%package -n %{libsoname}
|
2013-06-29 15:07:21 +02:00
|
|
|
Summary: An event notification library
|
|
|
|
Group: System/Libraries
|
2010-09-24 00:24:42 +02:00
|
|
|
Provides: %{name} = %{version}
|
2011-08-04 05:17:51 +02:00
|
|
|
Obsoletes: %{name} < %{version}
|
2008-09-24 00:19:19 +02:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%description -n %{libsoname}
|
2013-06-29 15:07:21 +02:00
|
|
|
The libevent API provides a mechanism to execute a callback function
|
|
|
|
when a specific event occurs on a file descriptor or after a timeout
|
|
|
|
has been reached. Furthermore, libevent also support callbacks due to
|
|
|
|
signals or regular timeouts.
|
|
|
|
|
|
|
|
Currently, libevent supports /dev/poll, kqueue(2), event ports,
|
|
|
|
POSIX select(2), Windows select(), poll(2), and epoll(4).
|
|
|
|
|
|
|
|
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
|
|
|
|
framework.
|
2008-09-24 00:19:19 +02:00
|
|
|
|
|
|
|
This package holds the shared libraries for libevent.
|
|
|
|
|
|
|
|
%package devel
|
2011-03-24 16:39:34 +01:00
|
|
|
Summary: Development files for libevent2
|
2008-09-24 00:19:19 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-04 05:17:51 +02:00
|
|
|
Requires: %{libsoname} = %{version}
|
2010-09-24 00:24:42 +02:00
|
|
|
Requires: glibc-devel
|
2011-03-24 16:39:34 +01:00
|
|
|
# Both have /usr/include/event.h
|
2008-09-24 00:19:19 +02:00
|
|
|
Conflicts: libev-devel
|
2015-03-16 14:44:37 +01:00
|
|
|
Provides: %{name}:%{_includedir}/event.h
|
2008-09-24 00:19:19 +02:00
|
|
|
|
|
|
|
%description devel
|
2013-06-29 15:07:21 +02:00
|
|
|
The libevent API provides a mechanism to execute a callback function
|
|
|
|
when a specific event occurs on a file descriptor or after a timeout
|
|
|
|
has been reached. Furthermore, libevent also support callbacks due to
|
|
|
|
signals or regular timeouts.
|
|
|
|
|
2011-03-24 16:39:34 +01:00
|
|
|
This package holds the development files for libevent2.
|
2007-01-16 00:21:45 +01:00
|
|
|
|
2018-07-17 10:08:10 +02:00
|
|
|
%package devel-static
|
|
|
|
Summary: Static libraries for libevent2
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
|
|
|
|
%description devel-static
|
|
|
|
The libevent API provides a mechanism to execute a callback function
|
|
|
|
when a specific event occurs on a file descriptor or after a timeout
|
|
|
|
has been reached. Furthermore, libevent also support callbacks due to
|
|
|
|
signals or regular timeouts.
|
|
|
|
|
|
|
|
This package holds the static libraries for libevent2.
|
|
|
|
|
2007-01-16 00:21:45 +01:00
|
|
|
%prep
|
2017-02-21 19:41:03 +01:00
|
|
|
%setup -q -n %{name}-%{version}-%{version_suffix}
|
2018-07-17 10:08:10 +02:00
|
|
|
%patch0 -p1
|
2007-01-16 00:21:45 +01:00
|
|
|
|
|
|
|
%build
|
2017-02-21 19:41:03 +01:00
|
|
|
./autogen.sh
|
2015-03-16 14:44:37 +01:00
|
|
|
%configure \
|
|
|
|
--disable-libevent-regress
|
2013-06-29 15:07:21 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:21:45 +01:00
|
|
|
|
2015-03-16 14:44:37 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2007-01-16 00:21:45 +01:00
|
|
|
%install
|
2015-03-16 14:44:37 +01:00
|
|
|
%make_install %{?_smp_mflags}
|
|
|
|
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
|
2007-01-16 00:21:45 +01:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
2012-02-01 02:15:22 +01:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
2007-12-31 22:26:53 +01:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%files -n %{libsoname}
|
2008-09-24 00:19:19 +02:00
|
|
|
%defattr(-,root,root,-)
|
2018-07-17 10:08:10 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc ChangeLog whatsnew-2.0.txt whatsnew-2.1.txt
|
2017-02-21 19:41:03 +01:00
|
|
|
%{_libdir}/%{name}-%{version_base}.%{version_minor}.so.%{abi_release}*
|
|
|
|
%{_libdir}/%{name}_core-%{version_base}.%{version_minor}.so.%{abi_release}*
|
|
|
|
%{_libdir}/%{name}_extra-%{version_base}.%{version_minor}.so.%{abi_release}*
|
|
|
|
%{_libdir}/%{name}_pthreads-%{version_base}.%{version_minor}.so.%{abi_release}*
|
|
|
|
%{_libdir}/%{name}_openssl-%{version_base}.%{version_minor}.so.%{abi_release}*
|
2007-12-31 22:26:53 +01:00
|
|
|
|
2008-09-24 00:19:19 +02:00
|
|
|
%files devel
|
2007-01-16 00:21:45 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/event_rpcgen.py
|
2013-06-29 15:07:21 +02:00
|
|
|
%{_includedir}/evdns.h
|
|
|
|
%{_includedir}/event.h
|
|
|
|
%{_includedir}/evhttp.h
|
|
|
|
%{_includedir}/evrpc.h
|
|
|
|
%{_includedir}/evutil.h
|
2011-03-24 16:39:34 +01:00
|
|
|
%{_includedir}/event2
|
2011-08-04 05:17:51 +02:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/%{name}_core.so
|
|
|
|
%{_libdir}/%{name}_extra.so
|
|
|
|
%{_libdir}/%{name}_pthreads.so
|
2012-07-31 08:12:09 +02:00
|
|
|
%{_libdir}/%{name}_openssl.so
|
2011-08-04 05:17:51 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_libdir}/pkgconfig/%{name}_pthreads.pc
|
2012-07-31 08:12:09 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}_openssl.pc
|
2017-02-21 19:41:03 +01:00
|
|
|
%{_libdir}/pkgconfig/%{name}_core.pc
|
|
|
|
%{_libdir}/pkgconfig/%{name}_extra.pc
|
2007-01-16 00:21:45 +01:00
|
|
|
|
2018-07-17 10:08:10 +02:00
|
|
|
%files devel-static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/%{name}.a
|
|
|
|
%{_libdir}/%{name}_core.a
|
|
|
|
%{_libdir}/%{name}_extra.a
|
|
|
|
%{_libdir}/%{name}_openssl.a
|
|
|
|
%{_libdir}/%{name}_pthreads.a
|
|
|
|
|
2007-02-25 23:27:17 +01:00
|
|
|
%changelog
|