You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+54-37Lines changed: 54 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Internal Structure
18
18
The repository contains the following set of files:
19
19
20
20
- Files named with **make_** prefix, such as ``make_deb``, ``make_rpm``, are the shell scripts used to build the package. The script runs as per the architecture to build.
21
-
- The **packages** folder contains the list package types to build. It contains *Debian* and *rpmbuild*, latter for RedHat/Centos RPM creation.
21
+
- The **packages** folder contains the list package types to build. It contains *Debian* and *RPM*, latter for RedHat/Centos RPM creation.
22
22
23
23
- Inside the *packages/Debian* folder, we have the **architecture** folders, plus a *common* folder containing files that are common to all the architectures. The architectures that we provide at the moment are *aarch64*, *armv7l* and *x86_64*.
24
24
@@ -29,6 +29,11 @@ The repository contains the following set of files:
29
29
30
30
- In the *build/architecture* folder, folders and files that have a sequence number are a previous package build.
31
31
32
+
- Inside the *packages/RPM/SPECS* folder, which contains RPM spec-based file, i.e. fledge.spec needed for the creation of the package.
33
+
34
+
- In the *packages/RPM/build/RPMS/x86_64* folder which contains the actual rpm package.
35
+
- In the *packages/RPM/build/BUILDROOT/fledge-1.7.0-1.x86_64* folder which contains the RPM package file structure
36
+
32
37
33
38
The make_deb Script
34
39
===================
@@ -121,87 +126,91 @@ The make_rpm Script
121
126
===================
122
127
.. code-block:: console
123
128
124
-
$ ./make_rpm --help
125
-
make_rpm help [clean|cleanall]
126
-
This script is used to create the RPM package of Fledge
127
-
Arguments:
128
-
help - Display this help text
129
-
clean - Remove all the old versions saved in format .XXXX
130
-
cleanall - Remove all the versions, including the last one
129
+
$ ./make_rpm -h
130
+
make_rpm [-h] [-c] [-a] [-s] [-b <branch>]
131
+
This script is used to create the RPM package of Fledge
132
+
133
+
Arguments:
134
+
-h - Display this help text
135
+
-c - Remove all the old versions saved in format .XXXX
136
+
-a - Remove all the versions, including the last one
137
+
-s - Skip Fledge building using the binaries already available
138
+
-b - Branch to base package on
131
139
$
132
140
133
141
Building a RPM Package
134
142
======================
135
143
136
-
First, make sure that Fledge is properly installed via ``make install`` somewhere on your environment (default is */usr/local/fledge*).
144
+
``make_rpm`` script automatically do Fledge clone repo with branch master (by default) and then ``sudo make install`` followed by some prerequisite
145
+
146
+
You may override the branch with ``-b`` or skip Fledge build with ``-s``. For more info just see its help ``-h``
147
+
137
148
Next, *x86* is the only currently supported architecture for RedHat/Centos.
138
-
Finally, run the ``make_rpm`` command:
149
+
139
150
140
151
.. code-block:: console
141
152
142
153
$ ./make_rpm
143
-
The package root directory is : /home/fledge/repos/fledge-pkg
144
-
The Fledge directory is : /home/fledge/fledge
145
-
The Fledge version is : 1.5.2
146
-
The package will be built in : /home/fledge/repos/fledge-pkg/packages/rpmbuild/RPMS/x86_64
147
-
The package name is : fledge-1.5.2-1.x86_64
154
+
The package root directory is : /home/fledge/fledge-pkg
155
+
The FogLAMP directory is : /home/fledge/Fledge
156
+
The FogLAMP version is : 1.7.0
157
+
The package will be built in : /home/fledge/fledge-pkg/packages/RPM/build/RPMS/x86_64
158
+
The package name is : fledge-1.7.0-1.x86_64
148
159
149
-
Saving the old working environment as fledge-1.5.2-1.x86_64.0077
150
160
Populating the package and updating version in control file...Done.
151
161
Prepare data directory
152
-
Saving the old package as fledge-1.5.2-1.x86_64.rpm.0001
0 commit comments