1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: libtevent |
---|
4 | Summary: The tevent library |
---|
5 | Summary(ja): Tevent ライブラリ |
---|
6 | Version: 0.9.31 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Group: System Environment/Libraries |
---|
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 |
---|
32 | Summary: Developer tools for the Tevent library |
---|
33 | Summary(ja): Tevent ライブラリの開発用ファイル |
---|
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 |
---|
44 | Summary(ja): Tevent ライブラリの python バインディング |
---|
45 | Group: System Environment/Libraries |
---|
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 | |
---|
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 | |
---|
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 | |
---|
108 | %if %build_compat32 |
---|
109 | |
---|
110 | %files -n compat32-%{name} |
---|
111 | %defattr(-,root,root,-) |
---|
112 | %{_libdir}/libtevent.so.* |
---|
113 | |
---|
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 | |
---|
132 | %changelog |
---|
133 | * Sun Dec 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.31-1 |
---|
134 | - new upstream release. |
---|
135 | |
---|
136 | * Wed Feb 24 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.28-1 |
---|
137 | - new upstream release. |
---|
138 | |
---|
139 | * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.26-1 |
---|
140 | - new upstream release. |
---|
141 | |
---|
142 | * Sat Jun 13 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.25-1 |
---|
143 | - new upstream release. |
---|
144 | |
---|
145 | * Thu Apr 16 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.24-2 |
---|
146 | - added compat32 package. |
---|
147 | |
---|
148 | * Fri Mar 6 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.24-1 |
---|
149 | - new upstream release. |
---|
150 | |
---|
151 | * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.22-1 |
---|
152 | - new upstream release. |
---|
153 | |
---|
154 | * Mon Oct 6 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.21-2 |
---|
155 | - moved libtevent to System Environment/Libraries Group |
---|
156 | |
---|
157 | * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.21-1 |
---|
158 | - new upstream release. |
---|
159 | |
---|
160 | * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.20-1 |
---|
161 | - new upstream release. |
---|
162 | |
---|
163 | * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.19-1 |
---|
164 | - new upstream release. |
---|
165 | |
---|
166 | * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.9.17-1 |
---|
167 | - new upstream release. |
---|
168 | - initial build for Vine Linux. |
---|
169 | |
---|
170 | * Fri May 21 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-8 |
---|
171 | - Run make check during RPM build |
---|
172 | - Fix abi_check patch to guarantee script executability |
---|
173 | |
---|
174 | * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7.1 |
---|
175 | - Remove all references to ABI compatibility patch |
---|
176 | |
---|
177 | * Wed Feb 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.9.8-7 |
---|
178 | - Drop ABI compatibility patch (no longer needed) |
---|
179 | |
---|
180 | * Wed Sep 23 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-5 |
---|
181 | - Add patch to fix a segfault case |
---|
182 | |
---|
183 | * Wed Sep 16 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-2 |
---|
184 | - Fix abi compatibility with 0.9.3 |
---|
185 | |
---|
186 | * Tue Sep 8 2009 Simo Sorce <ssorce@redhat.com> - 0.9.8-1 |
---|
187 | - First independent release for tevent 0.9.8 |
---|