Name: libkqueue
Summary: A user space implementation of the kqueue kernel event notification mechanism
Version: 2.0
Release: 1
# The entire source code is MIT, event.h which is BSD (2-clause)
License: MIT and BSD
Group: System Environment/Libraries
%description
A user space implementation of the kqueue(2) kernel event notification
mechanism. libkqueue acts as a translator between the kevent structure and the
native kernel facilities.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}-%{version}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}
%prep
%setup -q
%build
%{configure}
make
%install
make DESTDIR=%{buildroot} install
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libkqueue.so.*
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/kqueue
%dir %{_includedir}/kqueue/sys
%{_includedir}/kqueue/sys/event.h
%{_libdir}/libkqueue.so