SPECS/libevent/libevent.spec
d18d8603
 Summary:	An Event notification library.
 Name:		libevent
 Version:	2.0.22
9c4dd492
 Release:	4%{?dist}
d18d8603
 License:	BSD
 URL:		http://libevent.org
 Source0:        https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/%{name}-%{version}-stable.tar.gz
 %define sha1 libevent=a586882bc93a208318c70fc7077ed8fca9862864
 Group:		System/Library
 Vendor:		VMware, Inc.
 Distribution:	Photon
 BuildRequires:  pkg-config
 BuildRequires:  openssl-devel
bc350956
 Requires:       openssl
d18d8603
 
 %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        devel
 Summary:        Development files for libevent
 Group:          Development/Libraries
 Requires:       %{name} = %{version}-%{release}
 
 %description    devel
 The subpackage includes all development related headers and library.
 
 %prep
 %setup -q -n %{name}-%{version}-stable
 
 %build
 %configure --disable-static --disable-libevent-regress
 make %{?_smp_mflags}
 
 %install
 %makeinstall
9c4dd492
 find %{buildroot} -name '*.la' -delete
d18d8603
 
 %post -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
9c4dd492
 %{_libdir}/*.so.*
d18d8603
 
 %files devel
 %defattr(-,root,root)
 %{_includedir}/*
 %{_bindir}/event_rpcgen.py
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/libevent.pc
 %{_libdir}/pkgconfig/libevent_pthreads.pc
 %{_libdir}/pkgconfig/libevent_openssl.pc
 
 %changelog
9c4dd492
 *	Tue Jul 26 2016 Divya Thaluru <dthaluru@vmware.com> 2.0.22-4
 -	Removed packaging of debug files
bc350956
 *	Wed Jul 13 2016 Alexey Makhalov <amakhalov@vmware.com> 2.0.22-3
 -	Added openssl runtime requirement
c3a3fd12
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.0.22-2
 -	GA - Bump release of all rpms
d18d8603
 *       Thu Apr 28 2016 Kumar Kaushik <kaushikk@vmware.com> 2.0.22-1
 -       Initial Version.