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