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