1 %define lib_version 0.0.1
4 Version: %{lib_version}
6 Source0: %{name}-%{version}.tar.gz
9 Summary: Config library
12 BuildRequires: pkgconfig(sqlite3)
16 The package provides libConfig library.
19 %manifest packaging/libConfig.manifest
20 %defattr(644,root,root,755)
21 %attr(755,root,root) %{_libdir}/libConfig.so.0.0.1
22 %{_libdir}/libConfig.so.0
25 Summary: Development package for config library
26 Group: Development/Libraries
27 Requires: libConfig = %{version}-%{release}
29 Requires: pkgconfig(libLogger)
30 Requires: libjson-devel
33 The package provides libConfig development tools and libs.
36 %defattr(644,root,root,755)
37 %{_libdir}/libConfig.so
38 %{_includedir}/sc-tools
39 %{_libdir}/pkgconfig/*.pc
45 %{!?build_type:%define build_type "RELEASE"}
47 %if %{build_type} == "DEBUG" || %{build_type} == "PROFILING"
48 CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE"
49 CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE"
53 -D_LIB_VERSION_=%{lib_version} \
54 -DVERSION=%{version} \
55 -DCMAKE_BUILD_TYPE=%{build_type}
57 make -k %{?jobs:-j%jobs}
65 %post -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig