- Rename package to tevent and add an independent libtevent0 subpackage.

- Enhance and polish the package descriptions and summaries.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tevent?expand=0&rev=8
This commit is contained in:
Lars Müller
2012-06-02 15:48:07 +00:00
committed by Git OBS Bridge
parent dad2fb6535
commit bc37eb6120
2 changed files with 43 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jun 2 15:46:14 UTC 2012 - lmuelle@suse.com
- Rename package to tevent and add an independent libtevent0 subpackage.
- Enhance and polish the package descriptions and summaries.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 2 00:04:43 UTC 2012 - lmuelle@suse.com Sat Jun 2 00:04:43 UTC 2012 - lmuelle@suse.com

View File

@@ -1,5 +1,5 @@
# #
# spec file for package libtevent0 (Version 0.9.15) # spec file for package tevent (Version 0.9.15)
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@@ -22,7 +22,8 @@
%define talloc_version 2.0.7 %define talloc_version 2.0.7
Name: libtevent0
Name: tevent
BuildRequires: doxygen BuildRequires: doxygen
#!BuildIgnore: libtalloc #!BuildIgnore: libtalloc
BuildRequires: libtalloc-devel >= %{talloc_version} BuildRequires: libtalloc-devel >= %{talloc_version}
@@ -43,18 +44,36 @@ Group: System/Libraries
Url: http://tevent.samba.org/ Url: http://tevent.samba.org/
Version: 0.9.15 Version: 0.9.15
Release: 0 Release: 0
PreReq: /sbin/ldconfig Summary: An event system based on the talloc memory management library
Summary: Samba tevent Library
Source: http://download.samba.org/pub/tevent/tevent-%{version}.tar.gz Source: http://download.samba.org/pub/tevent/tevent-%{version}.tar.gz
Source4: baselibs.conf Source4: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Tevent is an event system based on the talloc memory management library. Tevent is an event system based on the talloc memory management library. It
Tevent has support for many event types, including timers, signals, and is the core event system used in Samba.
the classic file descriptor events.
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 also provide helpers to deal with asynchronous code providing the
tevent_req (Tevent Request) functions. tevent_req (tevent request) functions.
%package -n libtevent0
License: LGPL-3.0+
Group: System/Libraries
PreReq: /sbin/ldconfig
Summary: Samba tevent Library
%description -n libtevent0
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.
This package contains the tevent0 library.
%package -n libtevent-devel %package -n libtevent-devel
@@ -70,8 +89,8 @@ Requires: pkgconfig
%endif %endif
%description -n libtevent-devel %description -n libtevent-devel
Tevent is an event system based on the talloc memory management library. It is Tevent is an event system based on the talloc memory management library. It
the core event system used in Samba. is the core event system used in Samba.
The low level tevent has support for many event types, including timers, The low level tevent has support for many event types, including timers,
signals, and the classic file descriptor events. signals, and the classic file descriptor events.
@@ -79,15 +98,17 @@ signals, and the classic file descriptor events.
Tevent also provide helpers to deal with asynchronous code providing the Tevent also provide helpers to deal with asynchronous code providing the
tevent_req (tevent request) functions. tevent_req (tevent request) functions.
This package contains libraries and header files need for development.
%package -n python-tevent %package -n python-tevent
License: LGPL-3.0+ License: LGPL-3.0+
Summary: Python bindings for the Tevent library Summary: Python bindings for the Tevent library
Group: Development/Libraries Group: Development/Libraries/Python
Requires: libtevent0 = %{version} Requires: libtevent0 = %{version}
%description -n python-tevent %description -n python-tevent
Python bindings for libtevent This package contains the python bindings for the Tevent library.
%prep %prep
%setup -n tevent-%{version} -q %setup -n tevent-%{version} -q
@@ -119,15 +140,15 @@ DESTDIR=${RPM_BUILD_ROOT} make install
# include them in debuginfo # include them in debuginfo
find ${RPM_BUILD_ROOT} -name "*.so*" -exec chmod -c +x {} \; find ${RPM_BUILD_ROOT} -name "*.so*" -exec chmod -c +x {} \;
%post -p /sbin/ldconfig %post -n libtevent0 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n libtevent0 -p /sbin/ldconfig
%post -n python-tevent -p /sbin/ldconfig %post -n python-tevent -p /sbin/ldconfig
%postun -n python-tevent -p /sbin/ldconfig %postun -n python-tevent -p /sbin/ldconfig
%files %files -n libtevent0
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libtevent.so.* %{_libdir}/libtevent.so.*
@@ -139,7 +160,7 @@ find ${RPM_BUILD_ROOT} -name "*.so*" -exec chmod -c +x {} \;
%files -n python-tevent %files -n python-tevent
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitelib}/tevent.py* %attr(0755,root,root) %{python_sitelib}/tevent.py*
%{python_sitearch}/_tevent.so %{python_sitearch}/_tevent.so
%changelog %changelog