summaryrefslogtreecommitdiffstats
path: root/Modules/CPackRPM.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cpack-rpm-user-binary-spec-file-fix'Brad King2017-01-101-1/+1
|\ | | | | | | | | 574c81e2 CPack/RPM fix - custom binary spec file handling
| * CPack/RPM fix - custom binary spec file handlingDomen Vrankar2017-01-101-1/+1
| | | | | | | | Fixes #16507
* | CPackRPM now supports multiple directives in CPACK_RPM_USER_FILELISTHarry Mallon2016-12-031-5/+8
| | | | | | | | | | | | | | | | * In older version "%dir %attr(-, root, root) foo" would put "%dir foo" in the final spec file. * Also added comment to describe this and advise not not to add trailing slashes to directories in USER_FILELIST. * Includes test in RunCMake CPack which now passes.
* | CPack/RPM prevent special tags from being removedDomen Vrankar2016-11-051-1/+5
| | | | | | | | | | | | Some tags are not listed by rpmbuild querytags even though they are supported. Ignore those tags during the removal of unsupported tags.
* | CPack/RPM omit unsupported tagsAlexander Adam2016-11-051-0/+20
| | | | | | | | | | | | | | | | Omit tags that are not supported by provided rpmbuild as some tags get added/removed in later versions of the tool. Closes: #13423
* | Merge topic 'cpack-doc-typos'Brad King2016-11-021-3/+3
|\ \ | |/ | | | | | | | | 4ab3b0c4 CPackRPM: Fix incorrect variable name in documentation e6460e7d CPackDeb: Fix incorrect variable name in documentation
| * CPackRPM: Fix incorrect variable name in documentationAlex Turbov2016-11-021-3/+3
| | | | | | | | | | | | `CPACK_RPM_COMPONENT_INSTALL` is the correct variable to set to enable component packaging. `CPACK_RPM_PACKAGE_COMPONENT` is just set to a component name when CPack calls corresponding installer.
* | CPack/RPM single debuginfo packagingDomen Vrankar2016-10-071-51/+236
| | | | | | | | | | | | | | | | | | Generate a single debuginfo package even if components packaging is enabled. This makes issue #15668 resolution feature complete. Closes: #15486
* | CPack/RPM learned defining main componentDomen Vrankar2016-10-071-5/+30
|/ | | | | | Main component rpm package is generated without component suffix in filename and package name.
* CPack/RPM debuginfo package without binariesDomen Vrankar2016-10-061-27/+38
| | | | | Handle case when a component doesn't contain any debuginfo symbols.
* CPack/RPM debuginfo package objdump error suppressionDomen Vrankar2016-10-061-1/+2
| | | | | | | objdump prints out error text if file is not an executable and that should be suppressed as we don't care about non executable files during that test
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* CPack/RPM debuginfo packaging documentationDomen Vrankar2016-09-271-8/+90
|
* CPack/RPM debuginfo directories to sourcesDomen Vrankar2016-09-271-2/+30
| | | | | | List of sources must be split into paths parts so that debuginfo package cleans up after itself.
* CPack/RPM debuginfo packages must contain sourcesDomen Vrankar2016-09-271-12/+123
| | | | | Issue #15668 fix was missing relevant source files in debuginfo package.
* Merge topic 'cpack-rpm-policy-warnings'Brad King2016-09-201-1/+4
|\ | | | | | | | | edb3f6ee CPackRPM: Avoid CMP0007 warnings
| * CPackRPM: Avoid CMP0007 warningsDomen Vrankar2016-09-201-1/+4
| | | | | | | | | | For older versions of CMake minimum required version CMP0007 policy warning was printed out.
* | CPack/RPM: Generate source rpm (SRPM) packages on demandDomen Vrankar2016-09-201-25/+202
|/ | | | Closes: #15839
* CPack RPM debuginfo packages generationIstvan Bodnar2016-08-251-2/+63
| | | | | Added new variable to CPackRPM for debuginfo rpm package generation. Binaries will be checked for debug symbols.
* Use string(APPEND) in ModulesDaniel Pfeifer2016-07-271-32/+32
| | | | | | | Automate with: find Modules -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
* Merge topic 'cpack-rpm-debug-logging-fix'Brad King2016-07-131-1/+3
|\ | | | | | | | | 83799aa9 CPack/RPM: Debug logging should only print if requested for
| * CPack/RPM: Debug logging should only print if requested forHarry Mallon2016-07-131-1/+3
| |
* | Merge topic 'fix-cpack-rpm-different-package-names'Brad King2016-07-131-0/+1
|\ \ | |/ |/| | | | | 672e6d2e CPack/RPM: Add missed CPACK_RPM_FILE_NAME fallback variable
| * CPack/RPM: Add missed CPACK_RPM_FILE_NAME fallback variableAlex Turbov2016-07-111-0/+1
| | | | | | | | | | | | In commit v3.6.0-rc1~66^2 (CPack/RPM different package names, 2016-05-15) we forgot the non-uppercased fallback variable name `CPACK_RPM_<COMPONENT>_FILE_NAME`. Add it now.
* | CPackRPM: Handle directives of form %foo and %foo(anything)Andrew Fuller2016-07-051-2/+2
|/ | | | | | | | | Directives that are legal inside the %files section of an RPM spec may contain a variety of characters particularly when specifying %caps which can include +, _, and space. Watch for parenthesis to determine what forms the prefix vs. path. Fixes #14362.
* 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.