| 1 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 |
# you may not use this file except in compliance with the License. |
| 3 |
# You may obtain a copy of the License at |
| 4 |
# |
| 5 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 6 |
# |
| 7 |
# Unless required by applicable law or agreed to in writing, software |
| 8 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 9 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 |
# See the License for the specific language governing permissions and |
| 11 |
# limitations under the License. |
| 12 |
|
| 13 |
# make default configurations |
| 14 |
|
| 15 |
variables: |
| 16 |
make-args: >- |
| 17 |
PREFIX="%{prefix}" |
| 18 |
make-install-args: >- |
| 19 |
%{make-args} |
| 20 |
DESTDIR="%{install-root}" |
| 21 |
install |
| 22 |
make: make %{make-args} |
| 23 |
make-install: make -j1 %{make-install-args} |
| 24 |
|
| 25 |
# Set this if the sources cannot handle parallelization. |
| 26 |
# |
| 27 |
# notparallel: True |
| 28 |
|
| 29 |
config: |
| 30 |
|
| 31 |
# Commands for building the software |
| 32 |
# |
| 33 |
build-commands: |
| 34 |
- | |
| 35 |
%{make} |
| 36 |
|
| 37 |
# Commands for installing the software into a |
| 38 |
# destination folder |
| 39 |
# |
| 40 |
install-commands: |
| 41 |
- | |
| 42 |
%{make-install} |
| 43 |
|
| 44 |
# Commands for stripping debugging information out of |
| 45 |
# installed binaries |
| 46 |
# |
| 47 |
strip-commands: |
| 48 |
- | |
| 49 |
%{strip-binaries} |
| 50 |
|
| 51 |
# Use max-jobs CPUs for building and enable verbosity |
| 52 |
environment: |
| 53 |
MAKEFLAGS: -j%{max-jobs} |
| 54 |
V: 1 |
| 55 |
|
| 56 |
# And dont consider MAKEFLAGS or V as something which may |
| 57 |
# affect build output. |
| 58 |
environment-nocache: |
| 59 |
- MAKEFLAGS |
| 60 |
- V |