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