1 %define lib_version 0.0.1
4 Version: %{lib_version}
6 Source0: %{name}-%{version}.tar.gz
9 Summary: Config library
14 The package provides libConfig library.
17 Summary: Development package for config library
18 Group: Development/Libraries
20 Requires: pkgconfig(libLogger)
21 Requires: libjson-devel
24 The package provides libConfig development tools and libs.
27 %defattr(644,root,root,755)
28 %{_includedir}/sc-tools
29 %{_libdir}/pkgconfig/*.pc
35 %{!?build_type:%define build_type "RELEASE"}
37 %if %{build_type} == "DEBUG" || %{build_type} == "PROFILING"
38 CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE"
39 CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE"
43 -D_LIB_VERSION_=%{lib_version} \
44 -DVERSION=%{version} \
45 -DCMAKE_BUILD_TYPE=%{build_type}
47 make -k %{?jobs:-j%jobs}