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)
15 The package provides libConfig library.
18 %manifest packaging/libConfig.manifest
19 %defattr(644,root,root,755)
20 %attr(755,root,root) %{_libdir}/libConfig.so.0.0.1
21 %{_libdir}/libConfig.so.0
24 Summary: Development package for config library
25 Group: Development/Libraries
26 Requires: libConfig = %{version}-%{release}
28 Requires: pkgconfig(libLogger)
29 Requires: libjson-devel
32 The package provides libConfig development tools and libs.
35 %defattr(644,root,root,755)
36 %{_libdir}/libConfig.so
37 %{_includedir}/sc-tools
38 %{_libdir}/pkgconfig/*.pc
44 %{!?build_type:%define build_type "RELEASE"}
46 %if %{build_type} == "DEBUG" || %{build_type} == "PROFILING"
47 CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE"
48 CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE"
52 -D_LIB_VERSION_=%{lib_version} \
53 -DVERSION=%{version} \
54 -DCMAKE_BUILD_TYPE=%{build_type}
56 make -k %{?jobs:-j%jobs}
64 %post -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig