summaryrefslogtreecommitdiffstats
path: root/Modules/CPackRPM.cmake
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Do not include directories which are part of the package install prefix.Andy Piper2012-08-071-1/+20
| | | | | | This fix bug #0013451. The bug prevents theorerically relocatable RPM package to be installed properly. Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* CPackRPM: avoid leakage of RPM directive from one component to another.Eric NOULARD2012-06-051-1/+4
| | | | | Fixes #0013248 Inspired-By: Sergei Golubchik
* Override topdir from rpm command line seems necessary on Amazon linux.Tom Hughes2012-03-271-0/+1
| | | | | This modification should be harmless on other distro. Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* Merge topic 'CPack-dynamicDocSection'David Cole2012-02-211-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | 9a8103e Try to fix compile error on Win32-vs70 4da2223 Fix typo in end markup cfac874 More documentation concerning CPack Components dee0a38 Put CPack DMG and PackageMaker doc in separate files b4abcfe Correct copy/paste section name mistake 9717727 Suppress unecessary (now empty) doc sections 7a8f44a Add structure documentation for CPack Bundle generator b8a274c Add structured documentation for NSIS a6bce55 Dynamically add documentation section specified in documented script.
| * Dynamically add documentation section specified in documented script.Eric NOULARD2012-02-181-1/+1
| | | | | | | | Modify CPackDeb and CPackRPM as an example
* | various typo and formatting fixes in manual pages (#12975)Modestas Vainius2012-02-181-3/+3
|/ | | | | | | | | | | | | | | | The patch fixes the following lintian warnings: W: cmake-data: manpage-has-errors-from-man usr/share/man/man1/cmakemodules.1.gz 2728: warning: macro `..' not defined I: cmake-data: spelling-error-in-manpage usr/share/man/man1/cmakemodules.1.gz overriden overridden I: cmake-data: spelling-error-in-manpage usr/share/man/man1/cmakemodules.1.gz overriden overridden I: cmake-data: spelling-error-in-manpage usr/share/man/man1/cmakemodules.1.gz explicitely explicitly I: cmake-data: spelling-error-in-manpage usr/share/man/man1/cmakemodules.1.gz jave java W: cmake-data: manpage-has-errors-from-man usr/share/man/man1/cmakeprops.1.gz 1040: warning [p 25, 3.7i]: can't break line W: cmake: manpage-has-errors-from-man usr/share/man/man1/cmake.1.gz 4233: warning [p 85, 1.3i]: can't break line I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz overriden overridden I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz overriden overridden I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz explicitely explicitly I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz jave java
* Make the load of script documentation more efficient and dynamic.Eric NOULARD2012-02-141-1/+3
| | | | | | | | CPack help will be searched in any CPack*.cmake file located near to CPack.cmake file. The script files is parsed iff the first line begin with ##section. Moreover the documentation section name is specified on the remaining part of the line minus the space immediately following ##section.
* CPack Documentation extraction from CMake script begins to workEric NOULARD2012-01-221-31/+76
| | | | | | | | | | - Enhance extract doc parser. Seems robust now. The legacy module documentation parser works as before ignoring the new markup. - Proof of concept for CPack (generic), CPack RPM and CPack Deb generator for macro and variables. Try cpack --help-command and cpack --help-variables
* CPackRPM flag direcories with %dir in the generated spec fileDeborah Pickett2012-01-131-0/+19
| | | | | | | This fix bug #12863 whose symptom was a lot of "warning: File listed twice" printed out by rpmbuild when processing the spec file. Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
* CPackRPM fix #0012608 and unoticed related bugEric NOULARD2011-12-121-10/+89
| | | | | | | | The User may now specific a list of file that shouldn't be automatically handled by CPack but specified by the user. Like %config(noreplace) or specific %attr. The concerned files/dir lines will be removed from the set automatically handled by CPack.
* CPackRPM fix #12556 and enhance documentationEric NOULARD2011-11-051-3/+29
| | | | Inspired-By: Chip Christian
* CPackRPM support component specific variables for spec filesEric NOULARD2011-10-301-6/+33
| | | | | This is a modified version of a user patch Inspired-By: informant
* CPackRPM authorize per-component pre/post-[un]install scripts (#0012063)Eric NOULARD2011-09-201-50/+88
| | | | | Merged patch from Chip Christian previously based on the one from winfriedd with some small pruning editing by commiter
* Merge topic 'CPackRPM-includeDir'David Cole2011-09-071-1/+3
|\ | | | | | | | | f9e5277 CPackRPM fix #12305, include directories in RPM package
| * CPackRPM fix #12305, include directories in RPM packageEric NOULARD2011-09-051-1/+3
| |
* | CPack fix #12366 components RPM packages have the same package nameEric NOULARD2011-09-051-1/+1
|/ | | | fix based on the patch provided by winfriedd
* Add some more Specs file tag handling.Eric NOULARD2011-06-121-1/+5
|
* CPackRPM: Enhance documentationEric NOULARD2011-06-121-2/+8
|
* CPack make RPM work on AIX. fix #0012183 merge patch from Pasi ValminenEric NOULARD2011-05-211-3/+3
|
* CPackRPM Fix #12096: handle absolute install path with component installEric NOULARD2011-04-171-0/+14
|