Blame SPECS/libevent.spec

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