Commit | Line | Data |
---|---|---|
ded66719 TJ |
1 | Summary: library with asynchronous io functionality |
2 | Name: libasyncio | |
3 | Version: 0.2 | |
4 | Release: 1 | |
f7133ee3 | 5 | License: GPL version 2 + linking exception |
ded66719 TJ |
6 | Group: Intranator |
7 | Vendor: Intra2net AG | |
8 | Source: %{name}-%{version}.tar.gz | |
9 | Buildroot: /tmp/%{name}-%{version}-root | |
10 | Prefix: /usr | |
11 | Requires: libi2ncommon >= 1.0 | |
12 | Requires: boost >= 1.32.0 | |
13 | BuildPrereq: libtool | |
14 | BuildRequires: boost-devel >= 1.32.0 | |
15 | Obsoletes: libsimpleio | |
16 | ||
17 | %description | |
18 | library with asynchronous io functionality | |
19 | ||
20 | ||
21 | %package devel | |
22 | Summary: library with asynchronous io functionality | |
23 | Group: Intranator/Development | |
24 | Requires: libi2ncommon-devel | |
25 | Requires: boost-devel >= 1.32.0 | |
26 | Obsoletes: libsimpleio-devel | |
27 | ||
28 | ||
29 | %description devel | |
30 | development files for library with asynchronous io functionality | |
31 | ||
32 | ||
33 | %package utils | |
34 | Summary: library with asynchronous io functionality | |
35 | Group: Intranator | |
36 | Requires: boost >= 1.32.0 | |
37 | ||
38 | %description utils | |
39 | A collection of util function and classes used within asyncio, but | |
40 | are also usable for other purposes, too. | |
41 | ||
42 | ||
43 | %package utils-devel | |
44 | Summary: library with asynchronous io functionality | |
45 | Group: Intranator/Development | |
46 | Requires: boost-devel >= 1.32.0 | |
47 | ||
48 | %description utils-devel | |
49 | development files for asyncio utils. | |
50 | ||
51 | ||
52 | %package t2n | |
53 | Summary: glue library for using t2n with libasyncio | |
54 | Group: Intranator | |
55 | BuildRequires: libt2n-devel >= 0.4 | |
56 | Requires: libt2n >= 0.4 | |
57 | Obsoletes: libsimpleio-t2n | |
58 | ||
59 | %description t2n | |
60 | glue lib for using t2n with simpleio. | |
61 | ||
62 | ||
63 | %package t2n-devel | |
64 | Summary: glue library for using t2n with libasyncio | |
65 | Group: Intranator/Development | |
66 | Requires: libt2n-devel >= 0.4 | |
67 | ||
68 | %description t2n-devel | |
69 | development files for glue lib for using t2n with simpleio. | |
70 | ||
71 | ||
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | ||
76 | %build | |
77 | export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/intranator/lib/pkgconfig | |
78 | autoreconf --force -i | |
79 | ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix} | |
726c8a89 | 80 | make |
ded66719 TJ |
81 | |
82 | for dir in utils asyncio; do | |
83 | make -C $dir headerlist | |
84 | done | |
85 | ||
726c8a89 | 86 | make check |
ded66719 TJ |
87 | |
88 | %install | |
89 | make DESTDIR=$RPM_BUILD_ROOT install | |
90 | ||
9a820dfd TJ |
91 | # Remove unpackaged files |
92 | rm -f $RPM_BUILD_ROOT/usr/lib/libasyncio_utils.a | |
93 | rm -f $RPM_BUILD_ROOT/usr/lib/libasyncio_utils.la | |
94 | ||
ded66719 TJ |
95 | %clean |
96 | rm -fr $RPM_BUILD_ROOT | |
97 | ||
98 | %post | |
99 | /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(-,root,root) | |
f7133ee3 | 103 | %doc LICENSE COPYING.GPL |
ded66719 TJ |
104 | %{prefix}/lib/libasyncio.so* |
105 | ||
106 | %files devel -f headerlist.asyncio | |
107 | %defattr(-,root,root) | |
108 | %{prefix}/lib/libasyncio.*a* | |
109 | %{prefix}/lib/pkgconfig/libasyncio.pc | |
110 | ||
111 | ||
112 | %files utils | |
113 | %defattr(-,root,root) | |
114 | %{prefix}/lib/libasyncio_utils.so* | |
115 | ||
116 | ||
117 | %files utils-devel -f headerlist.utils | |
118 | %defattr(-,root,root) | |
119 | %{prefix}/lib/libasyncio.*a* | |
120 | %{prefix}/lib/pkgconfig/libasyncio_utils.pc | |
121 | ||
122 | ||
123 | %files t2n | |
124 | %defattr(-,root,root) | |
125 | %doc LICENSE | |
126 | %{prefix}/lib/libasyncio_t2n.so* | |
127 | ||
128 | %files t2n-devel | |
129 | %defattr(-,root,root) | |
130 | %{prefix}/lib/libasyncio_t2n.*a* | |
131 | %{prefix}/lib/pkgconfig/libasyncio_t2n.pc | |
132 | %{prefix}/include/asyncio_t2n*.hpp | |
133 |