Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d2cdb7717264c93f881904a5a313daf7 > files > 6

libevent-2.0.21-3.mga3.src.rpm

%define	major 5
%define libname	%mklibname event %{major}
%define develname %mklibname -d event

Summary:	Abstract asynchronous event notification library
Name:		libevent
Version:	2.0.21
Release:	%mkrel 3
Group:		System/Libraries
License:	BSD
URL:		http://www.monkey.org/~provos/libevent
Source0:	https://github.com/downloads/libevent/libevent/%{name}-%{version}-stable.tar.gz
Patch0:		libevent-version-info-only.diff
Patch1:		libevent-linkage_fix.diff
Patch2:		libevent-2.0.13-manpages-on.patch
Patch3:		libevent-2.0.21-stable-automake-fix.patch
BuildRequires:	autoconf
BuildRequires:	libtool
BuildRequires:	openssl-devel
BuildRequires:	doxygen

%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.
libevent is meant to replace the asynchronous event loop found in event driven
network servers. An application just needs to call event_dispatch() and can
then add or remove events dynamically without having to change the event loop.

%package -n	%{libname}
Summary:	Abstract asynchronous event notification library
Group:          System/Libraries

%description -n	%{libname}
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.
libevent is meant to replace the asynchronous event loop found in event driven
network servers. An application just needs to call event_dispatch() and can
then add or remove events dynamically without having to change the event loop.

%package -n	%{develname}
Summary:	Static library and header files for the libevent library
Group:		Development/C
Provides:	event-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{mklibname -d event 2}

%description -n	%{develname}
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.
libevent is meant to replace the asynchronous event loop found in event driven
network servers. An application just needs to call event_dispatch() and can
then add or remove events dynamically without having to change the event loop.

This package contains the static libevent library and its header files needed
to compile applications such as stegdetect, etc.

%prep
%setup -q -n %{name}-%{version}-stable
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
autoreconf -fi

export CFLAGS="%{optflags} -fPIC"
%configure2_5x --disable-static
%make

# provide man pages
make doxygen

#%%check
#pushd test
#    make verify
#popd

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.la

# don't enforce python deps here
rm -f %{buildroot}%{_bindir}/event_rpcgen.py

# provide man pages
install -d %{buildroot}%{_mandir}/man3
install -m0644 doxygen/man/man3/*.3 %{buildroot}%{_mandir}/man3/

%files -n %{libname}
%doc README event_rpcgen.py
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 2.0.21-3.mga3
+ Revision: 357066
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Dec 31 2012 guillomovitch <guillomovitch> 2.0.21-2.mga3
+ Revision: 336587
- fix build with automake 1.13, and fix virtual packages names

* Sat Nov 24 2012 luigiwalser <luigiwalser> 2.0.21-1.mga3
+ Revision: 321658
- 2.0.21

* Sun Aug 26 2012 fedya <fedya> 2.0.20-1.mga3
+ Revision: 284032
- version update 2.0.20

* Fri Jun 01 2012 dams <dams> 2.0.19-1.mga3
+ Revision: 252745
- new version 2.0.19

* Tue Mar 06 2012 luigiwalser <luigiwalser> 2.0.17-1.mga2
+ Revision: 219467
- 2.0.17

* Sun Jan 22 2012 fwang <fwang> 2.0.16-1.mga2
+ Revision: 199382
- new version 2.0.16

* Sun Nov 27 2011 tv <tv> 2.0.14-1.mga2
+ Revision: 172641
- new release
- patch 2: enable man pages
- new release

* Thu Jul 14 2011 fwang <fwang> 2.0.12-1.mga2
+ Revision: 123953
- new version 2.0.12

* Sat Jan 22 2011 ahmad <ahmad> 2.0.10-2.mga1
+ Revision: 31856
- drop old/unneeded scriptlets
- imported package libevent