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