573625
%global develdocdir %{_docdir}/%{name}-devel
573625
573625
Name:           libevent
573625
Version:        2.1.12
573625
Release:        6%{?dist}
573625
Summary:        Abstract asynchronous event notification library
573625
573625
# arc4random.c, which is used in build, is ISC. The rest is BSD.
573625
License:        BSD and ISC
573625
URL:            http://libevent.org/
573625
Source0:        https://github.com/libevent/libevent/releases/download/release-%{version}-stable/libevent-%{version}-stable.tar.gz
573625
573625
BuildRequires: make
573625
BuildRequires:  gcc
573625
# Needed for ./autogen.sh:
573625
BuildRequires:  automake libtool
573625
%if ! 0%{?_module_build}
573625
BuildRequires: doxygen
573625
%endif
573625
BuildRequires: openssl-devel
573625
BuildRequires: python3-devel
573625
573625
# Disable network tests
573625
Patch01: libevent-nonettests.patch
573625
# Upstream patch:
573625
Patch02: 0001-build-do-not-try-install-doxygen-man-pages-if-they-w.patch
573625
# Upstream patch:
573625
Patch03: 0001-build-add-doxygen-to-all.patch
573625
# Temporary downstream change: revert a problematic upstream change
573625
# until Transmission is fixed. Please drop the patch when the Transmission
573625
# issue is fixed.
573625
# https://github.com/transmission/transmission/issues/1437
573625
Patch04: 0001-Revert-Fix-checking-return-value-of-the-evdns_base_r.patch
573625
573625
%description
573625
The libevent API provides a mechanism to execute a callback function
573625
when a specific event occurs on a file descriptor or after a timeout
573625
has been reached. libevent is meant to replace the asynchronous event
573625
loop found in event driven network servers. An application just needs
573625
to call event_dispatch() and can then add or remove events dynamically
573625
without having to change the event loop.
573625
573625
%package devel
573625
Summary: Development files for %{name}
573625
License: BSD
573625
Requires: %{name}%{?_isa} = %{version}-%{release}
573625
573625
%description devel
573625
This package contains the header files and libraries for developing
573625
with %{name}.
573625
573625
%package doc
573625
Summary: Development documentation for %{name}
573625
# The files sample/openssl_hostname_validation.{c,h} and sample/hostcheck.{c,h}
573625
# are MIT. The rest is BSD.
573625
License: BSD and MIT
573625
BuildArch: noarch
573625
573625
%description doc
573625
This package contains the development documentation for %{name}.
573625
573625
%prep
573625
%setup -q -n libevent-%{version}-stable
573625
%patch01 -p1 -b .nonettests
573625
%patch02 -p1 -b .fix-install
573625
%patch03 -p1 -b .fix-install-2
573625
%patch04 -p1 -b .revert-problematic-change
573625
573625
pathfix.py -i %{__python3} -pn test/check-dumpevents.py \
573625
                               event_rpcgen.py
573625
573625
%build
573625
# We're patching doxygen.am, so regenerate the autotools stuff to be
573625
# safe
573625
./autogen.sh
573625
%configure \
573625
%if ! 0%{?_module_build}
573625
    --enable-doxygen-doc \
573625
%endif
573625
    --disable-dependency-tracking --disable-static
573625
%make_build all
573625
573625
%install
573625
%make_install
573625
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
573625
573625
# Maintain the Fedora-specific location of libevent documentation, at
573625
# least for now
573625
mv $RPM_BUILD_ROOT/%{_docdir}/%{name} $RPM_BUILD_ROOT/%{develdocdir}
573625
573625
# Fix multilib install of devel (bug #477685)
573625
mv $RPM_BUILD_ROOT%{_includedir}/event2/event-config.h \
573625
   $RPM_BUILD_ROOT%{_includedir}/event2/event-config-%{__isa_bits}.h
573625
cat > $RPM_BUILD_ROOT%{_includedir}/event2/event-config.h << EOF
573625
#include <bits/wordsize.h>
573625
573625
#if __WORDSIZE == 32
573625
#include <event2/event-config-32.h>
573625
#elif __WORDSIZE == 64
573625
#include <event2/event-config-64.h>
573625
#else
573625
#error "Unknown word size"
573625
#endif
573625
EOF
573625
573625
mkdir -p $RPM_BUILD_ROOT/%{develdocdir}/sample
573625
(cd sample; \
573625
	install -p -m 644 *.c *.am $RPM_BUILD_ROOT/%{develdocdir}/sample)
573625
573625
%check
573625
# Tests fail due to nameserver not running locally
573625
# [msg] Nameserver 127.0.0.1:38762 has failed: request timed out.
573625
# On some architects this error is ignored on others it is not.
573625
#make check
573625
573625
%ldconfig_scriptlets
573625
573625
%files
573625
%license LICENSE
573625
%doc ChangeLog
573625
%{_libdir}/libevent-2.1.so.*
573625
%{_libdir}/libevent_core-2.1.so.*
573625
%{_libdir}/libevent_extra-2.1.so.*
573625
%{_libdir}/libevent_openssl-2.1.so.*
573625
%{_libdir}/libevent_pthreads-2.1.so.*
573625
573625
%files devel
573625
%{_includedir}/event.h
573625
%{_includedir}/evdns.h
573625
%{_includedir}/evhttp.h
573625
%{_includedir}/evrpc.h
573625
%{_includedir}/evutil.h
573625
%dir %{_includedir}/event2
573625
%{_includedir}/event2/*.h
573625
%{_libdir}/libevent.so
573625
%{_libdir}/libevent_core.so
573625
%{_libdir}/libevent_extra.so
573625
%{_libdir}/libevent_openssl.so
573625
%{_libdir}/libevent_pthreads.so
573625
%{_libdir}/pkgconfig/libevent.pc
573625
%{_libdir}/pkgconfig/libevent_core.pc
573625
%{_libdir}/pkgconfig/libevent_extra.pc
573625
%{_libdir}/pkgconfig/libevent_openssl.pc
573625
%{_libdir}/pkgconfig/libevent_pthreads.pc
573625
%{_bindir}/event_rpcgen.*
573625
573625
%files doc
573625
%doc %{develdocdir}/
573625
573625
%changelog
573625
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.12-6
573625
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
573625
  Related: rhbz#1991688
573625
573625
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.12-5
573625
- Rebuilt for RHEL 9 BETA for openssl 3.0
573625
  Related: rhbz#1971065
573625
573625
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1.12-4
573625
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
573625
573625
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.12-3
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
573625
573625
* Tue Sep 29 2020 Ondřej Lysoněk <olysonek@redhat.com> - 2.1.12-2
573625
- Temporarily revert a problematic upstream change
573625
573625
* Mon Sep 14 2020 Ondřej Lysoněk <olysonek@redhat.com> - 2.1.12-1
573625
- new version
573625
- Resolves: rhbz#1713942
573625
573625
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-10
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
573625
573625
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 2.1.8-9
573625
- Use make macros
573625
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
573625
573625
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-8
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
573625
573625
* Thu Aug 15 2019 Ondřej Lysoněk <olysonek@redhat.com> - 2.1.8-7
573625
- Port python scripts to Python 3
573625
- Resolves: rhbz#1738022
573625
- Resolves: rhbz#1655232
573625
573625
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-6
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
573625
573625
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-5
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
573625
573625
* Mon Sep 03 2018 Ondřej Lysoněk <olysonek@redhat.com> - 2.1.8-4
573625
- Corrected the License tag
573625
- Resolves: rhbz#1624851
573625
573625
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.8-3
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
573625
573625
* Thu Feb 15 2018 Steve Dickson <steved@redhat.com> - 2.1.8-2
573625
- Explicitly express SONAME in the %%file section
573625
573625
* Thu Feb 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.8-1
573625
- Fix ownership of pkg-config files
573625
- Remove unneeded Group tag
573625
573625
* Wed Feb 14 2018 Steve Dickson <steved@redhat.com> - 2.1.8-0
573625
- Updated to the latest upstream release 2.1.8 (bz 1418488)
573625
573625
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.22-8
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
573625
573625
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.22-7
573625
- Switch to %%ldconfig_scriptlets
573625
573625
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.22-6
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
573625
573625
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.22-5
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
573625
573625
* Wed Apr 12 2017 Nils Philippsen <nils@redhat.com> - 2.0.22-4
573625
- don't build doxygen documentation during modular build
573625
573625
* Mon Mar 27 2017 Tomáš Mráz <tmraz@redhat.com> - 2.0.22-3
573625
- Make it build with OpenSSL-1.1.0, cherry-picked from upstream git
573625
573625
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.22-2
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
573625
573625
* Fri Jun 24 2016 Orion Poplawski <orion@cora.nwra.com> - 2.0.22-1
573625
- Update to 2.0.22
573625
- Spec cleanup, new URL
573625
- Support multilib devel (bug #477685)
573625
573625
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.21-8
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
573625
573625
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.21-7
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
573625
573625
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.21-6
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
573625
573625
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.21-5
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
573625
573625
* Sat Dec 21 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.21-4
573625
- Fix -doc package for F20 UnversionedDocDirs (#993956)
573625
- Add missing directory /usr/include/event2
573625
- Fix directory ownership in -doc package
573625
- Correct summary and description of -devel and -doc packages
573625
- Set -doc package Group tag to "Documentation"
573625
- Add %%?_isa to -devel package base dependency
573625
- Remove %%defattr
573625
573625
* Wed Aug 21 2013 Steve Dickson <steved@redhat.com> 2.0.21-3
573625
- Removed rpmlint warnings
573625
573625
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.21-2
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
573625
573625
* Thu May  2 2013 Orion Poplawski <orion@cora.nwra.com> - 2.0.21-1
573625
- Update to 2.0.21
573625
- Add %%check
573625
573625
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.18-3
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
573625
573625
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.18-2
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
573625
573625
* Wed Apr  4 2012 Steve Dickson <steved@redhat.com> 2.0.18-1
573625
- Updated to latest stable upstream version: 2.0.18-stable
573625
- Moved documentation into its own rpm (bz 810138)
573625
573625
* Mon Mar 12 2012 Steve Dickson <steved@redhat.com> 2.0.17-1
573625
- Updated to latest stable upstream version: 2.0.17-stable
573625
573625
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.14-2
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
573625
573625
* Wed Aug 10 2011 Steve Dickson <steved@redhat.com> 2.0.14-1
573625
- Updated to latest stable upstream version: 2.0.14-stable (bz 727129)
573625
- Removed the installion of the outdate man pages and the latex raw docs.
573625
- Corrected where the other doc are installed.
573625
573625
* Wed Aug 10 2011 Steve Dickson <steved@redhat.com> 2.0.13-1
573625
- Updated to latest stable upstream version: 2.0.13-stable (bz 727129)
573625
573625
* Tue Aug  2 2011 Steve Dickson <steved@redhat.com> 2.0.12-1
573625
- Updated to latest stable upstream version: 2.0.12-stable
573625
573625
* Wed Feb 09 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 2.0.10-2
573625
- Fix build
573625
- Update spec to match current guidelines
573625
- drop no longer needed patch
573625
573625
* Tue Feb  8 2011 Steve Dickson <steved@redhat.com> 2.0.10-1
573625
- Updated to latest stable upstream version: 2.0.10-stable
573625
573625
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.14b-2
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
573625
573625
* Tue Jun 22 2010 Steve Dickson <steved@redhat.com> 1.4.14b-1
573625
- Updated to latest stable upstream version: 1.4.14b
573625
573625
* Fri May 21 2010 Tom "spot" Callaway <tcallawa@redhat.com> 1.4.13-2
573625
- disable static libs (bz 556067)
573625
573625
* Tue Dec 15 2009 Steve Dickson <steved@redhat.com> 1.4.13-1
573625
- Updated to latest stable upstream version: 1.4.13
573625
573625
* Tue Aug 18 2009 Steve Dickson <steved@redhat.com> 1.4.12-1
573625
- Updated to latest stable upstream version: 1.4.12
573625
- API documentation is now installed (bz 487977)
573625
- libevent-devel multilib conflict (bz 477685)
573625
- epoll backend allocates too much memory (bz 517918)
573625
573625
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.10-2
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
573625
573625
* Mon Apr 20 2009 Steve Dickson <steved@redhat.com> 1.4.10-1
573625
- Updated to latest stable upstream version: 1.4.10
573625
573625
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
573625
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
573625
573625
* Tue Jul  1 2008 Steve Dickson <steved@redhat.com> 1.4.5-1
573625
- Updated to latest stable upstream version 1.4.5-stable
573625
573625
* Mon Jun  2 2008 Steve Dickson <steved@redhat.com> 1.4.4-1
573625
- Updated to latest stable upstream version 1.4.4-stable
573625
573625
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3e-2
573625
- Autorebuild for GCC 4.3
573625
573625
* Tue Jan 22 2008 Steve Dickson <steved@redhat.com> 1.3e-1
573625
- Updated to latest stable upstream version 1.3e
573625
573625
* Fri Mar  9 2007 Steve Dickson <steved@redhat.com> 1.3b-1
573625
- Updated to latest upstream version 1.3b
573625
- Incorporated Merge Review comments (bz 226002)
573625
- Increased the polling timeout (bz 204990)
573625
573625
* Tue Feb 20 2007 Steve Dickson <steved@redhat.com> 1.2a-1
573625
- Updated to latest upstream version 1.2a
573625
573625
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> 
573625
- rebuild
573625
573625
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1a-3.2
573625
- bump again for double-long bug on ppc(64)
573625
573625
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1a-3.1
573625
- rebuilt for new gcc4.1 snapshot and glibc changes
573625
573625
* Tue Jan 24 2006 Warren Togami <wtogami@redhat.com> - 1.1a-3
573625
- rebuild (#177697)
573625
573625
* Mon Jul 04 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1a-2
573625
- Removed unnecessary -r from rm
573625
573625
* Fri Jun 17 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1a-1
573625
- Upstream update
573625
573625
* Wed Jun 08 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1-2
573625
- Added some docs
573625
- Moved "make verify" into %%check
573625
573625
* Mon Jun 06 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1-1
573625
- Initial build for Fedora Extras, based on the package
573625
  by Dag Wieers