libevent-vl.spec 4.8 KB

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