libevent/libevent.spec
OBS User autobuild 2a707298d2 Accepting request 23992 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/libevent based on submit request 23992 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/23992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libevent?expand=0&rev=11
2009-11-10 11:40:53 +00:00

125 lines
3.3 KiB
RPMSpec

#
# spec file for package libevent (Version 1.4.12)
#
# Copyright (c) 2009 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/
#
Name: libevent
Url: http://monkey.org/~provos/libevent/
Summary: Library Providing an Event Handling API
Version: 1.4.12
Release: 1
Group: Development/Libraries/C and C++
License: BSD 3-clause (or similar)
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
%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.
Authors:
--------
Nils Provos <provos@citi.umich.edu>
%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 (or similar)
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 <provos@citi.umich.edu>
%package devel
License: BSD 3-clause (or similar)
Group: Development/Libraries/C and C++
Requires: %{library_name} = %{version} glibc-devel
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 <provos@citi.umich.edu>
%prep
%setup -q -n %name-%version-stable
%build
autoreconf -i -f
%configure --disable-static
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -v %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%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)
%{_bindir}/event_rpcgen.py
%{_includedir}/*.h
%{_mandir}/man3/*
%{_libdir}/libevent.so
%{_libdir}/libevent_core.so
%{_libdir}/libevent_extra.so
%changelog