1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: Abstract asynchronous event notification library |
---|
4 | Summary(ja): 非同期イベント通知ライブラリ |
---|
5 | Name: libevent |
---|
6 | Version: 2.1.12 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Group: system |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | |
---|
12 | License: BSD |
---|
13 | URL: https://libevent.org/ |
---|
14 | Source0: https://github.com/libevent/libevent/releases/download/release-%{version}-stable/libevent-%{version}-stable.tar.gz |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildRequires: openssl-devel |
---|
18 | |
---|
19 | %description |
---|
20 | The libevent API provides a mechanism to execute a callback function |
---|
21 | when a specific event occurs on a file descriptor or after a timeout |
---|
22 | has been reached. libevent is meant to replace the asynchronous event |
---|
23 | loop found in event driven network servers. An application just needs |
---|
24 | to call event_dispatch() and can then add or remove events dynamically |
---|
25 | without having to change the event loop. |
---|
26 | |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: Header files, libraries and development documentation for %{name} |
---|
30 | Group: programming |
---|
31 | Requires: %{name} = %{version}-%{release} |
---|
32 | |
---|
33 | %description devel |
---|
34 | This package contains the header files, static libraries and development |
---|
35 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
36 | you will need to install %{name}-devel. |
---|
37 | |
---|
38 | |
---|
39 | %package -n compat32-%{name} |
---|
40 | Summary: Abstract asynchronous event notification library |
---|
41 | Summary(ja): 非同期イベント通知ライブラリ |
---|
42 | Group: system |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description -n compat32-%{name} |
---|
46 | The libevent API provides a mechanism to execute a callback function |
---|
47 | when a specific event occurs on a file descriptor or after a timeout |
---|
48 | has been reached. libevent is meant to replace the asynchronous event |
---|
49 | loop found in event driven network servers. An application just needs |
---|
50 | to call event_dispatch() and can then add or remove events dynamically |
---|
51 | without having to change the event loop. |
---|
52 | |
---|
53 | |
---|
54 | %debug_package |
---|
55 | |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup -q -n %{name}-%{version}-stable |
---|
59 | |
---|
60 | |
---|
61 | %build |
---|
62 | %configure \ |
---|
63 | --disable-static \ |
---|
64 | --disable-dependency-tracking |
---|
65 | %__make %{?_smp_mflags} |
---|
66 | |
---|
67 | |
---|
68 | %install |
---|
69 | rm -rf $RPM_BUILD_ROOT |
---|
70 | %__make DESTDIR=$RPM_BUILD_ROOT install |
---|
71 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} |
---|
72 | |
---|
73 | |
---|
74 | %clean |
---|
75 | rm -rf $RPM_BUILD_ROOT |
---|
76 | |
---|
77 | |
---|
78 | %post -p /sbin/ldconfig |
---|
79 | %postun -p /sbin/ldconfig |
---|
80 | |
---|
81 | |
---|
82 | %files |
---|
83 | %defattr(-,root,root,0755) |
---|
84 | %doc README |
---|
85 | %{_bindir}/* |
---|
86 | %{_libdir}/lib*.so.* |
---|
87 | |
---|
88 | %files devel |
---|
89 | %defattr(-,root,root,0755) |
---|
90 | %doc sample/*.c |
---|
91 | %{_includedir}/* |
---|
92 | %{_libdir}/lib*.so |
---|
93 | %{_libdir}/pkgconfig/%{name}*.pc |
---|
94 | |
---|
95 | %if %{build_compat32} |
---|
96 | %files -n compat32-%{name} |
---|
97 | %defattr(-,root,root,0755) |
---|
98 | %doc README |
---|
99 | %{_bindir}/* |
---|
100 | %{_libdir}/lib*.so.* |
---|
101 | %endif |
---|
102 | |
---|
103 | |
---|
104 | %changelog |
---|
105 | * Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.12-1 |
---|
106 | - new upstream release. |
---|
107 | |
---|
108 | * Tue Apr 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.11-1 |
---|
109 | - new upstream release. |
---|
110 | |
---|
111 | * Fri Nov 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.8-2 |
---|
112 | - added a subpackage 'compat32-libevent'. |
---|
113 | |
---|
114 | * Sun Nov 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.8-1 |
---|
115 | - updated to 2.1.8. |
---|
116 | |
---|
117 | * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.21-2 |
---|
118 | - rebuild with openssl-1.0.2 |
---|
119 | |
---|
120 | * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.21-1 |
---|
121 | - update to 2.0.21 |
---|
122 | |
---|
123 | * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.20-1 |
---|
124 | - new upstream release |
---|
125 | |
---|
126 | * Sun Feb 13 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.10-2 |
---|
127 | - add BuildRequires: openssl-devel |
---|
128 | |
---|
129 | * Thu Feb 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.10-1 |
---|
130 | - new upstream release |
---|
131 | |
---|
132 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.13-2 |
---|
133 | - rebuilt with gcc-4.4.3-3 on ppc |
---|
134 | |
---|
135 | * Mon Feb 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.13-1 |
---|
136 | - new upstream release |
---|
137 | - built with new toolchains |
---|
138 | |
---|
139 | * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-2 |
---|
140 | - spec in utf-8 |
---|
141 | - remove static libs |
---|
142 | |
---|
143 | * Wed Apr 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.3-1 |
---|
144 | - new upstream release |
---|
145 | |
---|
146 | * Sun Jul 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3b-0vl1 |
---|
147 | - new upstream release |
---|
148 | |
---|
149 | * Sun Aug 13 2006 IWAI, Masaharu <iwai@alib.jp> 1.1b-0vl1 |
---|
150 | - new upstream release |
---|
151 | |
---|
152 | * Sun Mar 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1a-0vl1 |
---|
153 | - initial build for Vine Linux |
---|
154 | |
---|
155 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1a-3.2 |
---|
156 | - bump again for double-long bug on ppc(64) |
---|
157 | |
---|
158 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1a-3.1 |
---|
159 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
160 | |
---|
161 | * Tue Jan 24 2006 Warren Togami <wtogami@redhat.com> - 1.1a-3 |
---|
162 | - rebuild (#177697) |
---|
163 | |
---|
164 | * Mon Jul 04 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1a-2 |
---|
165 | - Removed unnecessary -r from rm |
---|
166 | |
---|
167 | * Fri Jun 17 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1a-1 |
---|
168 | - Upstream update |
---|
169 | |
---|
170 | * Wed Jun 08 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1-2 |
---|
171 | - Added some docs |
---|
172 | - Moved "make verify" into %%check |
---|
173 | |
---|
174 | * Mon Jun 06 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1-1 |
---|
175 | - Initial build for Fedora Extras, based on the package |
---|
176 | by Dag Wieers |
---|