Commit | Line | Data |
---|---|---|
e93545dd GE |
1 | Summary: library with functions common in Intra2net programs |
2 | Name: libi2ncommon | |
3 | Version: ##VERSION## | |
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 | |
11 | Requires: libgettext | |
12 | BuildPrereq: libtool | |
16c2256f RP |
13 | BuildRequires: boost-devel >= 1.32.0 |
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 | |
e93545dd GE |
48 | %prep |
49 | %setup -q | |
50 | ||
51 | %build | |
52 | export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/intranator/lib/pkgconfig | |
53 | cp -f /usr/share/libtool/ltmain.sh . | |
54 | autoreconf --force | |
fc61192b | 55 | ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix} |
e93545dd GE |
56 | dmake |
57 | ||
58 | dmake check | |
59 | ||
60 | %install | |
61 | make DESTDIR=$RPM_BUILD_ROOT install | |
62 | ||
63 | %clean | |
64 | rm -fr $RPM_BUILD_ROOT | |
65 | ||
66 | %post | |
67 | /sbin/ldconfig | |
68 | ||
69 | %files | |
70 | %defattr(-,root,root) | |
8844e4ed | 71 | %doc LICENSE |
e93545dd GE |
72 | %{prefix}/lib/libi2ncommon.so* |
73 | ||
74 | %files devel | |
75 | %defattr(-,root,root) | |
76 | %{prefix}/lib/*.*a* | |
77 | %{prefix}/lib/pkgconfig/*.pc | |
78 | %{prefix}/include/ | |
23d53eb1 RP |
79 | |
80 | %files config | |
81 | %defattr(-,root,root) | |
82 | %doc LICENSE | |
83 | %{prefix}/lib/libi2ncommon_config.so* | |
84 | ||
ce6792dd TJ |
85 | %files xml |
86 | %defattr(-,root,root) | |
87 | %doc LICENSE | |
88 | %{prefix}/lib/libi2ncommon_xml.so* |