2007-01-16 00:21:45 +01:00
|
|
|
#
|
2011-03-24 16:39:43 +01:00
|
|
|
# spec file for package libevent
|
2007-01-16 00:21:45 +01:00
|
|
|
#
|
2012-02-01 02:15:22 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:45 +01:00
|
|
|
#
|
2008-09-24 00:19:19 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:21:45 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-01 02:15:22 +01:00
|
|
|
|
2007-01-16 00:21:45 +01:00
|
|
|
Name: libevent
|
2011-08-04 05:17:51 +02:00
|
|
|
%define libsoname %{name}-2_0-5
|
|
|
|
|
2012-07-31 08:12:09 +02:00
|
|
|
Version: 2.0.19
|
2012-02-01 02:15:22 +01:00
|
|
|
Release: 0
|
2010-09-24 00:24:42 +02:00
|
|
|
Summary: Library Providing an Event Handling API
|
2012-02-01 02:15:22 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-16 00:21:45 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-02-01 02:15:22 +01:00
|
|
|
Url: http://monkey.org/~provos/libevent/
|
2012-08-01 11:41:57 +02:00
|
|
|
Source0: http://cloud.github.com/downloads/libevent/libevent/%{name}-%{version}-stable.tar.gz
|
2011-08-04 05:17:51 +02:00
|
|
|
Source1: baselibs.conf
|
2012-07-31 08:12:09 +02:00
|
|
|
BuildRequires: openssl-devel
|
2012-02-11 02:58:04 +01:00
|
|
|
BuildRequires: pkgconfig
|
2012-07-31 08:12:09 +02:00
|
|
|
BuildRequires: zlib-devel
|
2010-09-24 00:24:42 +02:00
|
|
|
PreReq: %fillup_prereq
|
|
|
|
PreReq: %insserv_prereq
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:21:45 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
2008-09-24 00:19:19 +02:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%package -n %{libsoname}
|
2008-09-24 00:19:19 +02:00
|
|
|
Summary: Shared libraries from libevent
|
2010-09-24 00:24:42 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: %{name} = %{version}
|
2011-08-04 05:17:51 +02:00
|
|
|
Obsoletes: %{name} < %{version}
|
2008-09-24 00:19:19 +02:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%description -n %{libsoname}
|
2008-09-24 00:19:19 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
%package devel
|
2011-03-24 16:39:34 +01:00
|
|
|
Summary: Development files for libevent2
|
2008-09-24 00:19:19 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-04 05:17:51 +02:00
|
|
|
Requires: %{libsoname} = %{version}
|
2010-09-24 00:24:42 +02:00
|
|
|
Requires: glibc-devel
|
2008-09-24 00:19:19 +02:00
|
|
|
Provides: %{name}:/usr/include/event.h
|
2011-03-24 16:39:34 +01:00
|
|
|
# Both have /usr/include/event.h
|
2008-09-24 00:19:19 +02:00
|
|
|
Conflicts: libev-devel
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-03-24 16:39:34 +01:00
|
|
|
This package holds the development files for libevent2.
|
2007-01-16 00:21:45 +01:00
|
|
|
|
|
|
|
%prep
|
2011-03-24 16:39:34 +01:00
|
|
|
%setup -q -n %{name}-%{version}-stable
|
2007-01-16 00:21:45 +01:00
|
|
|
|
|
|
|
%build
|
2008-09-24 00:19:19 +02:00
|
|
|
%configure --disable-static
|
2011-03-24 16:39:34 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-01-16 00:21:45 +01:00
|
|
|
|
|
|
|
%install
|
2010-09-24 00:24:42 +02:00
|
|
|
%makeinstall
|
2011-03-24 16:39:34 +01:00
|
|
|
find %{buildroot}%{_libdir} -name "*.la" -delete -print
|
2007-01-16 00:21:45 +01:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
2012-02-01 02:15:22 +01:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
2007-12-31 22:26:53 +01:00
|
|
|
|
2011-08-04 05:17:51 +02:00
|
|
|
%files -n %{libsoname}
|
2008-09-24 00:19:19 +02:00
|
|
|
%defattr(-,root,root,-)
|
2011-08-04 05:17:51 +02:00
|
|
|
%{_libdir}/%{name}-2.0.so.5*
|
|
|
|
%{_libdir}/%{name}_core-2.0.so.5*
|
|
|
|
%{_libdir}/%{name}_extra-2.0.so.5*
|
|
|
|
%{_libdir}/%{name}_pthreads-2.0.so.5*
|
2012-07-31 08:12:09 +02:00
|
|
|
%{_libdir}/%{name}_openssl-2.0.so.5*
|
2007-12-31 22:26:53 +01:00
|
|
|
|
2008-09-24 00:19:19 +02:00
|
|
|
%files devel
|
2007-01-16 00:21:45 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/event_rpcgen.py
|
|
|
|
%{_includedir}/*.h
|
2011-03-24 16:39:34 +01:00
|
|
|
%{_includedir}/event2
|
2011-08-04 05:17:51 +02:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/%{name}_core.so
|
|
|
|
%{_libdir}/%{name}_extra.so
|
|
|
|
%{_libdir}/%{name}_pthreads.so
|
2012-07-31 08:12:09 +02:00
|
|
|
%{_libdir}/%{name}_openssl.so
|
2011-08-04 05:17:51 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_libdir}/pkgconfig/%{name}_pthreads.pc
|
2012-07-31 08:12:09 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}_openssl.pc
|
2007-01-16 00:21:45 +01:00
|
|
|
|
2007-02-25 23:27:17 +01:00
|
|
|
%changelog
|