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
16 Group: Development/Libraries
18 Source: %{name}-%{version}.tar.gz
19 Requires: libi2ncommon-utils = %{version}
21 BuildRequires: boost-devel >= 1.32.0
26 library with functions common in Intra2net programs
29 Summary: library with functions common in Intra2net programs
30 Group: Intranator/Development
31 Requires: libi2ncommon = %{version}
32 Requires: boost-devel >= 1.32.0
36 library with functions common in Intra2net programs
40 Summary: library with a config module
42 Requires: libi2ncommon = %{version}
45 library with a config module.
46 The config module provides a global configuration system with decentralized
47 declaration of the config variables.
51 Summary: library with a xml module
53 Requires: libi2ncommon = %{version}
56 The xml module provides common xml functions.
60 Summary: library with open source utility modules
62 License: GPL version 2 + linking exception
65 Library with open source utility modules.
71 export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/intranator/lib/pkgconfig
76 export CFLAGS="$RPM_OPT_FLAGS"
77 export CXXFLAGS="$RPM_OPT_FLAGS"
81 CMAKE_OPTS="$CMAKE_OPTS -DBUILD_XMLLIB=ON"
83 %if %{with imap_utf7_support}
84 CMAKE_OPTS="$CMAKE_OPTS -DIMAP_UTF7_SUPPORT=ON"
87 cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" $CMAKE_OPTS ../
89 make %{?_smp_mflags} VERBOSE=1
98 make DESTDIR=$RPM_BUILD_ROOT install
101 rm -fr $RPM_BUILD_ROOT
107 %defattr(-,root,root)
109 %{_libdir}/libi2ncommon.so*
112 %defattr(-,root,root)
113 # No static library for now
115 %{_libdir}/libi2ncommon.so
116 %{_libdir}/pkgconfig/*.pc
120 %defattr(-,root,root)
122 %{_libdir}/libi2ncommon_config.so*
126 %defattr(-,root,root)
128 %{_libdir}/libi2ncommon_xml.so*
132 %defattr(-,root,root)
134 %{_libdir}/libi2ncommon_utils.so*