From: Duncan Mac-Vicar P Date: Thu, 13 Mar 2008 12:56:54 +0000 (+0000) Subject: more build fixes X-Git-Tag: 6.6.0~1264 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f57b76489f5bbef7956738847e065ebe8ab938e1;p=platform%2Fupstream%2Flibzypp.git more build fixes --- diff --git a/cmake/modules/ZyppCommon.cmake b/cmake/modules/ZyppCommon.cmake index 530988c5a..f63d55e56 100644 --- a/cmake/modules/ZyppCommon.cmake +++ b/cmake/modules/ZyppCommon.cmake @@ -38,11 +38,13 @@ MESSAGE( "** Manual files will be installed in ${MANDIR}" ) # CONFIGURATION # #################################################################### -SET( DOC_INSTALL_DIR - "${CMAKE_INSTALL_PREFIX}/share/doc/packages/${PACKAGE}" - CACHE PATH "The install dir for documentation (default prefix/share/doc/packages/${PACKAGE})" - FORCE -) +IF( NOT DEFINED DOC_INSTALL_DIR ) + SET( DOC_INSTALL_DIR + "${CMAKE_INSTALL_PREFIX}/share/doc/packages/${PACKAGE}" + CACHE PATH "The install dir for documentation (default prefix/share/doc/packages/${PACKAGE})" + FORCE + ) +ENDIF( NOT DEFINED DOC_INSTALL_DIR ) #################################################################### # INCLUDES # @@ -143,4 +145,4 @@ MACRO(GENERATE_PACKAGING PACKAGE VERSION) COMMAND ${CMAKE_MAKE_PROGRAM} svncheck ${AUTOBUILD_COMMAND} ) -ENDMACRO(GENERATE_PACKAGING) \ No newline at end of file +ENDMACRO(GENERATE_PACKAGING) diff --git a/libzypp.spec.cmake b/libzypp.spec.cmake index 1fb2e4f86..7e9808f5d 100644 --- a/libzypp.spec.cmake +++ b/libzypp.spec.cmake @@ -97,6 +97,7 @@ Authors: mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \ + -DDOC_INSTALL_DIR=%{_docdir} \ -DLIB=%{_lib} \ -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \ @@ -114,7 +115,11 @@ cd build make install DESTDIR=$RPM_BUILD_ROOT make -C doc/autodoc install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/zypp/repos.d + +%if 0%{?suse_version} %suse_update_desktop_file -G "" -C "" package-manager +%endif + make -C po install DESTDIR=$RPM_BUILD_ROOT # Create filelist with translations cd .. @@ -130,6 +135,7 @@ if [ -f /var/cache/zypp/zypp.db ]; then rm /var/cache/zypp/zypp.db; fi %run_ldconfig %clean +rm -rf "$RPM_BUILD_ROOT" %files -f zypp.lang %defattr(-,root,root)