0d1099
%global source_dir  %{_datadir}/%{name}-source
0d1099
%global inst_srcdir %{buildroot}/%{source_dir}
0d1099
0d1099
Name: libev
0d1099
Summary: High-performance event loop/event model with lots of features
0d1099
Version: 4.15
0d1099
Release: 7%{?dist}
0d1099
License: BSD or GPLv2+
0d1099
URL: http://software.schmorp.de/pkg/libev.html
0d1099
Source0: http://dist.schmorp.de/libev/Attic/%{name}-%{version}.tar.gz
0d1099
BuildRequires: autoconf automake libtool
0d1099
Patch0: libev-4.15-Modernize-the-configure.ac.patch
0d1099
Patch1: libev-4.15-Respect-the-CFLAGS-if-defined.patch
0d1099
0d1099
%description
0d1099
Libev is modeled (very loosely) after libevent and the Event Perl
0d1099
module, but is faster, scales better and is more correct, and also more
0d1099
featureful. And also smaller.
0d1099
0d1099
%package devel
0d1099
Summary: Development headers for libev
0d1099
Requires: %{name}%{?_isa} = %{version}-%{release}
0d1099
0d1099
%description devel
0d1099
This package contains the development headers and libraries for libev.
0d1099
0d1099
%package libevent-devel
0d1099
Summary: Compatibility development header with libevent for %{name}.
0d1099
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
0d1099
0d1099
# The event.h file actually conflicts with the one from libevent-devel
0d1099
Conflicts: libevent-devel
0d1099
0d1099
%description libevent-devel
0d1099
This package contains a development header to make libev compatible with
0d1099
libevent.
0d1099
0d1099
%package source
0d1099
Summary: High-performance event loop/event model with lots of features
0d1099
%if 0%{?fedora} >= 12 || 0%{?rhel} > 5
0d1099
BuildArch: noarch
0d1099
%endif
0d1099
0d1099
%description source
0d1099
This package contains the source code for libev.
0d1099
0d1099
%prep
0d1099
%setup -q
0d1099
0d1099
%patch0 -p1
0d1099
%patch1 -p1
0d1099
0d1099
autoreconf -i
0d1099
0d1099
%build
0d1099
%configure --disable-static --with-pic
0d1099
make %{?_smp_mflags} CC="%{__cc} -fno-strict-aliasing"
0d1099
0d1099
%check
0d1099
make check
0d1099
0d1099
%install
0d1099
make install DESTDIR=%{buildroot} INSTALL="install -p"
0d1099
0d1099
rm -rf %{buildroot}%{_libdir}/%{name}.la
0d1099
0d1099
# Make the source package
0d1099
mkdir -p %{inst_srcdir}
0d1099
0d1099
find . -type f | grep -E '.*\.(c|h|am|ac|inc|m4|h.in|man.pre|pl|txt)$' | xargs tar cf - | (cd %{inst_srcdir} && tar xf -)
0d1099
install -p -m 0644 Changes ev.pod LICENSE README %{inst_srcdir}
0d1099
0d1099
%post -p /sbin/ldconfig
0d1099
%postun -p /sbin/ldconfig
0d1099
0d1099
%files
0d1099
%doc Changes LICENSE README
0d1099
%{_libdir}/%{name}.so.4
0d1099
%{_libdir}/%{name}.so.4.0.0
0d1099
0d1099
%files devel
0d1099
%{_includedir}/ev++.h
0d1099
%{_includedir}/ev.h
0d1099
%{_libdir}/%{name}.so
0d1099
%{_mandir}/man?/*
0d1099
0d1099
%files libevent-devel
0d1099
%{_includedir}/event.h
0d1099
0d1099
%files source
0d1099
%{source_dir}
0d1099
0d1099
%changelog
0d1099
* Tue Apr 18 2017 Josh Boyer <jwboyer@redhat.com> - 4.15-7
0d1099
- Bump and build for all architectures
0d1099
0d1099
* Tue Aug 18 2015 Lokesh Mandvekar <lsm5@redhat.com> - 4.15-6
0d1099
- update compiler flag to get rid of strict-aliasing warning
0d1099
0d1099
* Tue Aug 18 2015 Lokesh Mandvekar <lsm5@redhat.com> - 4.15-5
0d1099
- Resolves: rhbz#1254667 - increment release tag to ship devel
0d1099
0d1099
* Thu Apr 17 2014 Lokesh Mandvekar <lsm5@redhat.com> - 4.15-4
0d1099
- Rebuilt for RHEL-7
0d1099
0d1099
* Tue Nov 26 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 4.15-3
0d1099
- Get the package closer to what upstream intended:
0d1099
  - Do not move the headers into a subfolder of /usr/include
0d1099
  - Make a libev-libevent-devel subpackage to contain the libevent
0d1099
    compatibility header, so that only this subpackage conflicts with
0d1099
    libevent-devel, not all of libev-devel
0d1099
  - Drop the pkgconfig file, as upstream rejected it several times already.
0d1099
0d1099
* Sun Sep  8 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 4.15-2
0d1099
- Bump (koji was broken)
0d1099
0d1099
* Sun Sep  8 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 4.15-1
0d1099
- Update to 4.15 (rhbz 987489)
0d1099
- Fix dates in spec
0d1099
0d1099
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.11-3
0d1099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0d1099
0d1099
* Fri Feb 08 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 4.11-2
0d1099
- Make a patch out of Michal's pkgconfig support.
0d1099
- Modernize the configure.ac file for Automake >= 1.13.
0d1099
- Respect the Fedora CFLAGS
0d1099
  https://bugzilla.redhat.com/show_bug.cgi?id=908096
0d1099
0d1099
* Fri Sep 28 2012 Mathieu Bridon <bochecha@fedoraproject.org> - 4.11-1
0d1099
- Update to 4.11
0d1099
0d1099
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.04-3
0d1099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0d1099
0d1099
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.04-2
0d1099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0d1099
0d1099
* Tue Aug  9 2011 Tom Callaway <spot@fedoraproject.org> - 4.04-1
0d1099
- move man page
0d1099
- cleanup spec
0d1099
- update to 4.04
0d1099
0d1099
* Mon Jun 13 2011 Matěj Cepl <mcepl@redhat.com> - 4.03-2
0d1099
- EL5 cannot have noarch subpackages.
0d1099
0d1099
* Sat Feb  5 2011 Michal Nowak <mnowak@redhat.com> - 4.03-1
0d1099
- 4.03; RHBZ#674022
0d1099
- add a -source subpackage (Mathieu Bridon); RHBZ#672153
0d1099
0d1099
* Mon Jan 10 2011 Michal Nowak <mnowak@redhat.com> - 4.01-1
0d1099
- 4.01
0d1099
- fix grammar in %%description
0d1099
0d1099
* Sat Jan  2 2010 Michal Nowak <mnowak@redhat.com> - 3.90-1
0d1099
- 3.9
0d1099
0d1099
* Mon Aug 10 2009 Michal Nowak <mnowak@redhat.com> - 3.80-1
0d1099
- 3.8
0d1099
- always use the most recent automake
0d1099
- BuildRequires now libtool
0d1099
0d1099
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.70-3
0d1099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0d1099
0d1099
* Fri Jul 17 2009 Michal Nowak <mnowak@redhat.com> - 3.70-2
0d1099
- spec file change, which prevented uploading most recent tarball
0d1099
  so the RPM was "3.70" but tarball was from 3.60
0d1099
0d1099
* Fri Jul 17 2009 Michal Nowak <mnowak@redhat.com> - 3.70-1
0d1099
- v3.7
0d1099
- list libev soname explicitly
0d1099
0d1099
* Mon Jun 29 2009 Michal Nowak <mnowak@redhat.com> - 3.60-1
0d1099
- previous version was called "3.6" but this is broken update
0d1099
  path wrt version "3.53" -- thus bumping to "3.60"
0d1099
0d1099
* Thu Apr 30 2009 Michal Nowak <mnowak@redhat.com> - 3.6-1
0d1099
- 3.60
0d1099
- fixed few mixed-use-of-spaces-and-tabs warnings in spec file
0d1099
0d1099
* Thu Mar 19 2009 Michal Nowak <mnowak@redhat.com> - 3.53-1
0d1099
- 3.53
0d1099
0d1099
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.52-2
0d1099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0d1099
0d1099
* Wed Jan 07 2009 Michal Nowak <mnowak@redhat.com> - 3.52-1
0d1099
- 3.52
0d1099
0d1099
* Wed Dec 24 2008 Michal Nowak <mnowak@redhat.com> - 3.51-1
0d1099
- 3.51
0d1099
0d1099
* Thu Nov 20 2008 Michal Nowak <mnowak@redhat.com> - 3.49-1
0d1099
- version bump: 3.49
0d1099
0d1099
* Sun Nov  9 2008 Michal Nowak <mnowak@redhat.com> - 3.48-1
0d1099
- version bump: 3.48
0d1099
0d1099
* Mon Oct  6 2008 kwizart <kwizart at gmail.com> - 3.44-1
0d1099
- bump to 3.44
0d1099
0d1099
* Tue Sep  2 2008 kwizart <kwizart at gmail.com> - 3.43-4
0d1099
- Fix pkgconfig support
0d1099
0d1099
* Tue Aug 12 2008 Michal Nowak <mnowak@redhat.com> - 3.43-2
0d1099
- removed libev.a
0d1099
- installing with "-p"
0d1099
- event.h is removed intentionaly, because is there only for 
0d1099
  backward compatibility with libevent
0d1099
0d1099
* Mon Aug 04 2008 Michal Nowak <mnowak@redhat.com> - 3.43-1
0d1099
- initial package
0d1099