Commit | Line | Data |
---|---|---|
ded66719 TJ |
1 | Summary: library with asynchronous io functionality |
2 | Name: libasyncio | |
3 | Version: 0.2 | |
4 | Release: 1 | |
5 | License: LGPL | |
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} | |
80 | dmake | |
81 | ||
82 | for dir in utils asyncio; do | |
83 | make -C $dir headerlist | |
84 | done | |
85 | ||
86 | dmake check | |
87 | ||
88 | %install | |
89 | make DESTDIR=$RPM_BUILD_ROOT install | |
90 | ||
91 | %clean | |
92 | rm -fr $RPM_BUILD_ROOT | |
93 | ||
94 | %post | |
95 | /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(-,root,root) | |
99 | %doc LICENSE | |
100 | %{prefix}/lib/libasyncio.so* | |
101 | ||
102 | %files devel -f headerlist.asyncio | |
103 | %defattr(-,root,root) | |
104 | %{prefix}/lib/libasyncio.*a* | |
105 | %{prefix}/lib/pkgconfig/libasyncio.pc | |
106 | ||
107 | ||
108 | %files utils | |
109 | %defattr(-,root,root) | |
110 | %{prefix}/lib/libasyncio_utils.so* | |
111 | ||
112 | ||
113 | %files utils-devel -f headerlist.utils | |
114 | %defattr(-,root,root) | |
115 | %{prefix}/lib/libasyncio.*a* | |
116 | %{prefix}/lib/pkgconfig/libasyncio_utils.pc | |
117 | ||
118 | ||
119 | %files t2n | |
120 | %defattr(-,root,root) | |
121 | %doc LICENSE | |
122 | %{prefix}/lib/libasyncio_t2n.so* | |
123 | ||
124 | %files t2n-devel | |
125 | %defattr(-,root,root) | |
126 | %{prefix}/lib/libasyncio_t2n.*a* | |
127 | %{prefix}/lib/pkgconfig/libasyncio_t2n.pc | |
128 | %{prefix}/include/asyncio_t2n*.hpp | |
129 |