libevent-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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.8
  6. Release: 2%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: BSD
  9. URL: https://libevent.org/
  10. Source0: https://github.com/libevent/libevent/releases/download/release-%{version}-stable/libevent-%{version}-stable.tar.gz
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  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. * Fri Nov 09 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.8-2
  77. - added a subpackage 'compat32-libevent'.
  78. * Sun Nov 04 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.8-1
  79. - updated to 2.1.8.
  80. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.21-2
  81. - rebuild with openssl-1.0.2
  82. * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.21-1
  83. - update to 2.0.21
  84. * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.20-1
  85. - new upstream release
  86. * Sun Feb 13 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.10-2
  87. - add BuildRequires: openssl-devel
  88. * Thu Feb 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.0.10-1
  89. - new upstream release
  90. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.13-2
  91. - rebuilt with gcc-4.4.3-3 on ppc
  92. * Mon Feb 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.13-1
  93. - new upstream release
  94. - built with new toolchains
  95. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-2
  96. - spec in utf-8
  97. - remove static libs
  98. * Wed Apr 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.3-1
  99. - new upstream release
  100. * Sun Jul 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3b-0vl1
  101. - new upstream release
  102. * Sun Aug 13 2006 IWAI, Masaharu <iwai@alib.jp> 1.1b-0vl1
  103. - new upstream release
  104. * Sun Mar 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1a-0vl1
  105. - initial build for Vine Linux
  106. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1a-3.2
  107. - bump again for double-long bug on ppc(64)
  108. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1a-3.1
  109. - rebuilt for new gcc4.1 snapshot and glibc changes
  110. * Tue Jan 24 2006 Warren Togami <wtogami@redhat.com> - 1.1a-3
  111. - rebuild (#177697)
  112. * Mon Jul 04 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1a-2
  113. - Removed unnecessary -r from rm
  114. * Fri Jun 17 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1a-1
  115. - Upstream update
  116. * Wed Jun 08 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1-2
  117. - Added some docs
  118. - Moved "make verify" into %%check
  119. * Mon Jun 06 2005 Ralf Ertzinger <ralf@skytale.net> - 1.1-1
  120. - Initial build for Fedora Extras, based on the package
  121. by Dag Wieers