libtevent-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libtevent
  3. Summary: The tevent library
  4. Summary(ja): Tevent ライブラリ
  5. Version: 0.9.28
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: LGPLv3+
  9. URL: http://tevent.samba.org/
  10. Source: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
  11. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  12. Patch1: tevent-098-add_abi_scripts_and_fix_exports.patch
  13. BuildRequires: libtalloc-devel >= 2.0.0
  14. BuildRequires: python-devel
  15. BuildRequires: pytalloc-devel
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: tomop
  19. %description
  20. Tevent is an event system based on the talloc memory management library.
  21. Tevent has support for many event types, including timers, signals, and
  22. the classic file descriptor events.
  23. Tevent also provide helpers to deal with asynchronous code providing the
  24. tevent_req (Tevent Request) functions.
  25. %package devel
  26. Summary: Developer tools for the Tevent library
  27. Summary(ja): Tevent ライブラリの開発用ファイル
  28. Group: Development/Libraries
  29. Requires: libtevent = %{version}-%{release}
  30. Requires: libtalloc-devel >= 2.0.0
  31. Requires: pkgconfig
  32. %description devel
  33. Header files needed to develop programs that link against the Tevent library.
  34. %package -n python-tevent
  35. Summary: Python bindings for the Tevent library
  36. Summary(ja): Tevent ライブラリの python バインディング
  37. Group: System Environment/Libraries
  38. Requires: libtevent = %{version}-%{release}
  39. Requires: pytalloc >= 2.0.0
  40. Requires: pkgconfig
  41. %description -n python-tevent
  42. Python bindings for libtevent
  43. %if %build_compat32
  44. %package -n compat32-%{name}
  45. Summary: The tevent library
  46. Summary(ja): Tevent ライブラリ
  47. Group: System Environment/Libraries
  48. %description -n compat32-%{name}
  49. Tevent is an event system based on the talloc memory management library.
  50. Tevent has support for many event types, including timers, signals, and
  51. the classic file descriptor events.
  52. Tevent also provide helpers to deal with asynchronous code providing the
  53. tevent_req (Tevent Request) functions.
  54. %endif
  55. %prep
  56. %setup -q -n tevent-%{version}
  57. %patch1 -p1 -b .abi_checks
  58. %build
  59. %configure
  60. make %{?_smp_mflags}
  61. %check
  62. make %{?_smp_mflags} check
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. make install DESTDIR=$RPM_BUILD_ROOT
  66. #ln -s libtevent.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtevent.so.0
  67. #ln -s libtevent.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtevent.so
  68. rm -f $RPM_BUILD_ROOT%{_libdir}/libtevent.a
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %files
  72. %defattr(-,root,root,-)
  73. %{_libdir}/libtevent.so.*
  74. %files devel
  75. %defattr(-,root,root,-)
  76. %{_includedir}/tevent.h
  77. %{_libdir}/libtevent.so
  78. %{_libdir}/pkgconfig/tevent.pc
  79. %files -n python-tevent
  80. %{python_sitearch}/_tevent.so
  81. %{python_sitearch}/tevent.py
  82. %if %build_compat32
  83. %files -n compat32-%{name}
  84. %defattr(-,root,root,-)
  85. %{_libdir}/libtevent.so.*
  86. %endif
  87. %post
  88. /sbin/ldconfig
  89. %postun
  90. /sbin/ldconfig
  91. %if %build_compat32
  92. %post -n compat32-%{name}
  93. /sbin/ldconfig
  94. %postun -n compat32-%{name}
  95. /sbin/ldconfig
  96. %endif
  97. %changelog
  98. * Wed Feb 24 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.28-1
  99. - new upstream release.
  100. * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.26-1
  101. - new upstream release.
  102. * Sat Jun 13 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.25-1
  103. - new upstream release.
  104. * Thu Apr 16 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.24-2
  105. - added compat32 package.
  106. * Fri Mar 6 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.24-1
  107. - new upstream release.
  108. * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.22-1
  109. - new upstream release.
  110. * Mon Oct 6 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.21-2
  111. - moved libtevent to System Environment/Libraries Group
  112. * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.21-1
  113. - new upstream release.
  114. * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.20-1
  115. - new upstream release.
  116. * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.19-1
  117. - new upstream release.
  118. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.17-1
  119. - new upstream release.
  120. - initial build for Vine Linux.
  121. * Fri May 21 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-8
  122. - Run make check during RPM build
  123. - Fix abi_check patch to guarantee script executability
  124. * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1
  125. - Remove all references to ABI compatibility patch
  126. * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7
  127. - Drop ABI compatibility patch (no longer needed)
  128. * Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5
  129. - Add patch to fix a segfault case
  130. * Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2
  131. - Fix abi compatibility with 0.9.3
  132. * Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1
  133. - First independent release for tevent 0.9.8