libevent-vl.spec 5.6 KB

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