| 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 |
# Default python distutils configuration |
| 14 |
|
| 15 |
variables: |
| 16 |
|
| 17 |
# When building for python2 distutils, simply |
| 18 |
# override this in the element declaration |
| 19 |
python: python3 |
| 20 |
|
| 21 |
python-build: | |
| 22 |
|
| 23 |
%{python} %{conf-root}/setup.py build |
| 24 |
|
| 25 |
install-args: | |
| 26 |
|
| 27 |
--prefix "%{prefix}" \ |
| 28 |
--root "%{install-root}" |
| 29 |
|
| 30 |
python-install: | |
| 31 |
|
| 32 |
%{python} %{conf-root}/setup.py install %{install-args} |
| 33 |
|
| 34 |
|
| 35 |
config: |
| 36 |
|
| 37 |
# Commands for configuring the software |
| 38 |
# |
| 39 |
configure-commands: [] |
| 40 |
|
| 41 |
# Commands for building the software |
| 42 |
# |
| 43 |
build-commands: |
| 44 |
- | |
| 45 |
%{python-build} |
| 46 |
|
| 47 |
# Commands for installing the software into a |
| 48 |
# destination folder |
| 49 |
# |
| 50 |
install-commands: |
| 51 |
- | |
| 52 |
%{python-install} |
| 53 |
|
| 54 |
# Commands for stripping debugging information out of |
| 55 |
# installed binaries |
| 56 |
# |
| 57 |
strip-commands: |
| 58 |
- | |
| 59 |
%{strip-binaries} |