Relicensed signalfunc and containerfunc as GPL version 2 + linking exception. Moved...
[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
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 cp -f /usr/share/libtool/ltmain.sh .
62 autoreconf --force
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*