File mingw64-libevent.spec of Package mingw64-libevent
#
# spec file for package mingw64-libevent
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define libsoname %{name}-2-0-5
Name: mingw64-libevent
Version: 2.0.21
Release: 0
Summary: An event notification library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://libevent.org/
Source0: https://github.com/downloads/libevent/libevent/libevent-%{version}-stable.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libopenssl-devel
BuildRequires: mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
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.
%package -n %{libsoname}
Summary: An event notification library
Group: System/Libraries
Obsoletes: mingw64-libevent-2_0-5
Provides: mingw64-libevent-2_0-5
%description -n %{libsoname}
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.
This package holds the shared libraries for libevent.
%package devel
Summary: Development files for mingw64-libevent2
Group: Development/Libraries/C and C++
%description devel
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.
This package holds the development files for libevent2.
%_mingw64_debug_package
%prep
%setup -q -n libevent-%{version}-stable
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--disable-static \
--enable-shared
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n %{libsoname}
%defattr(-,root,root,-)
%{_mingw64_bindir}/libevent*-2-0-5.dll
%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/event_rpcgen.py
%{_mingw64_includedir}/evdns.h
%{_mingw64_includedir}/event.h
%{_mingw64_includedir}/evhttp.h
%{_mingw64_includedir}/evrpc.h
%{_mingw64_includedir}/evutil.h
%{_mingw64_includedir}/event2
%{_mingw64_libdir}/libevent*.dll.a
%{_mingw64_libdir}/pkgconfig/libevent.pc
%{_mingw64_libdir}/pkgconfig/libevent_openssl.pc
%changelog