arnied, libi2ncommon, arnielizer, ui: (tomj) moved common xml code to own lib2ncommon...
[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
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 %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
55 ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix}
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)
71 %doc LICENSE
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/
79
80 %files config
81 %defattr(-,root,root)
82 %doc LICENSE
83 %{prefix}/lib/libi2ncommon_config.so*
84
85 %files xml
86 %defattr(-,root,root)
87 %doc LICENSE
88 %{prefix}/lib/libi2ncommon_xml.so*