diff --git a/README.md b/README.md index da0832a..4826990 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # tevent +Tevent is an event system based on the talloc memory management library. It is the core event system used in Samba. +The low level tevent has support for many event types, including timers, signals, and the classic file descriptor events. +Tevent also provide helpers to deal with asynchronous code providing the tevent_req (tevent request) functions. + diff --git a/tevent.spec b/tevent.spec new file mode 100644 index 0000000..e7946a7 --- /dev/null +++ b/tevent.spec @@ -0,0 +1,81 @@ +Name: tevent +Epoch: 1 +Version: 0.9.22 +Release: 1mamba +Summary: An event system based on the talloc memory management library. +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://tevent.samba.org/ +Source: http://www.samba.org/ftp/tevent/tevent-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libattr-devel +BuildRequires: libbsd-devel +BuildRequires: libpython-devel +BuildRequires: libtalloc-devel +## AUTOBUILDREQ-END +BuildRequires: pytalloc-devel +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Tevent is an event system based on the talloc memory management library. It is the core event system used in Samba. +The low level tevent has support for many event types, including timers, signals, and the classic file descriptor events. +Tevent also provide helpers to deal with asynchronous code providing the tevent_req (tevent request) functions. + +%package -n lib%{name} +Group: System/Libraries +Summary: An event system based on the talloc memory management library. + +%description -n lib%{name} +Tevent is an event system based on the talloc memory management library. It is the core event system used in Samba. +The low level tevent has support for many event types, including timers, signals, and the classic file descriptor events. +Tevent also provide helpers to deal with asynchronous code providing the tevent_req (tevent request) functions. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libtevent.so.* +%{python27_sitearch}/_tevent.so +%{python27_sitearch}/tevent.py + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/tevent.h +%{_libdir}/libtevent.so +%{_libdir}/pkgconfig/tevent.pc + +%changelog +* Mon Dec 08 2014 Silvan Calarco 0.9.22-1mamba +- package created using the webbuild interface