summaryrefslogtreecommitdiffstats
path: root/Modules/CPackRPM.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CPackRPM and CPackDeb documentation improvementsDomen Vrankar2016-06-011-82/+125
|
* Merge topic 'cpack-rpm-adding-dist-to-release-tag'Brad King2016-05-161-3/+24
|\ | | | | | | | | | | f5089cfc CPack/RPM adding dist to release tag test f7003a60 CPack/RPM release dist tag support
| * CPack/RPM release dist tag supportHarry Mallon2016-05-141-3/+24
| | | | | | | | | | Some Linux distros require Release tag to be set to <ReleaseVersion><Dist>.
* | CPack/RPM different package namesDomen Vrankar2016-05-151-3/+65
|/ | | | | | | | Packagers may now set their own rpm package file names or request that rpmbuild tool chooses one for them. It also supports handing of situations where one spec file may produce multiple rpm packages.
* Merge topic 'cpack-rpm-external-symlink-handling'Brad King2016-04-011-7/+23
|\ | | | | | | | | eae4eef0 CPack/RPM external symlink handling
| * CPack/RPM external symlink handlingDomen Vrankar2016-04-011-7/+23
| | | | | | | | | | | | | | | | Symbolic links that point to external location no longer cause cmake to fail with string out of bounds error but are instead packaged as non relocatable symlinks and print out a warning message.
* | Fix spelling typos in comments and documentation (#16037)Felix Geyer2016-03-291-1/+1
|/ | | | | The Debian package checker tool (lintian) detected several typos in CMake.
* cpack rpm setting of defattrDomen Vrankar2016-03-281-1/+102
| | | | | | | | RPM supports setting of default user, group, file and directory permissions that will be applied for files in package unless specified per file/dir with attr setting This is related to bug report 14714
* CPack/RPM support for upper cased component variablesDomen Vrankar2016-02-131-183/+128
| | | | | | | | | | CPACK_* variables expect component name in upper case. CPACK_RPM_* variables expected component name to be in same case as component name. This patch adds support for CPACK_RPM_* variables with upper case component names to match the convention with CPACK_* variables and also preserves same case component names for back compatibility.
* CPackRPM: Configure RPM package group and name per componentMarkus Rickert2015-12-071-11/+28
|
* Replace http://www.cmake.org URLs with https://cmake.orgBrad King2015-09-251-2/+2
| | | | | | | The latter is now the preferred URL for visiting cmake.org with a browser. Convert using the shell code: git ls-files -z | xargs -0 sed -i 's|http://www\.cmake|https://cmake|g'
* CPack/RPM: missing PACKAGE_CONFLICTS documentationFrank-Christian Otto2015-08-041-0/+17
|
* CPack/RPM: undocumented variablesDomen Vrankar2015-08-041-0/+56
| | | | | | Some CPack/RPM variables were undocumented even though they are implemented in code for quite a while now.
* CPack: Enable DEB and RPM tests more reliablyDomen Vrankar2015-05-121-4/+3
| | | | | | | CPack DEB and RPM generators were not used for some tests because CPACK_BINARY_DEB and CPACK_BINARY_RPM variable were not set. Fix this, simplify generator selection in CTEST_RUN_CPackComponentsForAll, and fix bugs that were detected after tests were run.
* CPack/RPM fix output in debug logThomas Orozco2015-05-051-1/+1
| | | | output RPMBUILDOUT when intended
* CPackRPM content listing refactorDomen Vrankar2015-04-191-29/+81
| | | | | | | | | Refactoring of content list that removes use of find and sed to make listing algorithm more clear and remove external dependencies. Patch also limits man pages handling to locations listed in brp-compress rpm script by default - fixes bug report #14660.
* CPackRPM package content list code moveDomen Vrankar2015-04-191-70/+77
| | | | | Move rpm package content list code to a separate function.
* CPackRPM: Add basic symlink support (#15209)Domen Vrankar2015-03-311-21/+341
| | | | | | | RPM packages can contain symbolic links to relative paths - including support for multiple relocation paths through generation of post install relocation scripts. Add basic support with limitations described in documentation.
* CPack/RPM ignore install prefix relocation pathDomen Vrankar2015-03-201-2/+19
| | | | | | | Patch adds possibility to remove CPACK_PACKAGING_INSTALL_PREFIX from the list of relocation paths when crating a relocatable rpm.
* CPack/RPM prevent component attributes leakageDomen Vrankar2015-03-171-652/+621
| | | | | | | | | | | Fixes mantis bug report with id 15169. Some component specific attributes were leaking to next component. Leakage handling was implemented in different locations but there were still attributes that leaked. Patch encapsulates generator into function so all current leaks are fixed and no future leaks can occur.
* Merge branch 'cpack_rpm_mulit_prefix_fixup' into ↵Domen Vrankar2015-02-271-17/+25
|\ | | | | | | | | | | | | cpack_rpm_mulit_prefix_fixup-for-master Resolve conflict in Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake by combining the changes from both sides.
| * CPackRPM: Fix handling of relocation prefix parent directoriesDomen Vrankar2015-02-271-17/+25
| | | | | | | | | | | | | | In commit 3ec02547 (CPackRPM: Allow multiple path relocation prefixes for one package, 2015-01-21) a regression was introduced that causes parent directories of relocation paths to be incorrectly included in the rpm. Fix this and make the test case more strict to cover it.
* | CPackRPM: Drop explicit handling of '@' symbols that breaks them (#14782)Domen Vrankar2015-02-241-10/+0
| | | | | | | | | | | | | | | | | | | | The change in commit v2.8.12~218^2 (CPackRPM protect '@' character in filename processed in the spec file, 2013-07-05) was not necessary after commit v2.8.12~439^2 (Add support for componentized USER spec file, 2013-04-01). The latter replaced ${VAR} references in the spec file template string with \@VAR\@ references, thus protecting '@' symbols automatically. This caused CPackRPM to break paths with @ symbols. Revert the change to fix the behavior, and add a test case.
* | CPackRPM: Support rpm architecture in componentsJoshua A Clayton2015-02-231-0/+11
| | | | | | | | | | | | CPACK_RPM_<component>_PACKAGE_ARCHITECTURE variable allows the same project to support packages of different architectures including noarch, native and foreign architectures.
* | CPackRPM: Fix CPACK_RPM_PACKAGE_ARCHITECTUREJoshua A Clayton2015-02-231-6/+15
|/ | | | | | | | | BuildArch must only be added to a spec file for a "noarch" package or rpmbuild will fail. For all others, the --target argument sets the package architecture. In the process of Fixing rpm architecture, we make it mandatory, adding a default value of native architecture (the same as if no --target argument is present). Update the documentation at the top of the file to make it mandatory.
* CPackRPM: Do not run file(GLOB_RECURSE) without CMP0009 set to NEWDomen Vrankar2015-02-111-1/+6
| | | | | | The file(GLOB_RECURSE) call added by commit 3ec02547 (CPackRPM: Allow multiple path relocation prefixes for one package, 2015-01-21) should not follow directory symlinks, so make sure CMP0009 is set to NEW.
* CPackRPM: Fix recognition of absolute relocation pathsDomen Vrankar2015-02-101-1/+1
| | | | | Fix typo in logic added by commit 3ec02547 (CPackRPM: Allow multiple path relocation prefixes for one package, 2015-01-21).
* CPackRPM: Allow multiple path relocation prefixes for one packageDomen Vrankar2015-01-291-11/+104
|
* CPackRPM: Unset temporary component variables before re-useGauthier Lamaison2014-11-181-3/+3
| | | | | | | | Improve the fix from commit v2.8.9~136^2 (CPackRPM: avoid leakage of RPM directive from one component to another, 2012-06-05) to clean up more temporary variables. Reviewed-by: Domen Vrankar <domen.vrankar@gmail.com>
* CPackRPM: remove unneeded string length calculationRolf Eike Beer2014-11-141-3/+1
| | | | | This wants just the rest of the string, which can be achieved by passing -1 as remainder length.
* CPackRPM: Support PREUN and POSTUN requirementsEvgeny Kalishenko2014-10-271-4/+33
|
* CPackRPM: Support pre(post) install script requirementsEvgeny Kalishenko2014-10-271-1/+33
|
* CPackRPM: Add component based packaging description and summaryDomen Vrankar2014-10-211-11/+67
| | | | | | | | | Enable per-component description and summary setting through CPACK_RPM_<component>_PACKAGE_DESCRIPTION, CPACK_COMPONENT_<compName>_DESCRIPTION and CPACK_RPM_<component>_PACKAGE_SUMMARY variables. Extend the CPackComponentsForAll test to cover these.
* Remove .* expressions from beginning and end of MATCHES regexsRolf Eike Beer2014-04-141-1/+1
| | | | | | | | | All these expressions work the same: "foo" ".*foo.*" "^.*foo.*$" This assumes that the "Intel*" expressions were meant to be "Intel.*".
* Replace string(REGEX REPLACE) with string(REPLACE) where possibleRolf Eike Beer2014-04-141-1/+1
| | | | The simple replacement is much faster.
* CPack: Replace #<type> markup with reStructuredText equivalentKitware Robot2013-10-161-228/+222
| | | | | | | Drop #end and #module. Convert #section to a subsection header. Convert #variable to the cmake domain "variable" directive. Convert #macro to the cmake domain "command" directive. Perform minor formatting fixes in text near these changes.
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-243/+332
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* Merge topic 'CPack-fixGeneratedChangelogFormat'Brad King2013-07-151-1/+1
|\ | | | | | | | | 976e51d CPackRPM make the changelog line conform to expected format
| * CPackRPM make the changelog line conform to expected formatEric NOULARD2013-07-081-1/+1
| |
* | CPackRPM protect '@' character in filename processed in the spec file.Eric NOULARD2013-07-051-0/+10
|/
* Merge topic 'CPackRPM-avoidOwningSystemDirs'Brad King2013-05-161-0/+42
|\ | | | | | | | | | | f055c99 CPackRPM add /usr/lib64 to the list of builtin to-be-excluded path bac5772 CPackRPM add mechanism to remove path from generated list of file in RPM spec.
| * CPackRPM add /usr/lib64 to the list of builtin to-be-excluded pathEric NOULARD2013-04-051-2/+2
| |
| * CPackRPM add mechanism to remove path from generated list of file in RPM spec.Eric NOULARD2013-04-051-0/+42
| | | | | | | | | | | | | | | | This fixes bug #0013609, and is a possible solution to #0012864 as well. The later will be completely fixed in another way. Both approaches needs to be implemented because the current one is more automatic. Inspired-By: Ari
* | Add support for componentized USER spec fileEric NOULARD2013-04-011-6/+15
|/ | | | | | | CPACK_RPM_USER_BINARY_SPECFILE can now be specified on a per-component basis using CPACK_RPM_<componentName>_USER_BINARY_SPECFILE. Inspired-By: Theodore Papadopoulo with its patch proposal.
* CPackRPM fix #13898 uses IF(DEFINED var) to avoid wrong var value logicEric NOULARD2013-02-091-9/+19
|
* CPack: Fix RPM/Deb package names to not include "ALL_COMPONENTS_IN_ONE"Clinton Stimpson2012-11-061-4/+2
|
* Handles %attr(nnn,-,-) /path/to/file in CPACK_RPM_USER_FILELIST properly.Eric NOULARD2012-09-101-4/+10
| | | | | | | This triggered an unknown secondary bug when there is no ABSOLUTE INSTALL file. This is fixed as well. This is based on a fix of bug #0013468 from Viktor Dubrovsky.
* do not escape spaces in regular expressionsRolf Eike Beer2012-08-191-1/+1
| | | | | The space has no special meaning in regular expressions so it doesn't need to be escaped.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-103/+103
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-199/+199
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed