]> git.pld-linux.org Git - packages/libevent.git/blame - libevent.spec
- up to 2.0.21
[packages/libevent.git] / libevent.spec
CommitLineData
b1fb8cbd 1# TODO: %{_bindir}/event_rpcgen.py - rename to event_rpcgen?
0b200561 2#
0fdea969 3# Conditional build:
d721b57f 4%bcond_without static_libs # don't build static library
0fdea969 5#
2f6b5b28 6Summary: libevent - an event notification library
2861f0b5 7Summary(pl.UTF-8): libevent - biblioteka powiadamiająca o zdarzeniach
2f6b5b28 8Name: libevent
b651eab0
AM
9Version: 2.0.21
10Release: 1
2f6b5b28 11License: BSD
12Group: Libraries
763304c3 13Source0: https://github.com/downloads/libevent/libevent/%{name}-%{version}-stable.tar.gz
b651eab0 14# Source0-md5: b2405cc9ebf264aa47ff615d9de527a2
9032065c 15Patch0: %{name}-fpm.patch
daa02bbf 16Patch1: %{name}-link.patch
b651eab0 17URL: http://libevent.org/
7cf3abb0 18BuildRequires: autoconf >= 2.60
de06d5db 19BuildRequires: automake
de06d5db 20BuildRequires: libtool
f0c985cf 21BuildRequires: openssl-devel
d108ad96 22BuildRequires: pkgconfig
f0c985cf 23BuildRequires: zlib-devel
4fe092b0 24Obsoletes: libevent-dietlibc
2f6b5b28 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
cc2a3b05 28The libevent API provides a mechanism to execute a callback function
29when a specific event occurs on a file descriptor or after a timeout
30has been reached. It is meant to replace the asynchronous event loop
31found in event-driven network servers.
2f6b5b28 32
72b92345 33%description -l pl.UTF-8
cc2a3b05 34API libevent dostarcza mechanizm do wykonywania funkcji callback,
72b92345
JR
35kiedy nastąpiło określone zdarzenie w deskryptorze pliku lub po
36określonym czasie. Ma to na celu zastąpienie asynchronicznych pętli w
37sterowanych zdarzeniami usługach sieciowych.
2f6b5b28 38
39%package devel
40Summary: Header files for libevent library
2861f0b5 41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libevent
2f6b5b28 42Group: Development/Libraries
f1748484 43Requires: %{name} = %{version}-%{release}
f0c985cf 44Requires: openssl-devel
2f6b5b28 45
46%description devel
47Header files for libevent library.
48
72b92345
JR
49%description devel -l pl.UTF-8
50Pliki nagłówkowe biblioteki libevent.
2f6b5b28 51
52%package static
53Summary: Static libevent library
2861f0b5 54Summary(pl.UTF-8): Statyczna biblioteka libevent
2f6b5b28 55Group: Development/Libraries
f1748484 56Requires: %{name}-devel = %{version}-%{release}
2f6b5b28 57
58%description static
59Static libevent library.
60
72b92345 61%description static -l pl.UTF-8
2f6b5b28 62Statyczna biblioteka libevent.
63
64%prep
1eb83c63 65%setup -q -n %{name}-%{version}-stable
9032065c 66%patch0 -p1
daa02bbf 67%patch1 -p1
2f6b5b28 68
69%build
de06d5db 70%{__libtoolize}
d108ad96 71%{__aclocal} -I m4
de06d5db 72%{__autoconf}
73%{__automake}
d721b57f 74%configure \
75 %{!?with_static_libs:--disable-static}
2f6b5b28 76%{__make}
77
78%install
79rm -rf $RPM_BUILD_ROOT
a999810b 80install -d $RPM_BUILD_ROOT/%{_lib}
2f6b5b28 81
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
84
a999810b
JR
85mv -f $RPM_BUILD_ROOT%{_libdir}/libevent-2.0.so.* $RPM_BUILD_ROOT/%{_lib}
86ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libevent-2.0.so.*.*.*) \
87 $RPM_BUILD_ROOT%{_libdir}/libevent.so
88
2f6b5b28 89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%post -p /sbin/ldconfig
93%postun -p /sbin/ldconfig
94
86376cba
JB
95%files
96%defattr(644,root,root,755)
7cf3abb0 97%doc ChangeLog LICENSE README
a999810b
JR
98%attr(755,root,root) /%{_lib}/libevent-2.0.so.*.*.*
99%attr(755,root,root) %ghost /%{_lib}/libevent-2.0.so.5
d108ad96 100%attr(755,root,root) %{_libdir}/libevent_core-2.0.so.*.*.*
101%attr(755,root,root) %ghost %{_libdir}/libevent_core-2.0.so.5
102%attr(755,root,root) %{_libdir}/libevent_extra-2.0.so.*.*.*
103%attr(755,root,root) %ghost %{_libdir}/libevent_extra-2.0.so.5
104%attr(755,root,root) %{_libdir}/libevent_openssl-2.0.so.*.*.*
105%attr(755,root,root) %ghost %{_libdir}/libevent_openssl-2.0.so.5
106%attr(755,root,root) %{_libdir}/libevent_pthreads-2.0.so.*.*.*
107%attr(755,root,root) %ghost %{_libdir}/libevent_pthreads-2.0.so.5
86376cba 108
2f6b5b28 109%files devel
110%defattr(644,root,root,755)
94621965 111# R: python
d108ad96 112%attr(755,root,root) %{_bindir}/event_rpcgen.py
94621965 113%attr(755,root,root) %{_libdir}/libevent.so
1eb83c63
JB
114%attr(755,root,root) %{_libdir}/libevent_core.so
115%attr(755,root,root) %{_libdir}/libevent_extra.so
d108ad96 116%attr(755,root,root) %{_libdir}/libevent_openssl.so
117%attr(755,root,root) %{_libdir}/libevent_pthreads.so
94621965 118%{_libdir}/libevent.la
1eb83c63
JB
119%{_libdir}/libevent_core.la
120%{_libdir}/libevent_extra.la
d108ad96 121%{_libdir}/libevent_openssl.la
122%{_libdir}/libevent_pthreads.la
123%dir %{_includedir}/event2
124%{_includedir}/event2/*.h
1eb83c63
JB
125%{_includedir}/evdns.h
126%{_includedir}/event*.h
127%{_includedir}/evhttp.h
128%{_includedir}/evrpc.h
129%{_includedir}/evutil.h
d108ad96 130#%%{_mandir}/man3/evdns.3*
131#%%{_mandir}/man3/event.3*
132%{_pkgconfigdir}/libevent.pc
133%{_pkgconfigdir}/libevent_openssl.pc
134%{_pkgconfigdir}/libevent_pthreads.pc
2f6b5b28 135
d721b57f 136%if %{with static_libs}
2f6b5b28 137%files static
138%defattr(644,root,root,755)
94621965 139%{_libdir}/libevent.a
1eb83c63
JB
140%{_libdir}/libevent_core.a
141%{_libdir}/libevent_extra.a
d108ad96 142%{_libdir}/libevent_openssl.a
143%{_libdir}/libevent_pthreads.a
1f15e3da 144%endif
This page took 0.071509 seconds and 4 git commands to generate.