Package libevent: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | Name: libevent Version: 2.1.8 Release: alt2 Summary: Abstract asynchronous event notification library # arc4random.c is ISC, the rest is BSD-3-Clause. License: BSD-3-Clause and ISC Group: System/Libraries Url: https://libevent.org/ %define libname %{name}2.1 %def_disable static # https://github.com/libevent/libevent/releases/download/release-%version-stable/libevent-%version-stable.tar.gz Source: %name-%version.tar Source1: libevent.so Source2: Makefile.sample # git://git.altlinux.org/gears/l/%name.git Patch: %name-%version-%release.patch BuildRequires: libssl-devel zlib-devel %{?!_without_check:%{?!_disable_check:BuildRequires: python-modules}} %package -n %libname Summary: Abstract asynchronous event notification library Group: System/Libraries Provides: %name = %EVR %package devel Summary: Development libevent library, its header files and documentation Group: Development/C %package devel-static Summary: Static libevent library Group: Development/C Requires: %name-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. %description -n %libname 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. %description devel This package contains the header files, documentation, examples and development library for use in developing applications that use the libevent library. %description devel-static This package contains the static libevent library necessary to build statically-linked libevent-based applications. %prep %setup %patch -p1 %build %autoreconf # force epoll and /dev/epoll support export haveepoll=yes %configure %{subst_enable static} --disable-libevent-regress --disable-silent-rules %make_build %install %makeinstall_std # Relocate shared libraries from %_libdir/ to /%_lib/. mkdir -p %buildroot/%_lib for f in %buildroot%_libdir/*.so; do t=$(readlink "$f") || continue ln -snf ../../%_lib/"$t" "$f" done mv %buildroot%_libdir/*.so.* %buildroot/%_lib/ # Replace libevent.so symlink with the linker script. rm %buildroot%_libdir/libevent.so install -pm644 %_sourcedir/libevent.so %buildroot%_libdir/ %define docdir %_docdir/%name-%version install -pD -m644 %_sourcedir/Makefile.sample \ %buildroot%docdir/examples/Makefile install -p -m644 sample/*.c %buildroot%docdir/examples/ install -pm644 LICENSE whatsnew-2.1.txt %buildroot%docdir/ #Install man mkdir -p %buildroot%_man3dir install -p -m644 *.3 %buildroot%_man3dir/ %check %make_build -k check %files -n %libname /%_lib/*.so.* %dir %docdir %docdir/LICENSE %docdir/whatsnew-2.1.txt %files devel %_bindir/event_rpcgen.py %_libdir/*.so %_includedir/* %_pkgconfigdir/* %_man3dir/* %dir %docdir %docdir/examples %if_enabled static %files devel-static %_libdir/*.a %endif %changelog * Thu Mar 28 2019 Dmitry V. Levin <ldv@altlinux.org> 2.1.8-alt2 - Replaced libevent.so symlink with a linker script that results to -levent being substituted with -levent_core -levent_extra (closes: #36436). * Thu Aug 30 2018 Alexei Takaseev <taf@altlinux.org> 2.1.8-alt1 - 2.1.8 - Disable regress in make check * Wed Sep 28 2016 Alexei Takaseev <taf@altlinux.org> 2.0.22-alt1 - 2.0.22 * Tue Nov 12 2013 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.21-alt2 - Update from branch patches-2.0 * Thu Feb 07 2013 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.21-alt1 - Updated to 2.0.21 * Wed Sep 12 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.20-alt1 - Updated to 2.0.20 * Mon Jun 11 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.19-alt1 - Updated to 2.0.19 * Sat Mar 31 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.18-alt1 - Updated to 2.0.18 * Sun Mar 04 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.17-alt1 - Updated to 2.0.17 * Fri Feb 03 2012 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.16-alt1 - Updated to 2.0.16 * Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.15-alt1.1 - Rebuild with Python-2.7 * Wed Oct 19 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.15-alt1 - Updated to 2.0.15. * Sat Sep 03 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.14-alt1 - Updated to 2.0.14. * Sun Jul 17 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.12-alt2 - Updated patches-2.0 - Fix build for network restriction in hasher * Tue Jun 14 2011 Dmitry V. Levin <ldv@altlinux.org> 2.0.12-alt1 - Updated to 2.0.12-12-gb031adf. - Packaged libevent_openssl. - Restricted list of global symbols exported by libraries. * Sun Feb 06 2011 Slava Dubrovskiy <dubrsl@altlinux.org> 2.0.10-alt1 - Updated to 2.0.10. - Update spec accord SharedPolicy * Fri Nov 05 2010 Dmitry V. Levin <ldv@altlinux.org> 1.3b-alt3 - Rebuilt for soname set-versions. * Thu Dec 03 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3b-alt2.1 - Rebuilt with python 2.6 * Thu Nov 12 2009 Dmitry V. Levin <ldv@altlinux.org> 1.3b-alt2 - Removed obsolete %%post_ldconfig/%%postun_ldconfig calls. * Fri Apr 13 2007 Dmitry V. Levin <ldv@altlinux.org> 1.3b-alt1 - Updated to 1.3b. * Fri Apr 13 2007 Dmitry V. Levin <ldv@altlinux.org> 1.1b-alt1 - Updated to 1.1b. * Fri Apr 13 2007 Dmitry V. Levin <ldv@altlinux.org> 1.1a-alt2 - Made libevent.map autogenerated based on installed header files. * Sun Mar 25 2007 Fr. Br. George <george@altlinux.ru> 1.1a-alt1.1 - NMU: automatic map generation * Sun Oct 30 2005 LAKostis <lakostis at altlinux.ru> 1.1a-alt1 - Updated to 1.1a. - Updated patches. - Force epoll and /dev/epoll support. - Update description. * Mon Aug 15 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0c-alt2 - Restricted list of global symbols exported by the library. - Fixed typos in manual page. * Mon Apr 04 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0c-alt1 - Updated to 1.0c. - Updated patches. * Tue Mar 01 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0b-alt2 - Relocated shared library from %_libdir to /%_lib (fixes #6156). * Sun Feb 13 2005 Dmitry V. Levin <ldv@altlinux.org> 1.0b-alt1 - Initial revision. |