Added libgettex requirement to libi2ncommon
[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:  libgettext libi2ncommon-utils = %{version}
12 BuildPrereq: libtool
13 BuildRequires: boost-devel >= 1.32.0 libgettext
14
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
23 Requires: boost-devel >= 1.32.0
24
25
26 %description devel
27 library with functions common in Intra2net programs
28
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
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.
47
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
56 %prep
57 %setup -q
58
59 %build
60 export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/intranator/lib/pkgconfig
61 autoreconf --force --install
62 ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix}
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)
78 %doc LICENSE COPYING.GPL
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/
86
87 %files config
88 %defattr(-,root,root)
89 %doc LICENSE
90 %{prefix}/lib/libi2ncommon_config.so*
91
92 %files xml
93 %defattr(-,root,root)
94 %doc LICENSE
95 %{prefix}/lib/libi2ncommon_xml.so*
96
97 %files utils
98 %defattr(-,root,root)
99 %doc LICENSE COPYING.GPL
100 %{prefix}/lib/libi2ncommon_utils.so*