From a823a181e2a8aa32a87271d509403d23d2079e06b1dd4542788f8a618cbbc6a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= Date: Fri, 25 May 2012 09:00:22 +0000 Subject: [PATCH] osc copypac from project:network:samba:STABLE package:libtevent0 revision:8 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tevent?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + baselibs.conf | 1 + libtevent0.changes | 33 ++++++++++ libtevent0.spec | 140 +++++++++++++++++++++++++++++++++++++++++++ tevent-0.9.15.tar.gz | 3 + 6 files changed, 201 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 libtevent0.changes create mode 100644 libtevent0.spec create mode 100644 tevent-0.9.15.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..682fc72 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libtevent0 diff --git a/libtevent0.changes b/libtevent0.changes new file mode 100644 index 0000000..ae822d6 --- /dev/null +++ b/libtevent0.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Fri May 25 08:10:05 UTC 2012 - lmuelle@suse.com + +- BuildRequire pkg-config. +- Move _tevent.so to the python-tevent package. + +------------------------------------------------------------------- +Wed May 16 13:28:23 UTC 2012 - lmuelle@suse.com + +- Cleanup BuildRequires and spec file in general. +- BuildRequire doxygen, libtalloc2-devel >= 2.0.7, python-devel, and + pytalloc-devel >= 2.0.7. +- Require libtalloc2-devel >= 2.0.7 and pkg-config from the devel package. +- Move python files to an independent python-tevent package. + +------------------------------------------------------------------- +Mon May 14 14:56:44 UTC 2012 - lmuelle@suse.com + +- Adjust licence. +- Require libtevent0 = %{version} from the devel package. +- Extend the description of the devel package. + +------------------------------------------------------------------- +Mon May 14 14:26:10 UTC 2012 - lmuelle@suse.com + +- BuildRequire libtalloc2-devel. +- Remove superfluous BuildRequires to talloc libraries. + +------------------------------------------------------------------- +Wed Sep 7 17:52:30 UTC 2011 - lars@samba.org + +- Initial independent libtevent0 package. + diff --git a/libtevent0.spec b/libtevent0.spec new file mode 100644 index 0000000..7f08c3c --- /dev/null +++ b/libtevent0.spec @@ -0,0 +1,140 @@ +# +# 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 + +Name: libtevent0 +BuildRequires: doxygen +BuildRequires: libtalloc2-devel >= 2.0.7 +%if 0%{?suse_version} > 1020 +BuildRequires: pkg-config +%else +BuildRequires: pkgconfig +%endif +BuildRequires: python-devel +BuildRequires: pytalloc-devel >= 2.0.7 +%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/ +AutoReqProv: on +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. + + +%package devel +License: LGPL-3.0+ +Summary: Libraries and Header Files to Develop Programs with tevent0 Support +Group: Development/Libraries/C and C++ +Requires: libtevent0 = %{version} +Requires: libtalloc2-devel >= 2.0.7 +%if 0%{?suse_version} > 1020 +Requires: pkg-config +%else +Requires: pkgconfig +%endif + +%description devel +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.* + +%files devel +%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 diff --git a/tevent-0.9.15.tar.gz b/tevent-0.9.15.tar.gz new file mode 100644 index 0000000..c00afeb --- /dev/null +++ b/tevent-0.9.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b32ad8b26a5fe2666992615858f9ebe38edac9c50fb2348288ab499d1f2c245 +size 484269