4 # Detect Intra2net build environment
9 Summary: library with functions common in Intra2net programs
13 License: GPLv2 + linking exception
16 Source: %{name}-%{version}.tar.gz
17 Buildroot: /tmp/%{name}-%{version}-root
18 Prefix: /usr/intranator
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"
84 cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" $CMAKE_OPTS ../
86 make %{?_smp_mflags} VERBOSE=1
95 make DESTDIR=$RPM_BUILD_ROOT install
98 rm -fr $RPM_BUILD_ROOT
104 %defattr(-,root,root)
106 %{prefix}/lib/libi2ncommon.so*
109 %defattr(-,root,root)
110 # No static library for now
112 %{prefix}/lib/pkgconfig/*.pc
116 %defattr(-,root,root)
118 %{prefix}/lib/libi2ncommon_config.so*
122 %defattr(-,root,root)
124 %{prefix}/lib/libi2ncommon_xml.so*
128 %defattr(-,root,root)
130 %{prefix}/lib/libi2ncommon_utils.so*