libtevent-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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.24
  6. Release: 2%{?_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. * Thu Apr 16 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.24-1
  99. - added compat32 package.
  100. * Fri Mar 6 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.24-1
  101. - new upstream release.
  102. * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.22-1
  103. - new upstream release.
  104. * Mon Oct 6 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.21-2
  105. - moved libtevent to System Environment/Libraries Group
  106. * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.21-1
  107. - new upstream release.
  108. * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.20-1
  109. - new upstream release.
  110. * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.19-1
  111. - new upstream release.
  112. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.17-1
  113. - new upstream release.
  114. - initial build for Vine Linux.
  115. * Fri May 21 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-8
  116. - Run make check during RPM build
  117. - Fix abi_check patch to guarantee script executability
  118. * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1
  119. - Remove all references to ABI compatibility patch
  120. * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7
  121. - Drop ABI compatibility patch (no longer needed)
  122. * Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5
  123. - Add patch to fix a segfault case
  124. * Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2
  125. - Fix abi compatibility with 0.9.3
  126. * Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1
  127. - First independent release for tevent 0.9.8