1
0
mirror of https://github.com/coturn/coturn.git synced 2026-05-05 10:46:10 +02:00

libevent specs

This commit is contained in:
Oleg Moskalenko 2015-07-18 21:57:40 -07:00
parent 930cb3d566
commit 52f0cf0364
2 changed files with 114 additions and 0 deletions

Binary file not shown.

114
libevent.spec Normal file
View File

@ -0,0 +1,114 @@
Name: libevent
Version: 2.0.21
Release: 2%{dist}
Summary: Abstract asynchronous event notification library
Group: System Environment/Libraries
License: BSD
URL: http://libevent.org
Source0: https://github.com/downloads/%{name}/%{name}/%{name}-%{version}-stable.tar.gz
BuildRequires: gcc, make, redhat-rpm-config
BuildRequires: doxygen openssl-devel
%description
The libevent API provides a mechanism to execute a callback function
when a specific event occurs on a file descriptor or after a timeout
has been reached. libevent is meant to replace the asynchronous event
loop found in event driven network servers. An application just needs
to call event_dispatch() and can then add or remove events dynamically
without having to change the event loop.
%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
%package doc
Summary: Development documentation for %{name}
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
BuildArch: noarch
%description doc
This package contains the development documentation for %{name}.
If you like to develop programs using %{name}-devel, you will
need to install %{name}-doc.
%prep
%setup -q -n %{name}-%{version}-stable
%build
%configure \
--disable-dependency-tracking --disable-static
make %{?_smp_mflags} all
# Create the docs
make doxygen
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/html
(cd doxygen/html; \
install -p -m 644 *.* $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/html)
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/sample
(cd sample; \
install -p -m 644 *.c Makefile* $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/sample)
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,0755)
%doc README
%{_libdir}/libevent-*.so.*
%{_libdir}/libevent_core-*.so.*
%{_libdir}/libevent_extra-*.so.*
%{_libdir}/libevent_openssl-*.so.*
%{_libdir}/libevent_pthreads-*.so.*
%files devel
%defattr(-,root,root,0755)
%{_includedir}/event.h
%{_includedir}/evdns.h
%{_includedir}/evhttp.h
%{_includedir}/evrpc.h
%{_includedir}/evutil.h
%dir %{_includedir}/event2
%{_includedir}/event2/*.h
%{_libdir}/libevent.so
%{_libdir}/libevent_core.so
%{_libdir}/libevent_extra.so
%{_libdir}/libevent_openssl.so
%{_libdir}/libevent_pthreads.so
%{_libdir}/pkgconfig/libevent.pc
%{_libdir}/pkgconfig/libevent_openssl.pc
%{_libdir}/pkgconfig/libevent_pthreads.pc
%{_bindir}/event_rpcgen.*
%files doc
%defattr(-,root,root,0644)
%dir %{_docdir}/%{name}-devel-%{version}
%dir %{_docdir}/%{name}-devel-%{version}/html
%{_docdir}/%{name}-devel-%{version}/html/*
%dir %{_docdir}/%{name}-devel-%{version}/sample
%{_docdir}/%{name}-devel-%{version}/sample/*
%changelog
* Sat Nov 2 2013 Peter Dunkley <peter.dunkley@crocodilertc.net>
- Added %dir declarations to packages
* Tue Sep 11 2013 Peter Dunkley <peter.dunkley@crocodilertc.net>
- CentOS 6.x spec file (based on the Fedora .spec)