Commit | Line | Data |
---|---|---|
e93545dd GE |
1 | Summary: library with functions common in Intra2net programs |
2 | Name: libi2ncommon | |
3 | Version: ##VERSION## | |
b599d4b1 | 4 | Release: 1 |
16c2256f | 5 | License: Intranator License |
e93545dd GE |
6 | Group: Intranator |
7 | Vendor: Intra2net AG | |
8 | Source: %{name}-%{version}.tar.gz | |
9 | Buildroot: /tmp/%{name}-%{version}-root | |
10 | Prefix: /usr/intranator | |
f3311b30 | 11 | Requires: libgettext libi2ncommon-utils = %{version} |
e93545dd | 12 | BuildPrereq: libtool |
9e5331ac | 13 | BuildRequires: boost-devel >= 1.32.0 libgettext |
16c2256f | 14 | |
e93545dd GE |
15 | |
16 | %description | |
17 | library with functions common in Intra2net programs | |
18 | ||
19 | %package devel | |
20 | Summary: library with functions common in Intra2net programs | |
21 | Group: Intranator/Development | |
22 | Requires: libi2ncommon = %{version} libgettext | |
16c2256f RP |
23 | Requires: boost-devel >= 1.32.0 |
24 | ||
e93545dd GE |
25 | |
26 | %description devel | |
27 | library with functions common in Intra2net programs | |
28 | ||
23d53eb1 RP |
29 | |
30 | %package config | |
31 | Summary: library with a config module | |
32 | Group: Intranator | |
33 | Requires: libi2ncommon = %{version} | |
34 | ||
35 | %description config | |
36 | library with a config module. | |
37 | The config module provides a global configuration system with decentralized | |
38 | declaration of the config variables. | |
39 | ||
ce6792dd TJ |
40 | %package xml |
41 | Summary: library with a xml module | |
42 | Group: Intranator | |
43 | Requires: libi2ncommon = %{version} | |
44 | ||
45 | %description xml | |
46 | The xml module provides common xml functions. | |
23d53eb1 | 47 | |
f3311b30 TJ |
48 | %package utils |
49 | Summary: library with open source utility modules | |
50 | Group: Intranator | |
51 | License: GPL version 2 + linking exception | |
52 | ||
53 | %description utils | |
54 | Library with open source utility modules. | |
55 | ||
e93545dd GE |
56 | %prep |
57 | %setup -q | |
58 | ||
59 | %build | |
60 | export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/intranator/lib/pkgconfig | |
d593eb09 | 61 | autoreconf --force --install |
fc61192b | 62 | ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix} |
e93545dd GE |
63 | dmake |
64 | ||
65 | dmake check | |
66 | ||
67 | %install | |
68 | make DESTDIR=$RPM_BUILD_ROOT install | |
69 | ||
70 | %clean | |
71 | rm -fr $RPM_BUILD_ROOT | |
72 | ||
73 | %post | |
74 | /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(-,root,root) | |
f3311b30 | 78 | %doc LICENSE COPYING.GPL |
e93545dd GE |
79 | %{prefix}/lib/libi2ncommon.so* |
80 | ||
81 | %files devel | |
82 | %defattr(-,root,root) | |
83 | %{prefix}/lib/*.*a* | |
84 | %{prefix}/lib/pkgconfig/*.pc | |
85 | %{prefix}/include/ | |
23d53eb1 RP |
86 | |
87 | %files config | |
88 | %defattr(-,root,root) | |
89 | %doc LICENSE | |
90 | %{prefix}/lib/libi2ncommon_config.so* | |
91 | ||
ce6792dd TJ |
92 | %files xml |
93 | %defattr(-,root,root) | |
94 | %doc LICENSE | |
95 | %{prefix}/lib/libi2ncommon_xml.so* | |
f3311b30 TJ |
96 | |
97 | %files utils | |
98 | %defattr(-,root,root) | |
99 | %doc LICENSE COPYING.GPL | |
100 | %{prefix}/lib/libi2ncommon_utils.so* |