dstathis / rpms / libtevent

Forked from rpms/libtevent 5 years ago
Clone
ac75306
Name: libtevent
ac75306
Version: 0.9.8
02ce940
Release: 5%{?dist}
ac75306
Group: System Environment/Daemons
ac75306
Summary: The tevent library
ac75306
License: LGPLv3+
ac75306
URL: http://tevent.samba.org/
ac75306
Source: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
ac75306
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
ac75306
7bf54be
Patch1: tevent-098-add_abi_scripts_and_fix_exports.patch
7bf54be
Patch2: tevent-098-abi-compat.patch
02ce940
Patch3: tevent_signal_segfault.patch
7bf54be
ac75306
BuildRequires: libtalloc-devel >= 2.0.0
ac75306
ac75306
%description
ac75306
Tevent is an event system based on the talloc memory management library.
ac75306
Tevent has support for many event types, including timers, signals, and
ac75306
the classic file descriptor events.
ac75306
Tevent also provide helpers to deal with asynchronous code providing the
ac75306
tevent_req (Tevent Request) functions. 
ac75306
ac75306
%package devel
ac75306
Group: Development/Libraries
ac75306
Summary: Developer tools for the Tevent library
ac75306
Requires: libtevent = %{version}-%{release}
ac75306
Requires: libtalloc-devel >= 2.0.0
ac75306
Requires: pkgconfig
ac75306
ac75306
%description devel
ac75306
Header files needed to develop programs that link against the Tevent library.
ac75306
ac75306
%prep
ac75306
%setup -q -n tevent-%{version}
ac75306
7bf54be
%patch1 -p1 -b .abi_checks
7bf54be
%patch2 -p1 -b .abi_compat
d63a939
%patch3 -p1 -b .tevent_signal_segv
7bf54be
ac75306
%build
ac75306
%configure
ac75306
make %{?_smp_mflags}
ac75306
ac75306
%install
ac75306
rm -rf $RPM_BUILD_ROOT
ac75306
ac75306
make install DESTDIR=$RPM_BUILD_ROOT
ac75306
ac75306
ln -s libtevent.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtevent.so.0
ac75306
ln -s libtevent.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtevent.so
ac75306
ac75306
rm -f $RPM_BUILD_ROOT%{_libdir}/libtevent.a
ac75306
ac75306
%clean
ac75306
rm -rf $RPM_BUILD_ROOT
ac75306
ac75306
%files
ac75306
%defattr(-,root,root,-)
ac75306
%{_libdir}/libtevent.so.*
ac75306
ac75306
%files devel
ac75306
%defattr(-,root,root,-)
ac75306
%{_includedir}/tevent.h
ac75306
%{_libdir}/libtevent.so
ac75306
%{_libdir}/pkgconfig/tevent.pc
ac75306
ac75306
%post -p /sbin/ldconfig
ac75306
ac75306
%postun -p /sbin/ldconfig
ac75306
ac75306
%changelog
02ce940
* Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5
d63a939
- Add patch to fix a segfault case
d63a939
7bf54be
* Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2
7bf54be
- Fix abi compatibility with 0.9.3
7bf54be
ac75306
* Sat Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1
ac75306
- First independent release for tevent 0.9.8