--- /dev/null
+Summary: Coronet
+Name: coronet
+Version: 0.23
+Release: 0.1
+License: LGPL
+Group: Libraries
+Source0: http://www.xmailserver.org/%{name}-%{version}.tar.gz
+# Source0-md5: 30637e028bd95d1e54774b5d07ab44b4
+URL: http://www.xmailserver.org/coronet-lib.html
+BuildRequires: libpcl-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The coronet library implements an epoll and coroutine based library
+that allows for async operations over certain kinds of files. Any file
+that supports poll(2) and the O_NONBLOCK fcntl(2) flag can be hosted;
+this includes like sockets and pipes.
+
+The coronet library uses the epoll support available in the 2.6 series
+of Linux kernels, and the libpcl library for coroutine support.
+
+%package devel
+Summary: Header files for coronet library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This is the package containing the header files for coronet library.
+
+%package static
+Summary: Static coronet library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static coronet library.
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS
+%attr(755,root,root) %{_libdir}/libcoronet.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libcoronet.so
+%{_libdir}/libcoronet.la
+%{_includedir}/coronet.h
+%{_mandir}/man3/coronet.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcoronet.a