Skip to content

Commit

Permalink
Merge pull request #32 from alphastar868/patch-2
Browse files Browse the repository at this point in the history
Fedora/CentOS/RHEL updates
  • Loading branch information
eloaders committed Sep 18, 2016
2 parents 43c3995 + a04a9c2 commit 3cc212e
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 1 deletion.
61 changes: 61 additions & 0 deletions .Readme-CentOS.RHELmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Build in Fedora

### Adding required repositories:
```
yum install dnf dnf-plugins-core fedora-repos-rawhide
dnf copr enable brollylssj/libcpuid
dnf copr enable brollylssj/I-Nex
```
### Installing dependencies:
```
yum install --enablerepo rawhide gambas3-runtime gambas3-gb-desktop gambas3-gb-form gambas3-gb-form-dialog \
gambas3-gb-form-stock gambas3-gb-gtk gambas3-gb-gui gambas3-gb-image gambas3-gb-qt5* gambas3-gb-settings
yum install fdupes glx-utils i2c-tools procps-ng
```
### Install RPM from repository:
```
dnf install i-nex i-nex-data
```


# Build in CentOS/RHEL

### Installing dependencies:
```
yum install fdupes glx-utils i2c-tools procps-ng
yum install imagemagick autoconf automake hicolor-icon-theme net-tools pkgconfig libcpuid-devel \
procps-ng-devel freeglut libx* libx11-devel mesa-libgl* qt5-qtx11extras-devel xorg-x11-proto-devel pciutils \
xz rpm-build redhat-rpm-config make gcc
```
### Setup RPM Build Environment
...as per [CentOS/RHEL instructions here](https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment)
```
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo "%_topdir /home/testuser/rpmbuild" >> ~/.rpmmacros
```
### Rebuild Fedora Rawhide RPM dependencies for CentOS/RHEL:
_<VERSION>_ = currently available Rawhide RPM
```
rpmbuild --rebuild gambas3-_<VERSION>_.src.rpm [from Rawhide repository at https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/]

rpmbuild --rebuild libcpuid-_<VERSION>_.src.rpm [from Rawhide repository at https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/]

cd ~/rpmbuild/RPMS/x86_64/

yum --nogpgcheck localinstall gambas3-runtime gambas3-gb-desktop gambas3-gb-form gambas3-gb-form-dialog \
gambas3-gb-form-stock gambas3-gb-gtk gambas3-gb-gui gambas3-gb-image gambas3-gb-qt5* gambas3-gb-settings \
libcpuid* libcpuid*-devel
```

### Building RPM from latest commit sources:
_<GITTAG>_ = Short git commit tag,
_<GITLONG>_ = Long git commit tag,
_<TEMPSRCDIR>_ = Temporary folder for uncompressed source

```
wget https://github.com/eloaders/I-Nex/archive/<GITTAG>.zip
cp I-Nex-<GITTAG>.zip ~/rpmbuild/SOURCES/I-Nex-<GITLONG>.zip
unzip I-Nex-<GITTAG>.zip -d <TEMPSRCDIR>
cp <TEMPSRCDIR>/dists/redhat/i-nex.spec ~/rpmbuild/SPECS
rpmbuild -bb ~/rpmbuild/SPECS/i-nex.spec
```
65 changes: 64 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The difference between I-Nex and the other hardware information GUI tools availa
* Ubuntu/Mint
* Debian [Bug lp:1258468](https://bugs.launchpad.net/i-nex/+bug/1258468)
* openSUSE [Question:243542](https://answers.launchpad.net/i-nex/+question/243542)
* Fedora 20
* Fedora/CentOS/RHEL
* Arch Linux
* Manjaro Linux

Expand Down Expand Up @@ -79,6 +79,69 @@ cd .. && \
sudo dpkg -i ./i-nex*.deb
```


## Install Fedora Build

### Adding required repositories:
```
yum install dnf dnf-plugins-core fedora-repos-rawhide
dnf copr enable brollylssj/libcpuid
dnf copr enable brollylssj/I-Nex
```
### Installing dependencies:
```
yum install --enablerepo rawhide gambas3-runtime gambas3-gb-desktop gambas3-gb-form gambas3-gb-form-dialog \
gambas3-gb-form-stock gambas3-gb-gtk gambas3-gb-gui gambas3-gb-image gambas3-gb-qt5* gambas3-gb-settings
yum install fdupes glx-utils i2c-tools procps-ng
```
### Install RPM from repository:
```
dnf install i-nex i-nex-data
```


## Build in CentOS/RHEL

### Installing dependencies:
```
yum install fdupes glx-utils i2c-tools procps-ng
yum install imagemagick autoconf automake hicolor-icon-theme net-tools pkgconfig libcpuid-devel \
procps-ng-devel freeglut libx* libx11-devel mesa-libgl* qt5-qtx11extras-devel xorg-x11-proto-devel pciutils \
xz rpm-build redhat-rpm-config make gcc
```
### Setup RPM Build Environment
...as per [CentOS/RHEL instructions here](https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment)
```
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo "%_topdir /home/testuser/rpmbuild" >> ~/.rpmmacros
```
### Rebuild Fedora Rawhide RPM dependencies for CentOS/RHEL:
where _VERSION_ = currently available Rawhide RPM

` rpmbuild --rebuild gambas3-<VERSION>.src.rpm` [download RPM from Rawhide repository](https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/)

` rpmbuild --rebuild libcpuid-<VERSION>.src.rpm` [download RPM from Rawhide repository](https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/)
```
cd ~/rpmbuild/RPMS/x86_64/
yum --nogpgcheck localinstall gambas3-runtime gambas3-gb-desktop gambas3-gb-form gambas3-gb-form-dialog \
gambas3-gb-form-stock gambas3-gb-gtk gambas3-gb-gui gambas3-gb-image gambas3-gb-qt5* gambas3-gb-settings \
libcpuid* libcpuid*-devel
```

### Building RPM from latest commit sources:
where _GITTAG_ = Short git commit tag,
_GITLONG_ = Long git commit tag,
_TEMPSRCDIR_ = Temporary folder for uncompressed source

```
wget https://github.com/eloaders/I-Nex/archive/<GITTAG>.zip
cp I-Nex-<GITTAG>.zip ~/rpmbuild/SOURCES/I-Nex-<GITLONG>.zip
unzip I-Nex-<GITTAG>.zip -d <TEMPSRCDIR>
cp <TEMPSRCDIR>/dists/redhat/i-nex.spec ~/rpmbuild/SPECS
rpmbuild -bb ~/rpmbuild/SPECS/i-nex.spec
```

### Build lastest git snapshot I-Nex release in Arch Linux
```
yaourt -S i-nex-git --needed --noconfirm
Expand Down
1 change: 1 addition & 0 deletions dists/redhat/i-nex.spec
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Requires: gambas3-gb-settings >= 3.8.4
Requires: gambas3-runtime >= 3.8.4
Requires: i2c-tools
Requires: procps-ng
Requires: glx-utils

%description
An application that gathers information for hardware
Expand Down

0 comments on commit 3cc212e

Please sign in to comment.