| 1 |
|
| 2 |
# Copyright (c) 2016-2017 Cisco Systems, Inc. All rights reserved. |
| 3 |
# |
| 4 |
# This software is available to you under a choice of one of two |
| 5 |
# licenses. You may choose to be licensed under the terms of the GNU |
| 6 |
# General Public License (GPL) Version 2, available from the file |
| 7 |
# COPYING in the main directory of this source tree, or the |
| 8 |
# BSD license below: |
| 9 |
# |
| 10 |
# Redistribution and use in source and binary forms, with or |
| 11 |
# without modification, are permitted provided that the following |
| 12 |
# conditions are met: |
| 13 |
# |
| 14 |
# - Redistributions of source code must retain the above |
| 15 |
# copyright notice, this list of conditions and the following |
| 16 |
# disclaimer. |
| 17 |
# |
| 18 |
# - Redistributions in binary form must reproduce the above |
| 19 |
# copyright notice, this list of conditions and the following |
| 20 |
# disclaimer in the documentation and/or other materials |
| 21 |
# provided with the distribution. |
| 22 |
# |
| 23 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 24 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 25 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 26 |
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 27 |
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 28 |
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 29 |
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 30 |
# SOFTWARE. |
| 31 |
|
| 32 |
================================================================= |
| 33 |
|
| 34 |
Script "buildrpmLibfabric.sh" can be used to build RPM from the |
| 35 |
stable Libfabric source tarball. |
| 36 |
|
| 37 |
You need to supply one mandatory parameter to the script: |
| 38 |
filename of the Libfabric tarball. |
| 39 |
There are several voluntary parameters available: |
| 40 |
|
| 41 |
Provider parameters: |
| 42 |
-i provider_name |
| 43 |
Include 'provider_name' provider support to the build. |
| 44 |
|
| 45 |
-e provider_name |
| 46 |
Exclude 'provider_name' provider support from the build. |
| 47 |
|
| 48 |
|
| 49 |
General parameters: |
| 50 |
-b |
| 51 |
Build binary packages only |
| 52 |
By default, build binary and source packages |
| 53 |
|
| 54 |
-n |
| 55 |
Do nothing, useful with -v option. If used with -v option, |
| 56 |
it will just print what would have been done. |
| 57 |
|
| 58 |
-o |
| 59 |
Install path of the RPM would be changed to |
| 60 |
/opt/libfabric/_VERSION_. Default install |
| 61 |
path of the RPM is /usr. |
| 62 |
|
| 63 |
-m |
| 64 |
Modulefile will be installed during RPM installation. |
| 65 |
By default, modulefile is not installed. |
| 66 |
|
| 67 |
-d |
| 68 |
Build with debugging support. By default, |
| 69 |
RPM is build without debugging support. |
| 70 |
|
| 71 |
-c parameter |
| 72 |
Add custom configure parameter. |
| 73 |
|
| 74 |
-r parameter |
| 75 |
Add custom RPM build parameter. |
| 76 |
|
| 77 |
-s |
| 78 |
Try to unpack libfabric.spec file from source tarball. |
| 79 |
By default, script will look for libfabric.spec in |
| 80 |
current directory. This option will overwrite |
| 81 |
libfabric.spec file in current directory, if it exists. |
| 82 |
|
| 83 |
-v |
| 84 |
Be verbose. |
| 85 |
|
| 86 |
-h |
| 87 |
Print usage message and exit. |
| 88 |
|
| 89 |
Example usages of the script: |
| 90 |
buildrpmLibfabric.sh -omsv -i usnic -e sockets -e verbs -e psm3 libfabric-1.4.1.tar.bz2 |
| 91 |
buildrpmLibfabric.sh -omsv -c "--disable-silent-rules" libfabric-1.4.1.tar.bz2 |