2012-05-25 11:00:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package libtevent0 (Version 0.9.15)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2012-05-31 23:34:50 +02:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
2012-06-02 02:08:16 +02:00
|
|
|
%define talloc_version 2.0.7
|
|
|
|
|
2012-05-25 11:00:22 +02:00
|
|
|
Name: libtevent0
|
|
|
|
BuildRequires: doxygen
|
2012-06-01 17:42:13 +02:00
|
|
|
#!BuildIgnore: libtalloc
|
2012-06-02 02:08:16 +02:00
|
|
|
BuildRequires: libtalloc-devel >= %{talloc_version}
|
2012-05-25 11:00:22 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%endif
|
|
|
|
BuildRequires: python-devel
|
2012-06-02 02:08:16 +02:00
|
|
|
BuildRequires: pytalloc-devel >= %{talloc_version}
|
2012-05-25 11:00:22 +02:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
|
|
|
%define build_make_smp_mflags %{?_smp_mflags}
|
|
|
|
%else
|
|
|
|
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
|
|
|
%endif
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://tevent.samba.org/
|
|
|
|
Version: 0.9.15
|
|
|
|
Release: 0
|
|
|
|
PreReq: /sbin/ldconfig
|
|
|
|
Summary: Samba tevent Library
|
|
|
|
Source: http://download.samba.org/pub/tevent/tevent-%{version}.tar.gz
|
|
|
|
Source4: baselibs.conf
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tevent is an event system based on the talloc memory management library.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2012-05-31 14:05:52 +02:00
|
|
|
%package -n libtevent-devel
|
2012-05-25 11:00:22 +02:00
|
|
|
License: LGPL-3.0+
|
|
|
|
Summary: Libraries and Header Files to Develop Programs with tevent0 Support
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libtevent0 = %{version}
|
2012-06-02 02:08:16 +02:00
|
|
|
Requires: libtalloc-devel >= %{talloc_version}
|
2012-05-25 11:00:22 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
Requires: pkg-config
|
|
|
|
%else
|
|
|
|
Requires: pkgconfig
|
|
|
|
%endif
|
|
|
|
|
2012-05-31 14:05:52 +02:00
|
|
|
%description -n libtevent-devel
|
2012-05-25 11:00:22 +02:00
|
|
|
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 python-tevent
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Summary: Python bindings for the Tevent library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libtevent0 = %{version}
|
|
|
|
|
|
|
|
%description -n python-tevent
|
|
|
|
Python bindings for libtevent
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n tevent-%{version} -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 911
|
|
|
|
OPTIMIZATION="-O"
|
|
|
|
%else
|
|
|
|
# use the default optimization
|
|
|
|
unset OPTIMIZATION
|
|
|
|
%endif
|
|
|
|
export CFLAGS="${RPM_OPT_FLAGS} -D_GNU_SOURCE ${OPTIMIZATION} -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
|
|
|
|
CONFIGURE_OPTIONS="\
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--bundled-libraries=NONE \
|
|
|
|
--builtin-libraries=replace \
|
|
|
|
"
|
|
|
|
./configure ${CONFIGURE_OPTIONS}
|
|
|
|
%{__make} %{build_make_smp_mflags} \
|
|
|
|
all
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
DESTDIR=${RPM_BUILD_ROOT} make install
|
|
|
|
# Shared libraries need to be marked executable for rpmbuild to strip them and
|
|
|
|
# include them in debuginfo
|
|
|
|
find ${RPM_BUILD_ROOT} -name "*.so*" -exec chmod -c +x {} \;
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n python-tevent -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n python-tevent -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libtevent.so.*
|
|
|
|
|
2012-05-31 14:05:52 +02:00
|
|
|
%files -n libtevent-devel
|
2012-05-25 11:00:22 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/tevent.h
|
|
|
|
%{_libdir}/libtevent.so
|
|
|
|
%{_libdir}/pkgconfig/tevent.pc
|
|
|
|
|
|
|
|
%files -n python-tevent
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitelib}/tevent.py*
|
|
|
|
%{python_sitearch}/_tevent.so
|
|
|
|
|
|
|
|
%changelog
|