3 %bcond_with imap_utf7_support
5 # Detect Intra2net build environment
8 %define with_imap_utf7_support 1
11 Summary: library with functions common in Intra2net programs
15 License: GPLv2 + linking exception
18 Source: %{name}-%{version}.tar.gz
19 Buildroot: /tmp/%{name}-%{version}-root
20 Prefix: /usr/intranator
21 Requires: libi2ncommon-utils = %{version}
23 BuildRequires: boost-devel >= 1.32.0
28 library with functions common in Intra2net programs
31 Summary: library with functions common in Intra2net programs
32 Group: Intranator/Development
33 Requires: libi2ncommon = %{version}
34 Requires: boost-devel >= 1.32.0
38 library with functions common in Intra2net programs
42 Summary: library with a config module
44 Requires: libi2ncommon = %{version}
47 library with a config module.
48 The config module provides a global configuration system with decentralized
49 declaration of the config variables.
53 Summary: library with a xml module
55 Requires: libi2ncommon = %{version}
58 The xml module provides common xml functions.
62 Summary: library with open source utility modules
64 License: GPL version 2 + linking exception
67 Library with open source utility modules.
73 export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/intranator/lib/pkgconfig
78 export CFLAGS="$RPM_OPT_FLAGS"
79 export CXXFLAGS="$RPM_OPT_FLAGS"
83 CMAKE_OPTS="$CMAKE_OPTS -DBUILD_XMLLIB=ON"
85 %if %{with imap_utf7_support}
86 CMAKE_OPTS="$CMAKE_OPTS -DIMAP_UTF7_SUPPORT=ON"
89 cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" $CMAKE_OPTS ../
91 make %{?_smp_mflags} VERBOSE=1
100 make DESTDIR=$RPM_BUILD_ROOT install
103 rm -fr $RPM_BUILD_ROOT
109 %defattr(-,root,root)
111 %{prefix}/lib/libi2ncommon.so*
114 %defattr(-,root,root)
115 # No static library for now
117 %{prefix}/lib/pkgconfig/*.pc
121 %defattr(-,root,root)
123 %{prefix}/lib/libi2ncommon_config.so*
127 %defattr(-,root,root)
129 %{prefix}/lib/libi2ncommon_xml.so*
133 %defattr(-,root,root)
135 %{prefix}/lib/libi2ncommon_utils.so*