TARGET_LINK_LIBRARIES(${lib_file} ${pkgs_LDFLAGS})
SET_TARGET_PROPERTIES(${lib_file} PROPERTIES SOVERSION ${VERSION_MAJOR})
SET_TARGET_PROPERTIES(${lib_file} PROPERTIES VERSION ${VERSION})
- INSTALL(TARGETS ${lib_file} DESTINATION lib COMPONENT RuntimeLibraries)
+ INSTALL(TARGETS ${lib_file} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
ENDFOREACH(lib_file)
FOREACH(pcfile ${SUBMODULES})
CONFIGURE_FILE(${pcfile}.pc.in ${pcfile}.pc @ONLY)
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${pcfile}.pc")
- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pcfile}.pc DESTINATION lib/pkgconfig)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${pcfile}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
ENDFOREACH(pcfile)
FOREACH(hfile ${INSTALL_HEADERS})
Name: status
Summary: status library
Version: 0.0.1
-Release: 2
+Release: 1
Group: TBD
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(aul)
BuildRequires: cmake
Requires(post): /sbin/ldconfig
-requires(postun): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
%description
Status library.
Status library (devel).
%build
-export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
-LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--as-needed"
+%cmake .
make %{?jobs:-j%jobs}
%install