Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.9
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
cmake /
Modules /
[ HOME SHELL ]
Name
Size
Permission
Action
CMakeAddFortranSubdirectory
[ DIR ]
drwxr-xr-x
Compiler
[ DIR ]
drwxr-xr-x
CompilerId
[ DIR ]
drwxr-xr-x
FindCUDA
[ DIR ]
drwxr-xr-x
FortranCInterface
[ DIR ]
drwxr-xr-x
IntelVSImplicitPath
[ DIR ]
drwxr-xr-x
Platform
[ DIR ]
drwxr-xr-x
AddFileDependencies.cmake
1002
B
-rw-r--r--
AutomocInfo.cmake.in
675
B
-rw-r--r--
BasicConfigVersion-AnyNewerVer...
1.34
KB
-rw-r--r--
BasicConfigVersion-ExactVersio...
1.8
KB
-rw-r--r--
BasicConfigVersion-SameMajorVe...
1.69
KB
-rw-r--r--
BundleUtilities.cmake
28.62
KB
-rw-r--r--
CMake.cmake
772
B
-rw-r--r--
CMakeASM-ATTInformation.cmake
1020
B
-rw-r--r--
CMakeASMCompiler.cmake.in
545
B
-rw-r--r--
CMakeASMInformation.cmake
5.28
KB
-rw-r--r--
CMakeASM_MASMInformation.cmake
903
B
-rw-r--r--
CMakeASM_NASMInformation.cmake
1.45
KB
-rw-r--r--
CMakeAddFortranSubdirectory.cm...
7.73
KB
-rw-r--r--
CMakeAddNewLanguage.txt
1.49
KB
-rw-r--r--
CMakeBackwardCompatibilityC.cm...
3.38
KB
-rw-r--r--
CMakeBackwardCompatibilityCXX....
2.12
KB
-rw-r--r--
CMakeBorlandFindMake.cmake
736
B
-rw-r--r--
CMakeBuildSettings.cmake.in
681
B
-rw-r--r--
CMakeCCompiler.cmake.in
1.85
KB
-rw-r--r--
CMakeCCompilerABI.c
572
B
-rw-r--r--
CMakeCCompilerId.c.in
7.41
KB
-rw-r--r--
CMakeCInformation.cmake
7.56
KB
-rw-r--r--
CMakeCXXCompiler.cmake.in
2.01
KB
-rw-r--r--
CMakeCXXCompilerABI.cpp
450
B
-rw-r--r--
CMakeCXXCompilerId.cpp.in
7.32
KB
-rw-r--r--
CMakeCXXInformation.cmake
10.41
KB
-rw-r--r--
CMakeClDeps.cmake
1.64
KB
-rw-r--r--
CMakeCommonLanguageInclude.cma...
5.11
KB
-rw-r--r--
CMakeCompilerABI.h
1.18
KB
-rw-r--r--
CMakeConfigurableFile.in
35
B
-rw-r--r--
CMakeDependentOption.cmake
2.03
KB
-rw-r--r--
CMakeDetermineASM-ATTCompiler....
859
B
-rw-r--r--
CMakeDetermineASMCompiler.cmak...
7.24
KB
-rw-r--r--
CMakeDetermineASM_MASMCompiler...
942
B
-rw-r--r--
CMakeDetermineASM_NASMCompiler...
1011
B
-rw-r--r--
CMakeDetermineCCompiler.cmake
7.23
KB
-rw-r--r--
CMakeDetermineCXXCompiler.cmak...
7.31
KB
-rw-r--r--
CMakeDetermineCompiler.cmake
3.37
KB
-rw-r--r--
CMakeDetermineCompilerABI.cmak...
5.9
KB
-rw-r--r--
CMakeDetermineCompilerId.cmake
19.06
KB
-rw-r--r--
CMakeDetermineFortranCompiler....
9.94
KB
-rw-r--r--
CMakeDetermineJavaCompiler.cma...
4.13
KB
-rw-r--r--
CMakeDetermineRCCompiler.cmake
2.52
KB
-rw-r--r--
CMakeDetermineSystem.cmake
7.41
KB
-rw-r--r--
CMakeDetermineVSServicePack.cm...
6.6
KB
-rw-r--r--
CMakeExpandImportedTargets.cma...
5.77
KB
-rw-r--r--
CMakeExportBuildSettings.cmake
1.67
KB
-rw-r--r--
CMakeExtraGeneratorDetermineCo...
4.94
KB
-rw-r--r--
CMakeFindBinUtils.cmake
2.76
KB
-rw-r--r--
CMakeFindCodeBlocks.cmake
1.06
KB
-rw-r--r--
CMakeFindEclipseCDT4.cmake
4.65
KB
-rw-r--r--
CMakeFindFrameworks.cmake
1.16
KB
-rw-r--r--
CMakeFindKDevelop3.cmake
934
B
-rw-r--r--
CMakeFindPackageMode.cmake
6.2
KB
-rw-r--r--
CMakeFindWMake.cmake
737
B
-rw-r--r--
CMakeFindXCode.cmake
720
B
-rw-r--r--
CMakeForceCompiler.cmake
2.98
KB
-rw-r--r--
CMakeFortranCompiler.cmake.in
2.09
KB
-rw-r--r--
CMakeFortranCompilerABI.F
1023
B
-rw-r--r--
CMakeFortranCompilerId.F.in
4.38
KB
-rw-r--r--
CMakeFortranInformation.cmake
9.62
KB
-rw-r--r--
CMakeGenericSystem.cmake
6.66
KB
-rw-r--r--
CMakeGraphVizOptions.cmake
3
KB
-rw-r--r--
CMakeImportBuildSettings.cmake
1008
B
-rw-r--r--
CMakeJOMFindMake.cmake
736
B
-rw-r--r--
CMakeJavaCompiler.cmake.in
538
B
-rw-r--r--
CMakeJavaInformation.cmake
2.19
KB
-rw-r--r--
CMakeMSYSFindMake.cmake
954
B
-rw-r--r--
CMakeMinGWFindMake.cmake
1.24
KB
-rw-r--r--
CMakeNMakeFindMake.cmake
738
B
-rw-r--r--
CMakeNinjaFindMake.cmake
740
B
-rw-r--r--
CMakePackageConfigHelpers.cmak...
11.29
KB
-rw-r--r--
CMakeParseArguments.cmake
5.65
KB
-rw-r--r--
CMakeParseImplicitLinkInfo.cma...
6.88
KB
-rw-r--r--
CMakePlatformId.h.in
4.29
KB
-rw-r--r--
CMakePrintHelpers.cmake
4.32
KB
-rw-r--r--
CMakePrintSystemInformation.cm...
2.38
KB
-rw-r--r--
CMakePushCheckState.cmake
3.33
KB
-rw-r--r--
CMakeRCCompiler.cmake.in
267
B
-rw-r--r--
CMakeRCInformation.cmake
1.88
KB
-rw-r--r--
CMakeSystem.cmake.in
537
B
-rw-r--r--
CMakeSystemSpecificInformation...
2.79
KB
-rw-r--r--
CMakeTestASM-ATTCompiler.cmake
992
B
-rw-r--r--
CMakeTestASMCompiler.cmake
1.3
KB
-rw-r--r--
CMakeTestASM_MASMCompiler.cmak...
1021
B
-rw-r--r--
CMakeTestASM_NASMCompiler.cmak...
989
B
-rw-r--r--
CMakeTestCCompiler.cmake
3.52
KB
-rw-r--r--
CMakeTestCXXCompiler.cmake
3.41
KB
-rw-r--r--
CMakeTestCompilerCommon.cmake
894
B
-rw-r--r--
CMakeTestFortranCompiler.cmake
4.76
KB
-rw-r--r--
CMakeTestGNU.c
175
B
-rw-r--r--
CMakeTestJavaCompiler.cmake
950
B
-rw-r--r--
CMakeTestRCCompiler.cmake
1.01
KB
-rw-r--r--
CMakeTestWatcomVersion.c
20
B
-rw-r--r--
CMakeUnixFindMake.cmake
1.02
KB
-rw-r--r--
CMakeVS10FindMake.cmake
2.65
KB
-rw-r--r--
CMakeVS11FindMake.cmake
2.61
KB
-rw-r--r--
CMakeVS12FindMake.cmake
1.09
KB
-rw-r--r--
CMakeVS6BackwardCompatibility....
1.4
KB
-rw-r--r--
CMakeVS6FindMake.cmake
1
KB
-rw-r--r--
CMakeVS71FindMake.cmake
1.06
KB
-rw-r--r--
CMakeVS7BackwardCompatibility....
1.4
KB
-rw-r--r--
CMakeVS7FindMake.cmake
1021
B
-rw-r--r--
CMakeVS8FindMake.cmake
1.45
KB
-rw-r--r--
CMakeVS9FindMake.cmake
1.76
KB
-rw-r--r--
CMakeVerifyManifest.cmake
4.16
KB
-rw-r--r--
CPack.DS_Store.in
12
KB
-rw-r--r--
CPack.Description.plist.in
438
B
-rw-r--r--
CPack.Info.plist.in
1.1
KB
-rw-r--r--
CPack.OSXScriptLauncher.in
28.9
KB
-rw-r--r--
CPack.OSXScriptLauncher.rsrc.i...
362
B
-rw-r--r--
CPack.OSXX11.Info.plist.in
1.57
KB
-rw-r--r--
CPack.OSXX11.main.scpt.in
1.83
KB
-rw-r--r--
CPack.RuntimeScript.in
1.85
KB
-rw-r--r--
CPack.STGZ_Header.sh.in
3.76
KB
-rw-r--r--
CPack.VolumeIcon.icns.in
44.67
KB
-rw-r--r--
CPack.background.png.in
45.97
KB
-rw-r--r--
CPack.cmake
22.86
KB
-rw-r--r--
CPack.distribution.dist.in
448
B
-rw-r--r--
CPackBundle.cmake
1.77
KB
-rw-r--r--
CPackComponent.cmake
20.24
KB
-rw-r--r--
CPackCygwin.cmake
1.13
KB
-rw-r--r--
CPackDMG.cmake
2.66
KB
-rw-r--r--
CPackDeb.cmake
15.34
KB
-rw-r--r--
CPackNSIS.cmake
4.57
KB
-rw-r--r--
CPackPackageMaker.cmake
1.56
KB
-rw-r--r--
CPackRPM.cmake
42.01
KB
-rw-r--r--
CPackWIX.cmake
4.32
KB
-rw-r--r--
CPackZIP.cmake
1.42
KB
-rw-r--r--
CTest.cmake
9.7
KB
-rw-r--r--
CTestScriptMode.cmake
989
B
-rw-r--r--
CTestTargets.cmake
3.42
KB
-rw-r--r--
CTestUseLaunchers.cmake
2.7
KB
-rw-r--r--
CheckCCompilerFlag.cmake
2.9
KB
-rw-r--r--
CheckCSourceCompiles.cmake
3.45
KB
-rw-r--r--
CheckCSourceRuns.cmake
3.44
KB
-rw-r--r--
CheckCXXCompilerFlag.cmake
3.07
KB
-rw-r--r--
CheckCXXSourceCompiles.cmake
3.48
KB
-rw-r--r--
CheckCXXSourceRuns.cmake
3.46
KB
-rw-r--r--
CheckCXXSymbolExists.cmake
1.94
KB
-rw-r--r--
CheckForPthreads.c
701
B
-rw-r--r--
CheckFortranFunctionExists.cma...
2.49
KB
-rw-r--r--
CheckFunctionExists.c
380
B
-rw-r--r--
CheckFunctionExists.cmake
2.97
KB
-rw-r--r--
CheckIncludeFile.c.in
130
B
-rw-r--r--
CheckIncludeFile.cmake
3.03
KB
-rw-r--r--
CheckIncludeFile.cxx.in
65
B
-rw-r--r--
CheckIncludeFileCXX.cmake
3.05
KB
-rw-r--r--
CheckIncludeFiles.cmake
3.47
KB
-rw-r--r--
CheckLanguage.cmake
2.64
KB
-rw-r--r--
CheckLibraryExists.cmake
2.79
KB
-rw-r--r--
CheckLibraryExists.lists.in
298
B
-rw-r--r--
CheckPrototypeDefinition.c.in
514
B
-rw-r--r--
CheckPrototypeDefinition.cmake
4.04
KB
-rw-r--r--
CheckSizeOf.cmake
813
B
-rw-r--r--
CheckStructHasMember.cmake
1.77
KB
-rw-r--r--
CheckSymbolExists.cmake
4.16
KB
-rw-r--r--
CheckTypeSize.c.in
801
B
-rw-r--r--
CheckTypeSize.cmake
7.47
KB
-rw-r--r--
CheckTypeSizeMap.cmake.in
31
B
-rw-r--r--
CheckVariableExists.c
363
B
-rw-r--r--
CheckVariableExists.cmake
2.47
KB
-rw-r--r--
Dart.cmake
4.06
KB
-rw-r--r--
DartConfiguration.tcl.in
2.74
KB
-rw-r--r--
DeployQt4.cmake
13.19
KB
-rw-r--r--
Documentation.cmake
1.45
KB
-rw-r--r--
DummyCXXFile.cxx
27
B
-rw-r--r--
ExternalData.cmake
29.97
KB
-rw-r--r--
ExternalData_config.cmake.in
268
B
-rw-r--r--
ExternalProject.cmake
61.48
KB
-rw-r--r--
FLTKCompatibility.cmake
635
B
-rw-r--r--
FeatureSummary.cmake
19.38
KB
-rw-r--r--
FindALSA.cmake
2.14
KB
-rw-r--r--
FindASPELL.cmake
1.47
KB
-rw-r--r--
FindAVIFile.cmake
1.74
KB
-rw-r--r--
FindArmadillo.cmake
3.82
KB
-rw-r--r--
FindBISON.cmake
7.11
KB
-rw-r--r--
FindBLAS.cmake
16.39
KB
-rw-r--r--
FindBZip2.cmake
2.38
KB
-rw-r--r--
FindBoost.cmake
48.76
KB
-rw-r--r--
FindBullet.cmake
3.18
KB
-rw-r--r--
FindCABLE.cmake
2.84
KB
-rw-r--r--
FindCUDA.cmake
65.86
KB
-rw-r--r--
FindCURL.cmake
2.29
KB
-rw-r--r--
FindCVS.cmake
2.18
KB
-rw-r--r--
FindCoin3D.cmake
2.67
KB
-rw-r--r--
FindCups.cmake
2.91
KB
-rw-r--r--
FindCurses.cmake
6.57
KB
-rw-r--r--
FindCxxTest.cmake
7.61
KB
-rw-r--r--
FindCygwin.cmake
924
B
-rw-r--r--
FindDCMTK.cmake
4.44
KB
-rw-r--r--
FindDart.cmake
1.32
KB
-rw-r--r--
FindDevIL.cmake
2.82
KB
-rw-r--r--
FindDoxygen.cmake
5.05
KB
-rw-r--r--
FindEXPAT.cmake
2.37
KB
-rw-r--r--
FindFLEX.cmake
6.27
KB
-rw-r--r--
FindFLTK.cmake
11.1
KB
-rw-r--r--
FindFLTK2.cmake
9.01
KB
-rw-r--r--
FindFreetype.cmake
5.08
KB
-rw-r--r--
FindGCCXML.cmake
960
B
-rw-r--r--
FindGDAL.cmake
3.26
KB
-rw-r--r--
FindGIF.cmake
2.66
KB
-rw-r--r--
FindGLEW.cmake
1.27
KB
-rw-r--r--
FindGLU.cmake
1020
B
-rw-r--r--
FindGLUT.cmake
3.01
KB
-rw-r--r--
FindGTK.cmake
4.11
KB
-rw-r--r--
FindGTK2.cmake
22.83
KB
-rw-r--r--
FindGTest.cmake
5.41
KB
-rw-r--r--
FindGettext.cmake
8.1
KB
-rw-r--r--
FindGit.cmake
2.06
KB
-rw-r--r--
FindGnuTLS.cmake
2.37
KB
-rw-r--r--
FindGnuplot.cmake
1.96
KB
-rw-r--r--
FindHDF5.cmake
14.34
KB
-rw-r--r--
FindHSPELL.cmake
2.04
KB
-rw-r--r--
FindHTMLHelp.cmake
1.8
KB
-rw-r--r--
FindHg.cmake
1.79
KB
-rw-r--r--
FindITK.cmake
2.19
KB
-rw-r--r--
FindIcotool.cmake
1.66
KB
-rw-r--r--
FindImageMagick.cmake
9.96
KB
-rw-r--r--
FindJNI.cmake
9.93
KB
-rw-r--r--
FindJPEG.cmake
1.57
KB
-rw-r--r--
FindJasper.cmake
2.16
KB
-rw-r--r--
FindJava.cmake
7.83
KB
-rw-r--r--
FindKDE3.cmake
10.27
KB
-rw-r--r--
FindKDE4.cmake
3.48
KB
-rw-r--r--
FindLAPACK.cmake
9.28
KB
-rw-r--r--
FindLATEX.cmake
3.24
KB
-rw-r--r--
FindLibArchive.cmake
2.87
KB
-rw-r--r--
FindLibLZMA.cmake
3.53
KB
-rw-r--r--
FindLibXml2.cmake
2.67
KB
-rw-r--r--
FindLibXslt.cmake
2.86
KB
-rw-r--r--
FindLua50.cmake
2.75
KB
-rw-r--r--
FindLua51.cmake
2.58
KB
-rw-r--r--
FindLua52.cmake
2.2
KB
-rw-r--r--
FindMFC.cmake
2.24
KB
-rw-r--r--
FindMPEG.cmake
1.62
KB
-rw-r--r--
FindMPEG2.cmake
1.88
KB
-rw-r--r--
FindMPI.cmake
29.25
KB
-rw-r--r--
FindMatlab.cmake
3.39
KB
-rw-r--r--
FindMotif.cmake
1.29
KB
-rw-r--r--
FindOpenAL.cmake
3.85
KB
-rw-r--r--
FindOpenGL.cmake
5.29
KB
-rw-r--r--
FindOpenMP.cmake
5.3
KB
-rw-r--r--
FindOpenSSL.cmake
9.44
KB
-rw-r--r--
FindOpenSceneGraph.cmake
7.26
KB
-rw-r--r--
FindOpenThreads.cmake
4.16
KB
-rw-r--r--
FindPHP4.cmake
2.48
KB
-rw-r--r--
FindPNG.cmake
4.29
KB
-rw-r--r--
FindPackageHandleStandardArgs....
13.01
KB
-rw-r--r--
FindPackageMessage.cmake
1.92
KB
-rw-r--r--
FindPerl.cmake
3.03
KB
-rw-r--r--
FindPerlLibs.cmake
8.08
KB
-rw-r--r--
FindPhysFS.cmake
1.61
KB
-rw-r--r--
FindPike.cmake
1.19
KB
-rw-r--r--
FindPkgConfig.cmake
14.5
KB
-rw-r--r--
FindPostgreSQL.cmake
7.57
KB
-rw-r--r--
FindProducer.cmake
2.7
KB
-rw-r--r--
FindProtobuf.cmake
7.89
KB
-rw-r--r--
FindPythonInterp.cmake
6.07
KB
-rw-r--r--
FindPythonLibs.cmake
11.29
KB
-rw-r--r--
FindQt.cmake
6.07
KB
-rw-r--r--
FindQt3.cmake
9.48
KB
-rw-r--r--
FindQt4.cmake
59.73
KB
-rw-r--r--
FindQuickTime.cmake
1.39
KB
-rw-r--r--
FindRTI.cmake
3.57
KB
-rw-r--r--
FindRuby.cmake
9.85
KB
-rw-r--r--
FindSDL.cmake
7.24
KB
-rw-r--r--
FindSDL_image.cmake
3.88
KB
-rw-r--r--
FindSDL_mixer.cmake
3.88
KB
-rw-r--r--
FindSDL_net.cmake
3.74
KB
-rw-r--r--
FindSDL_sound.cmake
13.48
KB
-rw-r--r--
FindSDL_ttf.cmake
3.74
KB
-rw-r--r--
FindSWIG.cmake
2.89
KB
-rw-r--r--
FindSelfPackers.cmake
1.84
KB
-rw-r--r--
FindSquish.cmake
10.14
KB
-rw-r--r--
FindSubversion.cmake
5.65
KB
-rw-r--r--
FindTCL.cmake
7.97
KB
-rw-r--r--
FindTIFF.cmake
1.92
KB
-rw-r--r--
FindTclStub.cmake
4.73
KB
-rw-r--r--
FindTclsh.cmake
3.74
KB
-rw-r--r--
FindThreads.cmake
5.84
KB
-rw-r--r--
FindUnixCommands.cmake
1.48
KB
-rw-r--r--
FindVTK.cmake
5.78
KB
-rw-r--r--
FindWget.cmake
1.26
KB
-rw-r--r--
FindWish.cmake
3.01
KB
-rw-r--r--
FindX11.cmake
20.05
KB
-rw-r--r--
FindXMLRPC.cmake
4.97
KB
-rw-r--r--
FindZLIB.cmake
3.58
KB
-rw-r--r--
Findosg.cmake
2.21
KB
-rw-r--r--
FindosgAnimation.cmake
2.17
KB
-rw-r--r--
FindosgDB.cmake
2.08
KB
-rw-r--r--
FindosgFX.cmake
2.08
KB
-rw-r--r--
FindosgGA.cmake
2.09
KB
-rw-r--r--
FindosgIntrospection.cmake
2.26
KB
-rw-r--r--
FindosgManipulator.cmake
2.24
KB
-rw-r--r--
FindosgParticle.cmake
2.17
KB
-rw-r--r--
FindosgPresentation.cmake
2.33
KB
-rw-r--r--
FindosgProducer.cmake
2.18
KB
-rw-r--r--
FindosgQt.cmake
2.14
KB
-rw-r--r--
FindosgShadow.cmake
2.14
KB
-rw-r--r--
FindosgSim.cmake
2.09
KB
-rw-r--r--
FindosgTerrain.cmake
2.15
KB
-rw-r--r--
FindosgText.cmake
2.09
KB
-rw-r--r--
FindosgUtil.cmake
2.1
KB
-rw-r--r--
FindosgViewer.cmake
2.13
KB
-rw-r--r--
FindosgVolume.cmake
2.13
KB
-rw-r--r--
FindosgWidget.cmake
2.18
KB
-rw-r--r--
Findosg_functions.cmake
3.05
KB
-rw-r--r--
FindwxWidgets.cmake
36.04
KB
-rw-r--r--
FindwxWindows.cmake
24.15
KB
-rw-r--r--
FortranCInterface.cmake
12.16
KB
-rw-r--r--
GNUInstallDirs.cmake
7.18
KB
-rw-r--r--
GenerateExportHeader.cmake
12.41
KB
-rw-r--r--
GetPrerequisites.cmake
28.59
KB
-rw-r--r--
ITKCompatibility.cmake
689
B
-rw-r--r--
InstallRequiredSystemLibraries...
14.93
KB
-rw-r--r--
KDE3Macros.cmake
13.26
KB
-rw-r--r--
MacOSXBundleInfo.plist.in
1.22
KB
-rw-r--r--
MacOSXFrameworkInfo.plist.in
886
B
-rw-r--r--
MacroAddFileDependencies.cmake
1.29
KB
-rw-r--r--
NSIS.InstallOptions.ini.in
678
B
-rw-r--r--
NSIS.template.in
27.82
KB
-rw-r--r--
ProcessorCount.cmake
6.84
KB
-rw-r--r--
Qt4ConfigDependentSettings.cma...
7.9
KB
-rw-r--r--
Qt4Macros.cmake
18.11
KB
-rw-r--r--
RepositoryInfo.txt.in
56
B
-rw-r--r--
SelectLibraryConfigurations.cm...
3.39
KB
-rw-r--r--
Squish4RunTestCase.bat
629
B
-rw-r--r--
Squish4RunTestCase.sh
773
B
-rw-r--r--
SquishRunTestCase.bat
219
B
-rw-r--r--
SquishRunTestCase.sh
272
B
-rw-r--r--
SquishTestScript.cmake
3.8
KB
-rw-r--r--
SystemInformation.cmake
3.57
KB
-rw-r--r--
SystemInformation.in
4.59
KB
-rw-r--r--
TestBigEndian.cmake
4.51
KB
-rw-r--r--
TestCXXAcceptsFlag.cmake
1.78
KB
-rw-r--r--
TestEndianess.c.in
871
B
-rw-r--r--
TestForANSIForScope.cmake
1.77
KB
-rw-r--r--
TestForANSIStreamHeaders.cmake
1.29
KB
-rw-r--r--
TestForANSIStreamHeaders.cxx
60
B
-rw-r--r--
TestForAnsiForScope.cxx
87
B
-rw-r--r--
TestForSSTREAM.cmake
1.74
KB
-rw-r--r--
TestForSSTREAM.cxx
154
B
-rw-r--r--
TestForSTDNamespace.cmake
1.69
KB
-rw-r--r--
TestForSTDNamespace.cxx
75
B
-rw-r--r--
UseEcos.cmake
10.1
KB
-rw-r--r--
UseJava.cmake
35.32
KB
-rw-r--r--
UseJavaClassFilelist.cmake
2.13
KB
-rw-r--r--
UseJavaSymlinks.cmake
1.09
KB
-rw-r--r--
UsePkgConfig.cmake
2.95
KB
-rw-r--r--
UseQt4.cmake
2.96
KB
-rw-r--r--
UseSWIG.cmake
9.97
KB
-rw-r--r--
UseVTK40.cmake
1.14
KB
-rw-r--r--
UseVTKBuildSettings40.cmake
1.89
KB
-rw-r--r--
UseVTKConfig40.cmake
13.12
KB
-rw-r--r--
Use_wxWindows.cmake
2.37
KB
-rw-r--r--
UsewxWidgets.cmake
3.17
KB
-rw-r--r--
VTKCompatibility.cmake
2.13
KB
-rw-r--r--
WIX.template.in
1.47
KB
-rw-r--r--
WriteBasicConfigVersionFile.cm...
1.72
KB
-rw-r--r--
ecos_clean.cmake
968
B
-rw-r--r--
exportheader.cmake.in
911
B
-rw-r--r--
kde3init_dummy.cpp.in
227
B
-rw-r--r--
kde3uic.cmake
1.21
KB
-rw-r--r--
readme.txt
9.1
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CPackRPM.cmake
##section Variables specific to CPack RPM generator ##end ##module # - The builtin (binary) CPack RPM generator (Unix only) # CPackRPM may be used to create RPM package using CPack. # CPackRPM is a CPack generator thus it uses the CPACK_XXX variables # used by CPack : http://www.cmake.org/Wiki/CMake:CPackConfiguration # # However CPackRPM has specific features which are controlled by # the specifics CPACK_RPM_XXX variables. CPackRPM is a component aware # generator so when CPACK_RPM_COMPONENT_INSTALL is ON some more # CPACK_RPM_<ComponentName>_XXXX variables may be used in order # to have component specific values. Note however that <componentName> # refers to the **grouping name**. This may be either a component name # or a component GROUP name. # Usually those vars correspond to RPM spec file entities, one may find # information about spec files here http://www.rpm.org/wiki/Docs. # You'll find a detailed usage of CPackRPM on the wiki: # http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29 # However as a handy reminder here comes the list of specific variables: ##end # ##variable # CPACK_RPM_PACKAGE_SUMMARY - The RPM package summary. # Mandatory : YES # Default : CPACK_PACKAGE_DESCRIPTION_SUMMARY ##end ##variable # CPACK_RPM_PACKAGE_NAME - The RPM package name. # Mandatory : YES # Default : CPACK_PACKAGE_NAME ##end ##variable # CPACK_RPM_PACKAGE_VERSION - The RPM package version. # Mandatory : YES # Default : CPACK_PACKAGE_VERSION ##end ##variable # CPACK_RPM_PACKAGE_ARCHITECTURE - The RPM package architecture. # Mandatory : NO # Default : - # This may be set to "noarch" if you # know you are building a noarch package. ##end ##variable # CPACK_RPM_PACKAGE_RELEASE - The RPM package release. # Mandatory : YES # Default : 1 # This is the numbering of the RPM package # itself, i.e. the version of the packaging and not the version of the # content (see CPACK_RPM_PACKAGE_VERSION). One may change the default # value if the previous packaging was buggy and/or you want to put here # a fancy Linux distro specific numbering. ##end ##variable # CPACK_RPM_PACKAGE_LICENSE - The RPM package license policy. # Mandatory : YES # Default : "unknown" ##end ##variable # CPACK_RPM_PACKAGE_GROUP - The RPM package group. # Mandatory : YES # Default : "unknown" ##end ##variable # CPACK_RPM_PACKAGE_VENDOR - The RPM package vendor. # Mandatory : YES # Default : CPACK_PACKAGE_VENDOR if set or "unknown" ##end ##variable # CPACK_RPM_PACKAGE_URL - The projects URL. # Mandatory : NO # Default : - ##end ##variable # CPACK_RPM_PACKAGE_DESCRIPTION - RPM package description. # Mandatory : YES # Default : CPACK_PACKAGE_DESCRIPTION_FILE if set or "no package description available" ##end ##variable # CPACK_RPM_COMPRESSION_TYPE - RPM compression type. # Mandatory : NO # Default : - # May be used to override RPM compression type to be used # to build the RPM. For example some Linux distribution now default # to lzma or xz compression whereas older cannot use such RPM. # Using this one can enforce compression type to be used. # Possible value are: lzma, xz, bzip2 and gzip. ##end ##variable # CPACK_RPM_PACKAGE_REQUIRES - RPM spec requires field. # Mandatory : NO # Default : - # 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") # The required package list of an RPM file could be printed with # rpm -qp --requires file.rpm ##end ##variable # CPACK_RPM_PACKAGE_SUGGESTS - RPM spec suggest field. # Mandatory : NO # Default : - # May be used to set weak RPM dependencies (suggests). # Note that you must enclose the complete requires string between quotes. ##end ##variable # CPACK_RPM_PACKAGE_PROVIDES - RPM spec provides field. # Mandatory : NO # Default : - # May be used to set RPM dependencies (provides). # The provided package list of an RPM file could be printed with # rpm -qp --provides file.rpm ##end ##variable # CPACK_RPM_PACKAGE_OBSOLETES - RPM spec obsoletes field. # Mandatory : NO # Default : - # May be used to set RPM packages that are obsoleted by this one. ##end ##variable # CPACK_RPM_PACKAGE_RELOCATABLE - build a relocatable RPM. # Mandatory : NO # Default : CPACK_PACKAGE_RELOCATABLE # If this variable is set to TRUE or ON CPackRPM will try # to build a relocatable RPM package. A relocatable RPM may # be installed using rpm --prefix or --relocate in order to # install it at an alternate place see rpm(8). # Note that currently this may fail if CPACK_SET_DESTDIR is set to ON. # If CPACK_SET_DESTDIR is set then you will get a warning message # but if there is file installed with absolute path you'll get # unexpected behavior. ##end ##variable # CPACK_RPM_SPEC_INSTALL_POST - [deprecated]. # Mandatory : NO # Default : - # This way of specifying post-install script is deprecated use # CPACK_RPM_POST_INSTALL_SCRIPT_FILE # May be used to set an RPM post-install command inside the spec file. # For example setting it to "/bin/true" may be used to prevent # rpmbuild to strip binaries. ##end ##variable # CPACK_RPM_SPEC_MORE_DEFINE - RPM extended spec definitions lines. # Mandatory : NO # Default : - # May be used to add any %define lines to the generated spec file. ##end ##variable # CPACK_RPM_PACKAGE_DEBUG - Toggle CPackRPM debug output. # Mandatory : NO # Default : - # May be set when invoking cpack in order to trace debug information # during CPack RPM run. For example you may launch CPack like this # cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM ##end ##variable # CPACK_RPM_USER_BINARY_SPECFILE - A user provided spec file. # Mandatory : NO # Default : - # May be set by the user in order to specify a USER binary spec file # to be used by CPackRPM instead of generating the file. # The specified file will be processed by configure_file( @ONLY). # One can provide a component specific file by setting # CPACK_RPM_<componentName>_USER_BINARY_SPECFILE. ##end ##variable # CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE - Spec file template. # Mandatory : NO # Default : - # If set CPack will generate a template for USER specified binary # spec file and stop with an error. For example launch CPack like this # cpack -D CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE=1 -G RPM # The user may then use this file in order to hand-craft is own # binary spec file which may be used with CPACK_RPM_USER_BINARY_SPECFILE. ##end ##variable # CPACK_RPM_PRE_INSTALL_SCRIPT_FILE # CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE # Mandatory : NO # Default : - # May be used to embed a pre (un)installation script in the spec file. # The refered script file(s) will be read and directly # put after the %pre or %preun section # If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for # each component can be overridden with # CPACK_RPM_<COMPONENT>_PRE_INSTALL_SCRIPT_FILE and # CPACK_RPM_<COMPONENT>_PRE_UNINSTALL_SCRIPT_FILE # One may verify which scriptlet has been included with # rpm -qp --scripts package.rpm ##end ##variable # CPACK_RPM_POST_INSTALL_SCRIPT_FILE # CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE # Mandatory : NO # Default : - # May be used to embed a post (un)installation script in the spec file. # The refered script file(s) will be read and directly # put after the %post or %postun section # If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for # each component can be overridden with # CPACK_RPM_<COMPONENT>_POST_INSTALL_SCRIPT_FILE and # CPACK_RPM_<COMPONENT>_POST_UNINSTALL_SCRIPT_FILE # One may verify which scriptlet has been included with # rpm -qp --scripts package.rpm ##end ##variable # CPACK_RPM_USER_FILELIST # CPACK_RPM_<COMPONENT>_USER_FILELIST # Mandatory : NO # Default : - # May be used to explicitly specify %(<directive>) file line # in the spec file. Like %config(noreplace) or any other directive # that be found in the %files section. Since CPackRPM is generating # the list of files (and directories) the user specified files of # the CPACK_RPM_<COMPONENT>_USER_FILELIST list will be removed from the generated list. ##end ##variable # CPACK_RPM_CHANGELOG_FILE - RPM changelog file. # Mandatory : NO # Default : - # May be used to embed a changelog in the spec file. # The refered file will be read and directly put after the %changelog # section. ##end ##variable # CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST - list of path to be excluded. # Mandatory : NO # Default : /etc /etc/init.d /usr /usr/share /usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/include # May be used to exclude path (directories or files) from the auto-generated # list of paths discovered by CPack RPM. The defaut value contains a reasonable # set of values if the variable is not defined by the user. If the variable # is defined by the user then CPackRPM will NOT any of the default path. # If you want to add some path to the default list then you can use # CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION variable. ##end ##variable # CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION - additional list of path to be excluded. # Mandatory : NO # Default : - # May be used to add more exclude path (directories or files) from the initial # default list of excluded paths. See CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST. ##end #============================================================================= # Copyright 2007-2009 Kitware, Inc. # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. # # This software is distributed WITHOUT ANY WARRANTY; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the License for more information. #============================================================================= # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) # Author: Eric Noulard with the help of Alexander Neundorf. if(CMAKE_BINARY_DIR) message(FATAL_ERROR "CPackRPM.cmake may only be used by CPack internally.") endif() if(NOT UNIX) message(FATAL_ERROR "CPackRPM.cmake may only be used under UNIX.") endif() # rpmbuild is the basic command for building RPM package # it may be a simple (symbolic) link to rpm command. find_program(RPMBUILD_EXECUTABLE rpmbuild) # Check version of the rpmbuild tool this would be easier to # track bugs with users and CPackRPM debug mode. # We may use RPM version in order to check for available version dependent features if(RPMBUILD_EXECUTABLE) execute_process(COMMAND ${RPMBUILD_EXECUTABLE} --version OUTPUT_VARIABLE _TMP_VERSION ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) string(REGEX REPLACE "^.* " "" RPMBUILD_EXECUTABLE_VERSION ${_TMP_VERSION}) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: rpmbuild version is <${RPMBUILD_EXECUTABLE_VERSION}>") endif() endif() if(NOT RPMBUILD_EXECUTABLE) message(FATAL_ERROR "RPM package requires rpmbuild executable") endif() # Display lsb_release output if DEBUG mode enable # This will help to diagnose problem with CPackRPM # because we will know on which kind of Linux we are if(CPACK_RPM_PACKAGE_DEBUG) find_program(LSB_RELEASE_EXECUTABLE lsb_release) if(LSB_RELEASE_EXECUTABLE) execute_process(COMMAND ${LSB_RELEASE_EXECUTABLE} -a OUTPUT_VARIABLE _TMP_LSB_RELEASE_OUTPUT ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) string(REGEX REPLACE "\n" ", " LSB_RELEASE_OUTPUT ${_TMP_LSB_RELEASE_OUTPUT}) else () set(LSB_RELEASE_OUTPUT "lsb_release not installed/found!") endif() message("CPackRPM:Debug: LSB_RELEASE = ${LSB_RELEASE_OUTPUT}") endif() # We may use RPM version in the future in order # to shut down warning about space in buildtree # some recent RPM version should support space in different places. # not checked [yet]. if(CPACK_TOPLEVEL_DIRECTORY MATCHES ".* .*") message(FATAL_ERROR "${RPMBUILD_EXECUTABLE} can't handle paths with spaces, use a build directory without spaces for building RPMs.") endif() # If rpmbuild is found # we try to discover alien since we may be on non RPM distro like Debian. # In this case we may try to to use more advanced features # like generating RPM directly from DEB using alien. # FIXME feature not finished (yet) find_program(ALIEN_EXECUTABLE alien) if(ALIEN_EXECUTABLE) message(STATUS "alien found, we may be on a Debian based distro.") endif() # Are we packaging components ? if(CPACK_RPM_PACKAGE_COMPONENT) set(CPACK_RPM_PACKAGE_COMPONENT_PART_NAME "-${CPACK_RPM_PACKAGE_COMPONENT}") else() set(CPACK_RPM_PACKAGE_COMPONENT_PART_NAME "") endif() set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}${CPACK_RPM_PACKAGE_COMPONENT_PART_PATH}") # # Use user-defined RPM specific variables value # or generate reasonable default value from # CPACK_xxx generic values. # The variables comes from the needed (mandatory or not) # values found in the RPM specification file aka ".spec" file. # The variables which may/should be defined are: # # CPACK_RPM_PACKAGE_SUMMARY (mandatory) if(NOT CPACK_RPM_PACKAGE_SUMMARY) # if neither var is defined lets use the name as summary if(NOT CPACK_PACKAGE_DESCRIPTION_SUMMARY) string(TOLOWER "${CPACK_PACKAGE_NAME}" CPACK_RPM_PACKAGE_SUMMARY) else() set(CPACK_RPM_PACKAGE_SUMMARY ${CPACK_PACKAGE_DESCRIPTION_SUMMARY}) endif() endif() # CPACK_RPM_PACKAGE_NAME (mandatory) if(NOT CPACK_RPM_PACKAGE_NAME) string(TOLOWER "${CPACK_PACKAGE_NAME}" CPACK_RPM_PACKAGE_NAME) endif() # CPACK_RPM_PACKAGE_VERSION (mandatory) if(NOT CPACK_RPM_PACKAGE_VERSION) if(NOT CPACK_PACKAGE_VERSION) message(FATAL_ERROR "RPM package requires a package version") endif() set(CPACK_RPM_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}) endif() # Replace '-' in version with '_' # '-' character is an Illegal RPM version character # it is illegal because it is used to separate # RPM "Version" from RPM "Release" string(REPLACE "-" "_" CPACK_RPM_PACKAGE_VERSION ${CPACK_RPM_PACKAGE_VERSION}) # CPACK_RPM_PACKAGE_ARCHITECTURE (optional) if(CPACK_RPM_PACKAGE_ARCHITECTURE) set(TMP_RPM_BUILDARCH "Buildarch: ${CPACK_RPM_PACKAGE_ARCHITECTURE}") if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: using user-specified build arch = ${CPACK_RPM_PACKAGE_ARCHITECTURE}") endif() else() set(TMP_RPM_BUILDARCH "") endif() # CPACK_RPM_PACKAGE_RELEASE # The RPM release is the numbering of the RPM package ITSELF # this is the version of the PACKAGING and NOT the version # of the CONTENT of the package. # You may well need to generate a new RPM package release # without changing the version of the packaged software. # This is the case when the packaging is buggy (not) the software :=) # If not set, 1 is a good candidate if(NOT CPACK_RPM_PACKAGE_RELEASE) set(CPACK_RPM_PACKAGE_RELEASE 1) endif() # CPACK_RPM_PACKAGE_LICENSE if(NOT CPACK_RPM_PACKAGE_LICENSE) set(CPACK_RPM_PACKAGE_LICENSE "unknown") endif() # CPACK_RPM_PACKAGE_GROUP if(NOT CPACK_RPM_PACKAGE_GROUP) set(CPACK_RPM_PACKAGE_GROUP "unknown") endif() # CPACK_RPM_PACKAGE_VENDOR if(NOT CPACK_RPM_PACKAGE_VENDOR) if(CPACK_PACKAGE_VENDOR) set(CPACK_RPM_PACKAGE_VENDOR "${CPACK_PACKAGE_VENDOR}") else() set(CPACK_RPM_PACKAGE_VENDOR "unknown") endif() endif() # CPACK_RPM_PACKAGE_SOURCE # The name of the source tarball in case we generate a source RPM # CPACK_RPM_PACKAGE_DESCRIPTION # The variable content may be either # - explicitly given by the user or # - filled with the content of CPACK_PACKAGE_DESCRIPTION_FILE # if it is defined # - set to a default value # if (NOT CPACK_RPM_PACKAGE_DESCRIPTION) if (CPACK_PACKAGE_DESCRIPTION_FILE) file(READ ${CPACK_PACKAGE_DESCRIPTION_FILE} CPACK_RPM_PACKAGE_DESCRIPTION) else () set(CPACK_RPM_PACKAGE_DESCRIPTION "no package description available") endif () endif () # CPACK_RPM_COMPRESSION_TYPE # if (CPACK_RPM_COMPRESSION_TYPE) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: User Specified RPM compression type: ${CPACK_RPM_COMPRESSION_TYPE}") endif() if(CPACK_RPM_COMPRESSION_TYPE STREQUAL "lzma") set(CPACK_RPM_COMPRESSION_TYPE_TMP "%define _binary_payload w9.lzdio") endif() if(CPACK_RPM_COMPRESSION_TYPE STREQUAL "xz") set(CPACK_RPM_COMPRESSION_TYPE_TMP "%define _binary_payload w7.xzdio") endif() if(CPACK_RPM_COMPRESSION_TYPE STREQUAL "bzip2") set(CPACK_RPM_COMPRESSION_TYPE_TMP "%define _binary_payload w9.bzdio") endif() if(CPACK_RPM_COMPRESSION_TYPE STREQUAL "gzip") set(CPACK_RPM_COMPRESSION_TYPE_TMP "%define _binary_payload w9.gzdio") endif() else() set(CPACK_RPM_COMPRESSION_TYPE_TMP "") endif() if(CPACK_PACKAGE_RELOCATABLE) set(CPACK_RPM_PACKAGE_RELOCATABLE TRUE) endif() if(CPACK_RPM_PACKAGE_RELOCATABLE) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Trying to build a relocatable package") endif() if(CPACK_SET_DESTDIR AND (NOT CPACK_SET_DESTDIR STREQUAL "I_ON")) message("CPackRPM:Warning: CPACK_SET_DESTDIR is set (=${CPACK_SET_DESTDIR}) while requesting a relocatable package (CPACK_RPM_PACKAGE_RELOCATABLE is set): this is not supported, the package won't be relocatable.") else() set(CPACK_RPM_PACKAGE_PREFIX ${CPACK_PACKAGING_INSTALL_PREFIX}) endif() endif() # Check if additional fields for RPM spec header are given # There may be some COMPONENT specific variables as well # If component specific var is not provided we use the global one # for each component foreach(_RPM_SPEC_HEADER URL REQUIRES SUGGESTS PROVIDES OBSOLETES PREFIX CONFLICTS AUTOPROV AUTOREQ AUTOREQPROV) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: processing ${_RPM_SPEC_HEADER}") endif() if(CPACK_RPM_PACKAGE_COMPONENT) if(DEFINED CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${_RPM_SPEC_HEADER}) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: using CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${_RPM_SPEC_HEADER}") endif() set(CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP ${CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${_RPM_SPEC_HEADER}}) else() if(DEFINED CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${_RPM_SPEC_HEADER} not defined") message("CPackRPM:Debug: using CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}") endif() set(CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP ${CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}}) endif() endif() else() if(DEFINED CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: using CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}") endif() set(CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP ${CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}}) endif() endif() # Treat the RPM Spec keyword iff it has been properly defined if(DEFINED CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP) # Transform NAME --> Name e.g. PROVIDES --> Provides # The Upper-case first letter and lowercase tail is the # appropriate value required in the final RPM spec file. string(LENGTH ${_RPM_SPEC_HEADER} _PACKAGE_HEADER_STRLENGTH) math(EXPR _PACKAGE_HEADER_STRLENGTH "${_PACKAGE_HEADER_STRLENGTH} - 1") string(SUBSTRING ${_RPM_SPEC_HEADER} 1 ${_PACKAGE_HEADER_STRLENGTH} _PACKAGE_HEADER_TAIL) string(TOLOWER "${_PACKAGE_HEADER_TAIL}" _PACKAGE_HEADER_TAIL) string(SUBSTRING ${_RPM_SPEC_HEADER} 0 1 _PACKAGE_HEADER_NAME) set(_PACKAGE_HEADER_NAME "${_PACKAGE_HEADER_NAME}${_PACKAGE_HEADER_TAIL}") if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: User defined ${_PACKAGE_HEADER_NAME}:\n ${CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP}") endif() set(TMP_RPM_${_RPM_SPEC_HEADER} "${_PACKAGE_HEADER_NAME}: ${CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP}") else() # Do not forget to unset previously set header (from previous component) unset(TMP_RPM_${_RPM_SPEC_HEADER}) endif() endforeach() # CPACK_RPM_SPEC_INSTALL_POST # May be used to define a RPM post intallation script # for example setting it to "/bin/true" may prevent # rpmbuild from stripping binaries. if(CPACK_RPM_SPEC_INSTALL_POST) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: User defined CPACK_RPM_SPEC_INSTALL_POST = ${CPACK_RPM_SPEC_INSTALL_POST}") endif() set(TMP_RPM_SPEC_INSTALL_POST "%define __spec_install_post ${CPACK_RPM_SPEC_INSTALL_POST}") endif() # CPACK_RPM_POST_INSTALL_SCRIPT_FILE (or CPACK_RPM_<COMPONENT>_POST_INSTALL_SCRIPT_FILE) # CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE (or CPACK_RPM_<COMPONENT>_POST_UNINSTALL_SCRIPT_FILE) # May be used to embed a post (un)installation script in the spec file. # The refered script file(s) will be read and directly # put after the %post or %postun section if(CPACK_RPM_PACKAGE_COMPONENT) if(CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_POST_INSTALL_SCRIPT_FILE) set(CPACK_RPM_POST_INSTALL_READ_FILE ${CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_POST_INSTALL_SCRIPT_FILE}) else() set(CPACK_RPM_POST_INSTALL_READ_FILE ${CPACK_RPM_POST_INSTALL_SCRIPT_FILE}) endif() if(CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_POST_UNINSTALL_SCRIPT_FILE) set(CPACK_RPM_POST_UNINSTALL_READ_FILE ${CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_POST_UNINSTALL_SCRIPT_FILE}) else() set(CPACK_RPM_POST_UNINSTALL_READ_FILE ${CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE}) endif() else() set(CPACK_RPM_POST_INSTALL_READ_FILE ${CPACK_RPM_POST_INSTALL_SCRIPT_FILE}) set(CPACK_RPM_POST_UNINSTALL_READ_FILE ${CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE}) endif() # Handle post-install file if it has been specified if(CPACK_RPM_POST_INSTALL_READ_FILE) if(EXISTS ${CPACK_RPM_POST_INSTALL_READ_FILE}) file(READ ${CPACK_RPM_POST_INSTALL_READ_FILE} CPACK_RPM_SPEC_POSTINSTALL) else() message("CPackRPM:Warning: CPACK_RPM_POST_INSTALL_SCRIPT_FILE <${CPACK_RPM_POST_INSTALL_READ_FILE}> does not exists - ignoring") endif() else() # reset SPEC var value if no post install file has been specified # (either globally or component-wise) set(CPACK_RPM_SPEC_POSTINSTALL "") endif() # Handle post-uninstall file if it has been specified if(CPACK_RPM_POST_UNINSTALL_READ_FILE) if(EXISTS ${CPACK_RPM_POST_UNINSTALL_READ_FILE}) file(READ ${CPACK_RPM_POST_UNINSTALL_READ_FILE} CPACK_RPM_SPEC_POSTUNINSTALL) else() message("CPackRPM:Warning: CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE <${CPACK_RPM_POST_UNINSTALL_READ_FILE}> does not exists - ignoring") endif() else() # reset SPEC var value if no post uninstall file has been specified # (either globally or component-wise) set(CPACK_RPM_SPEC_POSTUNINSTALL "") endif() # CPACK_RPM_PRE_INSTALL_SCRIPT_FILE (or CPACK_RPM_<COMPONENT>_PRE_INSTALL_SCRIPT_FILE) # CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE (or CPACK_RPM_<COMPONENT>_PRE_UNINSTALL_SCRIPT_FILE) # May be used to embed a pre (un)installation script in the spec file. # The refered script file(s) will be read and directly # put after the %pre or %preun section if(CPACK_RPM_PACKAGE_COMPONENT) if(CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PRE_INSTALL_SCRIPT_FILE) set(CPACK_RPM_PRE_INSTALL_READ_FILE ${CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PRE_INSTALL_SCRIPT_FILE}) else() set(CPACK_RPM_PRE_INSTALL_READ_FILE ${CPACK_RPM_PRE_INSTALL_SCRIPT_FILE}) endif() if(CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PRE_UNINSTALL_SCRIPT_FILE) set(CPACK_RPM_PRE_UNINSTALL_READ_FILE ${CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PRE_UNINSTALL_SCRIPT_FILE}) else() set(CPACK_RPM_PRE_UNINSTALL_READ_FILE ${CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE}) endif() else() set(CPACK_RPM_PRE_INSTALL_READ_FILE ${CPACK_RPM_PRE_INSTALL_SCRIPT_FILE}) set(CPACK_RPM_PRE_UNINSTALL_READ_FILE ${CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE}) endif() # Handle pre-install file if it has been specified if(CPACK_RPM_PRE_INSTALL_READ_FILE) if(EXISTS ${CPACK_RPM_PRE_INSTALL_READ_FILE}) file(READ ${CPACK_RPM_PRE_INSTALL_READ_FILE} CPACK_RPM_SPEC_PREINSTALL) else() message("CPackRPM:Warning: CPACK_RPM_PRE_INSTALL_SCRIPT_FILE <${CPACK_RPM_PRE_INSTALL_READ_FILE}> does not exists - ignoring") endif() else() # reset SPEC var value if no pre-install file has been specified # (either globally or component-wise) set(CPACK_RPM_SPEC_PREINSTALL "") endif() # Handle pre-uninstall file if it has been specified if(CPACK_RPM_PRE_UNINSTALL_READ_FILE) if(EXISTS ${CPACK_RPM_PRE_UNINSTALL_READ_FILE}) file(READ ${CPACK_RPM_PRE_UNINSTALL_READ_FILE} CPACK_RPM_SPEC_PREUNINSTALL) else() message("CPackRPM:Warning: CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE <${CPACK_RPM_PRE_UNINSTALL_READ_FILE}> does not exists - ignoring") endif() else() # reset SPEC var value if no pre-uninstall file has been specified # (either globally or component-wise) set(CPACK_RPM_SPEC_PREUNINSTALL "") endif() # CPACK_RPM_CHANGELOG_FILE # May be used to embed a changelog in the spec file. # The refered file will be read and directly put after the %changelog section if(CPACK_RPM_CHANGELOG_FILE) if(EXISTS ${CPACK_RPM_CHANGELOG_FILE}) file(READ ${CPACK_RPM_CHANGELOG_FILE} CPACK_RPM_SPEC_CHANGELOG) else() message(SEND_ERROR "CPackRPM:Warning: CPACK_RPM_CHANGELOG_FILE <${CPACK_RPM_CHANGELOG_FILE}> does not exists - ignoring") endif() else() set(CPACK_RPM_SPEC_CHANGELOG "* Sun Jul 4 2010 Eric Noulard <eric.noulard@gmail.com> - ${CPACK_RPM_PACKAGE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}\n Generated by CPack RPM (no Changelog file were provided)") endif() # CPACK_RPM_SPEC_MORE_DEFINE # This is a generated spec rpm file spaceholder if(CPACK_RPM_SPEC_MORE_DEFINE) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: User defined more define spec line specified:\n ${CPACK_RPM_SPEC_MORE_DEFINE}") endif() endif() # Now we may create the RPM build tree structure set(CPACK_RPM_ROOTDIR "${CPACK_TOPLEVEL_DIRECTORY}") message(STATUS "CPackRPM:Debug: Using CPACK_RPM_ROOTDIR=${CPACK_RPM_ROOTDIR}") # Prepare RPM build tree file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}) file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}/tmp) file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}/BUILD) file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}/RPMS) file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}/SOURCES) file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}/SPECS) file(MAKE_DIRECTORY ${CPACK_RPM_ROOTDIR}/SRPMS) #set(CPACK_RPM_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}-${CPACK_RPM_PACKAGE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}-${CPACK_RPM_PACKAGE_ARCHITECTURE}.rpm") set(CPACK_RPM_FILE_NAME "${CPACK_OUTPUT_FILE_NAME}") # it seems rpmbuild can't handle spaces in the path # neither escaping (as below) nor putting quotes around the path seem to help #string(REGEX REPLACE " " "\\\\ " CPACK_RPM_DIRECTORY "${CPACK_TOPLEVEL_DIRECTORY}") set(CPACK_RPM_DIRECTORY "${CPACK_TOPLEVEL_DIRECTORY}") # if we are creating a relocatable package, omit parent directories of # CPACK_RPM_PACKAGE_PREFIX. This is achieved by building a "filter list" # which is passed to the find command that generates the content-list if(CPACK_RPM_PACKAGE_RELOCATABLE) # get a list of the elements in CPACK_RPM_PACKAGE_PREFIX and remove # the final element (so the install-prefix dir itself is not omitted # from the RPM's content-list) string(REPLACE "/" ";" _CPACK_RPM_PACKAGE_PREFIX_ELEMS ".${CPACK_RPM_PACKAGE_PREFIX}") list(REMOVE_AT _CPACK_RPM_PACKAGE_PREFIX_ELEMS -1) # Now generate all of the parent dirs of CPACK_RPM_PACKAGE_PREFIX foreach(_ELEM ${_CPACK_RPM_PACKAGE_PREFIX_ELEMS}) list(APPEND _TMP_LIST "${_ELEM}") string(REPLACE ";" "/" _OMIT_DIR "${_TMP_LIST}") set(_OMIT_DIR "-o -path ${_OMIT_DIR}") separate_arguments(_OMIT_DIR) list(APPEND _RPM_DIRS_TO_OMIT ${_OMIT_DIR}) endforeach() endif() if (CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Initial list of path to OMIT in RPM: ${_RPM_DIRS_TO_OMIT}") endif() if (NOT DEFINED CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST) set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST /etc /etc/init.d /usr /usr/share /usr/share/doc /usr/bin /usr/lib /usr/lib64 /usr/include) if (CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION) message("CPackRPM:Debug: Adding ${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION} to builtin omit list.") list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST "${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION}") endif() endif() if(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST) if (CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST= ${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST}") endif() foreach(_DIR ${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST}) list(APPEND _RPM_DIRS_TO_OMIT "-o;-path;.${_DIR}") endforeach() endif() if (CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Final list of path to OMIT in RPM: ${_RPM_DIRS_TO_OMIT}") endif() # Use files tree to construct files command (spec file) # We should not forget to include symlinks (thus -o -type l) # We should include directory as well (thus -type d) # but not the main local dir "." (thus -a -not -name ".") # We must remove the './' due to the local search and escape the # file name by enclosing it between double quotes (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 -o (-type d -a -not ( -name "." ${_RPM_DIRS_TO_OMIT} ) ) COMMAND sed s:.*/man.*/.*:&*: COMMAND sed s/\\.\\\(.*\\\)/\"\\1\"/ WORKING_DIRECTORY "${WDIR}" OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES) # In component case, put CPACK_ABSOLUTE_DESTINATION_FILES_<COMPONENT> # into CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL # otherwise, put CPACK_ABSOLUTE_DESTINATION_FILES # This must be done BEFORE the CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL handling if(CPACK_RPM_PACKAGE_COMPONENT) if(CPACK_ABSOLUTE_DESTINATION_FILES) set(COMPONENT_FILES_TAG "CPACK_ABSOLUTE_DESTINATION_FILES_${CPACK_RPM_PACKAGE_COMPONENT}") set(CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL "${${COMPONENT_FILES_TAG}}") if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Handling Absolute Destination Files: <${CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL}>") message("CPackRPM:Debug: in component = ${CPACK_RPM_PACKAGE_COMPONENT}") endif() endif() else() if(CPACK_ABSOLUTE_DESTINATION_FILES) set(CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL "${CPACK_ABSOLUTE_DESTINATION_FILES}") endif() endif() # In component case, set CPACK_RPM_USER_FILELIST_INTERNAL with CPACK_RPM_<COMPONENT>_USER_FILELIST. if(CPACK_RPM_PACKAGE_COMPONENT) if(CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_USER_FILELIST) set(CPACK_RPM_USER_FILELIST_INTERNAL ${CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_USER_FILELIST}) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Handling User Filelist: <${CPACK_RPM_USER_FILELIST_INTERNAL}>") message("CPackRPM:Debug: in component = ${CPACK_RPM_PACKAGE_COMPONENT}") endif() else() set(CPACK_RPM_USER_FILELIST_INTERNAL "") endif() else() if(CPACK_RPM_USER_FILELIST) set(CPACK_RPM_USER_FILELIST_INTERNAL "${CPACK_RPM_USER_FILELIST}") else() set(CPACK_RPM_USER_FILELIST_INTERNAL "") endif() endif() # Handle user specified file line list in CPACK_RPM_USER_FILELIST_INTERNAL # Remove those files from CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL # or CPACK_RPM_INSTALL_FILES, # hence it must be done before these auto-generated lists are processed. if(CPACK_RPM_USER_FILELIST_INTERNAL) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Handling User Filelist: <${CPACK_RPM_USER_FILELIST_INTERNAL}>") endif() # Create CMake list from CPACK_RPM_INSTALL_FILES string(STRIP "${CPACK_RPM_INSTALL_FILES}" CPACK_RPM_INSTALL_FILES_LIST) string(REPLACE "\n" ";" CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES_LIST}") string(REPLACE "\"" "" CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES_LIST}") set(CPACK_RPM_USER_INSTALL_FILES "") foreach(F IN LISTS CPACK_RPM_USER_FILELIST_INTERNAL) string(REGEX REPLACE "%[A-Za-z0-9\(\),-]* " "" F_PATH ${F}) string(REGEX MATCH "%[A-Za-z0-9\(\),-]*" F_PREFIX ${F}) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: F_PREFIX=<${F_PREFIX}>, F_PATH=<${F_PATH}>") endif() if(F_PREFIX) set(F_PREFIX "${F_PREFIX} ") endif() # Rebuild the user list file set(CPACK_RPM_USER_INSTALL_FILES "${CPACK_RPM_USER_INSTALL_FILES}${F_PREFIX}\"${F_PATH}\"\n") # Remove from CPACK_RPM_INSTALL_FILES and CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL list(REMOVE_ITEM CPACK_RPM_INSTALL_FILES_LIST ${F_PATH}) # ABSOLUTE destination files list may not exists at all if (CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL) list(REMOVE_ITEM CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL ${F_PATH}) endif() endforeach() # Rebuild CPACK_RPM_INSTALL_FILES set(CPACK_RPM_INSTALL_FILES "") foreach(F IN LISTS CPACK_RPM_INSTALL_FILES_LIST) set(CPACK_RPM_INSTALL_FILES "${CPACK_RPM_INSTALL_FILES}\"${F}\"\n") endforeach() else() set(CPACK_RPM_USER_INSTALL_FILES "") endif() if (CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL) if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: Handling Absolute Destination Files: ${CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL}") endif() # Remove trailing space string(STRIP "${CPACK_RPM_INSTALL_FILES}" CPACK_RPM_INSTALL_FILES_LIST) # Transform endline separated - string into CMake List string(REPLACE "\n" ";" CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES_LIST}") # Remove unecessary quotes string(REPLACE "\"" "" CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES_LIST}") # Remove ABSOLUTE install file from INSTALL FILE LIST list(REMOVE_ITEM CPACK_RPM_INSTALL_FILES_LIST ${CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL}) # Rebuild INSTALL_FILES set(CPACK_RPM_INSTALL_FILES "") foreach(F IN LISTS CPACK_RPM_INSTALL_FILES_LIST) set(CPACK_RPM_INSTALL_FILES "${CPACK_RPM_INSTALL_FILES}\"${F}\"\n") endforeach() # Build ABSOLUTE_INSTALL_FILES set(CPACK_RPM_ABSOLUTE_INSTALL_FILES "") foreach(F IN LISTS CPACK_ABSOLUTE_DESTINATION_FILES_INTERNAL) set(CPACK_RPM_ABSOLUTE_INSTALL_FILES "${CPACK_RPM_ABSOLUTE_INSTALL_FILES}%config \"${F}\"\n") endforeach() if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: CPACK_RPM_ABSOLUTE_INSTALL_FILES=${CPACK_RPM_ABSOLUTE_INSTALL_FILES}") message("CPackRPM:Debug: CPACK_RPM_INSTALL_FILES=${CPACK_RPM_INSTALL_FILES}") endif() else() # reset vars in order to avoid leakage of value(s) from one component to another set(CPACK_RPM_ABSOLUTE_INSTALL_FILES "") endif() # Prepend directories in ${CPACK_RPM_INSTALL_FILES} with %dir # This is necessary to avoid duplicate files since rpmbuild do # recursion on its own when encountering a pathname which is a directory # which is not flagged as %dir string(STRIP "${CPACK_RPM_INSTALL_FILES}" CPACK_RPM_INSTALL_FILES_LIST) string(REPLACE "\n" ";" CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES_LIST}") string(REPLACE "\"" "" CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES_LIST}") set(CPACK_RPM_INSTALL_FILES "") foreach(F IN LISTS CPACK_RPM_INSTALL_FILES_LIST) if(IS_DIRECTORY "${WDIR}/${F}") set(CPACK_RPM_INSTALL_FILES "${CPACK_RPM_INSTALL_FILES}%dir \"${F}\"\n") else() set(CPACK_RPM_INSTALL_FILES "${CPACK_RPM_INSTALL_FILES}\"${F}\"\n") endif() endforeach() set(CPACK_RPM_INSTALL_FILES_LIST "") # The name of the final spec file to be used by rpmbuild set(CPACK_RPM_BINARY_SPECFILE "${CPACK_RPM_ROOTDIR}/SPECS/${CPACK_RPM_PACKAGE_NAME}${CPACK_RPM_PACKAGE_COMPONENT_PART_NAME}.spec") # Print out some debug information if we were asked for that if(CPACK_RPM_PACKAGE_DEBUG) message("CPackRPM:Debug: CPACK_TOPLEVEL_DIRECTORY = ${CPACK_TOPLEVEL_DIRECTORY}") message("CPackRPM:Debug: CPACK_TOPLEVEL_TAG = ${CPACK_TOPLEVEL_TAG}") message("CPackRPM:Debug: CPACK_TEMPORARY_DIRECTORY = ${CPACK_TEMPORARY_DIRECTORY}") message("CPackRPM:Debug: CPACK_OUTPUT_FILE_NAME = ${CPACK_OUTPUT_FILE_NAME}") message("CPackRPM:Debug: CPACK_OUTPUT_FILE_PATH = ${CPACK_OUTPUT_FILE_PATH}") message("CPackRPM:Debug: CPACK_PACKAGE_FILE_NAME = ${CPACK_PACKAGE_FILE_NAME}") message("CPackRPM:Debug: CPACK_RPM_BINARY_SPECFILE = ${CPACK_RPM_BINARY_SPECFILE}") message("CPackRPM:Debug: CPACK_PACKAGE_INSTALL_DIRECTORY = ${CPACK_PACKAGE_INSTALL_DIRECTORY}") message("CPackRPM:Debug: CPACK_TEMPORARY_PACKAGE_FILE_NAME = ${CPACK_TEMPORARY_PACKAGE_FILE_NAME}") endif() # protect @ in pathname in order to avoid their # interpretation during the configure_file step set(CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES}") set(PROTECTED_AT "@") string(REPLACE "@" "\@PROTECTED_AT\@" CPACK_RPM_INSTALL_FILES "${CPACK_RPM_INSTALL_FILES_LIST}") set(CPACK_RPM_INSTALL_FILES_LIST "") # # USER generated/provided spec file handling. # # We can have a component specific spec file. if(CPACK_RPM_PACKAGE_COMPONENT AND CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_USER_BINARY_SPECFILE) set(CPACK_RPM_USER_BINARY_SPECFILE ${CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_USER_BINARY_SPECFILE}) endif() # We should generate a USER spec file template: # - either because the user asked for it : CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE # - or the user did not provide one : NOT CPACK_RPM_USER_BINARY_SPECFILE if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE OR NOT CPACK_RPM_USER_BINARY_SPECFILE) file(WRITE ${CPACK_RPM_BINARY_SPECFILE}.in "# -*- rpm-spec -*- BuildRoot: \@CPACK_RPM_DIRECTORY\@/\@CPACK_PACKAGE_FILE_NAME\@\@CPACK_RPM_PACKAGE_COMPONENT_PART_PATH\@ Summary: \@CPACK_RPM_PACKAGE_SUMMARY\@ Name: \@CPACK_RPM_PACKAGE_NAME\@\@CPACK_RPM_PACKAGE_COMPONENT_PART_NAME\@ Version: \@CPACK_RPM_PACKAGE_VERSION\@ Release: \@CPACK_RPM_PACKAGE_RELEASE\@ License: \@CPACK_RPM_PACKAGE_LICENSE\@ Group: \@CPACK_RPM_PACKAGE_GROUP\@ Vendor: \@CPACK_RPM_PACKAGE_VENDOR\@ \@TMP_RPM_URL\@ \@TMP_RPM_REQUIRES\@ \@TMP_RPM_PROVIDES\@ \@TMP_RPM_OBSOLETES\@ \@TMP_RPM_CONFLICTS\@ \@TMP_RPM_AUTOPROV\@ \@TMP_RPM_AUTOREQ\@ \@TMP_RPM_AUTOREQPROV\@ \@TMP_RPM_BUILDARCH\@ \@TMP_RPM_PREFIX\@ %define _rpmdir \@CPACK_RPM_DIRECTORY\@ %define _rpmfilename \@CPACK_RPM_FILE_NAME\@ %define _unpackaged_files_terminate_build 0 %define _topdir \@CPACK_RPM_DIRECTORY\@ \@TMP_RPM_SPEC_INSTALL_POST\@ \@CPACK_RPM_SPEC_MORE_DEFINE\@ \@CPACK_RPM_COMPRESSION_TYPE_TMP\@ %description \@CPACK_RPM_PACKAGE_DESCRIPTION\@ # This is a shortcutted spec file generated by CMake RPM generator # we skip _install step because CPack does that for us. # We do only save CPack installed tree in _prepr # and then restore it in build. %prep mv $RPM_BUILD_ROOT \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\" #p build %install if [ -e $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT fi mv \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\" $RPM_BUILD_ROOT %clean %post \@CPACK_RPM_SPEC_POSTINSTALL\@ %postun \@CPACK_RPM_SPEC_POSTUNINSTALL\@ %pre \@CPACK_RPM_SPEC_PREINSTALL\@ %preun \@CPACK_RPM_SPEC_PREUNINSTALL\@ %files %defattr(-,root,root,-) \@CPACK_RPM_INSTALL_FILES\@ \@CPACK_RPM_ABSOLUTE_INSTALL_FILES\@ \@CPACK_RPM_USER_INSTALL_FILES\@ %changelog \@CPACK_RPM_SPEC_CHANGELOG\@ ") # Stop here if we were asked to only generate a template USER spec file # The generated file may then be used as a template by user who wants # to customize their own spec file. if(CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE) message(FATAL_ERROR "CPackRPM: STOP here Generated USER binary spec file templare is: ${CPACK_RPM_BINARY_SPECFILE}.in") endif() endif() # After that we may either use a user provided spec file # or generate one using appropriate variables value. if(CPACK_RPM_USER_BINARY_SPECFILE) # User may have specified SPECFILE just use it message("CPackRPM: Will use USER specified spec file: ${CPACK_RPM_USER_BINARY_SPECFILE}") # The user provided file is processed for @var replacement configure_file(${CPACK_RPM_USER_BINARY_SPECFILE} ${CPACK_RPM_BINARY_SPECFILE} @ONLY) else() # No User specified spec file, will use the generated spec file message("CPackRPM: Will use GENERATED spec file: ${CPACK_RPM_BINARY_SPECFILE}") # Note the just created file is processed for @var replacement configure_file(${CPACK_RPM_BINARY_SPECFILE}.in ${CPACK_RPM_BINARY_SPECFILE} @ONLY) endif() # remove AT protection unset(PROTECTED_AT) if(RPMBUILD_EXECUTABLE) # Now call rpmbuild using the SPECFILE execute_process( COMMAND "${RPMBUILD_EXECUTABLE}" -bb --define "_topdir ${CPACK_RPM_DIRECTORY}" --buildroot "${CPACK_RPM_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}${CPACK_RPM_PACKAGE_COMPONENT_PART_PATH}" "${CPACK_RPM_BINARY_SPECFILE}" WORKING_DIRECTORY "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}${CPACK_RPM_PACKAGE_COMPONENT_PART_PATH}" RESULT_VARIABLE CPACK_RPMBUILD_EXEC_RESULT ERROR_FILE "${CPACK_TOPLEVEL_DIRECTORY}/rpmbuild${CPACK_RPM_PACKAGE_COMPONENT_PART_NAME}.err" OUTPUT_FILE "${CPACK_TOPLEVEL_DIRECTORY}/rpmbuild${CPACK_RPM_PACKAGE_COMPONENT_PART_NAME}.out") if(CPACK_RPM_PACKAGE_DEBUG OR CPACK_RPMBUILD_EXEC_RESULT) file(READ ${CPACK_TOPLEVEL_DIRECTORY}/rpmbuild${CPACK_RPM_PACKAGE_COMPONENT_PART_NAME}.err RPMBUILDERR) file(READ ${CPACK_TOPLEVEL_DIRECTORY}/rpmbuild${CPACK_RPM_PACKAGE_COMPONENT_PART_NAME}.out RPMBUILDOUT) message("CPackRPM:Debug: You may consult rpmbuild logs in: ") message("CPackRPM:Debug: - ${CPACK_TOPLEVEL_DIRECTORY}/rpmbuild${CPACK_RPM_PACKAGE_COMPONENT_PART_NAME}.err") message("CPackRPM:Debug: *** ${RPMBUILDERR} ***") message("CPackRPM:Debug: - ${CPACK_TOPLEVEL_DIRECTORY}/rpmbuild${CPACK_RPM_PACKAGE_COMPONENT_PART_NAME}.out") message("CPackRPM:Debug: *** ${RPMBUILDERR} ***") endif() else() if(ALIEN_EXECUTABLE) message(FATAL_ERROR "RPM packaging through alien not done (yet)") endif() endif()
Close