-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement prepend and append modes for all build scriptlets
Allows %prep, %conf, %build, %install, %check, %clean and %generate_depends to be augmented arbitrary number of times by appending or prepending to them. The main use-case is to support automatic population of these sections (declarative builds) while still allowing packagers to easily tweak them, but could also be useful for complicated conditional specs and such. Related: #1087
- Loading branch information
Showing
4 changed files
with
115 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Name: append | ||
Version: 1.0 | ||
Release: 1 | ||
BuildArch: noarch | ||
Summary: Testing scriptlet append/prepend | ||
License: GPL | ||
|
||
%description | ||
%{summary} | ||
|
||
%build | ||
echo BBB >> out | ||
|
||
%build -a | ||
echo CCC >> out | ||
|
||
%build -p | ||
echo AAA >> out | ||
|
||
%build -a | ||
echo DDD >> out | ||
|
||
%build -p | ||
echo 000 >> out | ||
|
||
%install -a | ||
cp out ${RPM_BUILD_ROOT}/opt/ | ||
|
||
%install -p | ||
mkdir -p ${RPM_BUILD_ROOT}/opt/ | ||
|
||
%files | ||
/opt/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters