From 81711d65b99ba7bc135faed6ba37ee497f08508cc9c311ea952914debe68c2bb Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 23 Sep 2008 22:19:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libevent?expand=0&rev=8 --- libevent-1.3e-rpmlintrc | 4 -- libevent.changes | 6 +++ libevent.spec | 85 ++++++++++++++++++++++++++++++++++++----- 3 files changed, 81 insertions(+), 14 deletions(-) delete mode 100644 libevent-1.3e-rpmlintrc diff --git a/libevent-1.3e-rpmlintrc b/libevent-1.3e-rpmlintrc deleted file mode 100644 index f4b17c4..0000000 --- a/libevent-1.3e-rpmlintrc +++ /dev/null @@ -1,4 +0,0 @@ -#in the meanwhile.. -addFilter("devel-file-in-non-devel-package") -# libevent does not have proper SONAME in place.. -addFilter("shlib-policy-name-error") diff --git a/libevent.changes b/libevent.changes index 4b00cd5..76fad40 100644 --- a/libevent.changes +++ b/libevent.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 16 17:54:14 CEST 2008 - mrueckert@suse.de + +- split out devel and shared library package. +- drop static libs + ------------------------------------------------------------------- Thu Jul 3 11:57:22 CEST 2008 - meissner@suse.de diff --git a/libevent.spec b/libevent.spec index a8c5344..2f0076d 100644 --- a/libevent.spec +++ b/libevent.spec @@ -2,9 +2,16 @@ # spec file for package libevent (Version 1.4.5) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# 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/ # @@ -15,14 +22,13 @@ Name: libevent Url: http://monkey.org/~provos/libevent/ Summary: Library Providing an Event Handling API Version: 1.4.5 -Release: 1 +Release: 24 Group: Development/Libraries/C and C++ License: BSD 3-Clause BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %fillup_prereq %insserv_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: http://monkey.org/~provos/libevent-%{version}-stable.tar.bz2 -Source1: libevent-1.3e-rpmlintrc %description The libevent library provides a mechanism to execute a function when a @@ -31,6 +37,53 @@ passed. +Authors: +-------- + Nils Provos + +%define library_name libevent-1_4-2 +%define debug_package_requires %{library_name} = %{version}-%{release} + +%package -n libevent-1_4-2 +License: BSD 3-Clause +Group: Development/Libraries/C and C++ +Provides: %{name} = %{version}-%{release} +Obsoletes: %{name} <= %{version} +# +Summary: Shared libraries from libevent + +%description -n libevent-1_4-2 +The libevent library provides a mechanism to execute a function when a +specific event on a file descriptor occurs or after a given time has +passed. + +This package holds the shared libraries for libevent. + + + +Authors: +-------- + Nils Provos + +%package devel +License: BSD 3-Clause +Group: Development/Libraries/C and C++ +Requires: %{library_name} = %{version} +Provides: %{name}:/usr/include/event.h +# both have /usr/include/event.h +Conflicts: libev-devel +# +Summary: Development files for libevent + +%description devel +The libevent library provides a mechanism to execute a function when a +specific event on a file descriptor occurs or after a given time has +passed. + +This package holds the development files for libevent. + + + Authors: -------- Nils Provos @@ -40,27 +93,39 @@ Authors: %build autoreconf -i -f -%configure +%configure --disable-static make %install make DESTDIR=$RPM_BUILD_ROOT install +%{__rm} -v %{buildroot}%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%post -n %{library_name} -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n %{library_name} -p /sbin/ldconfig -%files +%files -n %{library_name} +%defattr(-,root,root,-) +%{_libdir}/libevent-1.4.so.2* +%{_libdir}/libevent_core-1.4.so.2* +%{_libdir}/libevent_extra-1.4.so.2* + +%files devel %defattr(-,root,root) -%{_libdir}/lib* %{_bindir}/event_rpcgen.py %{_includedir}/*.h -%{_mandir}/man?/* +%{_mandir}/man3/* +%{_libdir}/libevent.so +%{_libdir}/libevent_core.so +%{_libdir}/libevent_extra.so %changelog +* Tue Sep 16 2008 mrueckert@suse.de +- split out devel and shared library package. +- drop static libs * Thu Jul 03 2008 meissner@suse.de - upgraded to version 1.4.5-stable: o Fix connection keep-alive behavior for HTTP/1.0