CPackRPM:: Fix bug on Open SuSE 11.2 coming from initial fix of bug8972
Eric
This commit is contained in:
parent
d93bd3ac42
commit
5b0bbd6c33
|
@ -4,7 +4,7 @@
|
||||||
# used by CPack : http://www.cmake.org/Wiki/CMake:CPackConfiguration
|
# used by CPack : http://www.cmake.org/Wiki/CMake:CPackConfiguration
|
||||||
#
|
#
|
||||||
# However CPackRPM has specific features which are controlled by
|
# However CPackRPM has specific features which are controlled by
|
||||||
# the specifics CPACK_RPM_XXX variables.You'll find a detailed usage on
|
# the specifics CPACK_RPM_XXX variables. You'll find a detailed usage on
|
||||||
# the wiki:
|
# the wiki:
|
||||||
# http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29
|
# http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29
|
||||||
# However as a handy reminder here comes the list of specific variables:
|
# However as a handy reminder here comes the list of specific variables:
|
||||||
|
@ -53,6 +53,9 @@
|
||||||
# Mandatory : NO
|
# Mandatory : NO
|
||||||
# Default : -
|
# Default : -
|
||||||
# May be used to set RPM dependencies (requires).
|
# May be used to set RPM dependencies (requires).
|
||||||
|
# Note that you must enclose the complete requires string between quotes,
|
||||||
|
# for example:
|
||||||
|
# set(CPACK_RPM_PACKAGE_REQUIRES "python >= 2.5.0, cmake >= 2.8")
|
||||||
# CPACK_RPM_PACKAGES_PROVIDES
|
# CPACK_RPM_PACKAGES_PROVIDES
|
||||||
# Mandatory : NO
|
# Mandatory : NO
|
||||||
# Default : -
|
# Default : -
|
||||||
|
@ -365,8 +368,11 @@ SET(CPACK_RPM_DIRECTORY "${CPACK_TOPLEVEL_DIRECTORY}")
|
||||||
# Use files tree to construct files command (spec file)
|
# Use files tree to construct files command (spec file)
|
||||||
# We should not forget to include symlinks (thus -o -type l)
|
# We should not forget to include symlinks (thus -o -type l)
|
||||||
# We must remove the './' due to the local search (thus the sed)
|
# We must remove the './' due to the local search (thus the sed)
|
||||||
|
# Then we must authorize any man pages extension (adding * at the end)
|
||||||
|
# because rpmbuild may automatically compress those files
|
||||||
EXECUTE_PROCESS(COMMAND find -type f -o -type l
|
EXECUTE_PROCESS(COMMAND find -type f -o -type l
|
||||||
COMMAND sed {s/\\.//}
|
COMMAND sed {s/\\.//}
|
||||||
|
COMMAND sed {s/.*man.*\\/.*/&*/}
|
||||||
WORKING_DIRECTORY "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}"
|
WORKING_DIRECTORY "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}"
|
||||||
OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES)
|
OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES)
|
||||||
|
|
||||||
|
@ -424,10 +430,15 @@ Vendor: \@CPACK_RPM_PACKAGE_VENDOR\@
|
||||||
%prep
|
%prep
|
||||||
mv $RPM_BUILD_ROOT \@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot
|
mv $RPM_BUILD_ROOT \@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot
|
||||||
|
|
||||||
%build
|
#p build
|
||||||
mv \@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
#p install
|
%install
|
||||||
|
if [ -e $RPM_BUILD_ROOT ];
|
||||||
|
then
|
||||||
|
mv \@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot/* $RPM_BUILD_ROOT
|
||||||
|
else
|
||||||
|
mv \@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot $RPM_BUILD_ROOT
|
||||||
|
fi
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
|
||||||
|
@ -448,6 +459,8 @@ mv \@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot $RPM_BUILD_ROOT
|
||||||
${CPACK_RPM_INSTALL_FILES}
|
${CPACK_RPM_INSTALL_FILES}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 28 2009 Erk <eric.noulard@gmail.com>
|
||||||
|
Refix backup/restore install tree for OpenSuSE 11.2
|
||||||
* Sun Nov 22 2009 Erk <eric.noulard@gmail.com>
|
* Sun Nov 22 2009 Erk <eric.noulard@gmail.com>
|
||||||
Include symlinks in the file list.
|
Include symlinks in the file list.
|
||||||
* Sat Nov 14 2009 Erk <eric.noulard@gmail.com>
|
* Sat Nov 14 2009 Erk <eric.noulard@gmail.com>
|
||||||
|
|
Loading…
Reference in New Issue