{"action":"created","issue":{"url":"https://api.github.com/repos/eloaders/I-Nex/issues/13","labels_url":"https://api.github.com/repos/eloaders/I-Nex/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/eloaders/I-Nex/issues/13/comments","events_url":"https://api.github.com/repos/eloaders/I-Nex/issues/13/events","html_url":"https://github.com/eloaders/I-Nex/issues/13","id":109315040,"number":13,"title":"Building and installing eloaders / I-Nex for CentOS 7","user":{"login":"alphastar868","id":14855144,"avatar_url":"https://avatars.githubusercontent.com/u/14855144?v=3","gravatar_id":"","url":"https://api.github.com/users/alphastar868","html_url":"https://github.com/alphastar868","followers_url":"https://api.github.com/users/alphastar868/followers","following_url":"https://api.github.com/users/alphastar868/following{/other_user}","gists_url":"https://api.github.com/users/alphastar868/gists{/gist_id}","starred_url":"https://api.github.com/users/alphastar868/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphastar868/subscriptions","organizations_url":"https://api.github.com/users/alphastar868/orgs","repos_url":"https://api.github.com/users/alphastar868/repos","events_url":"https://api.github.com/users/alphastar868/events{/privacy}","received_events_url":"https://api.github.com/users/alphastar868/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T14:46:10Z","updated_at":"2015-12-05T12:00:15Z","closed_at":null,"body":"**Tested with CentOS 7.1.1503 with I-Nex 7.4.0 commit 3455715bbc**\r\n\r\nOptional: Setup a CentOS Environment for building RPMs; specifically, you will need to [create the directories for RPM building] (https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment)  *Note:*Step 8 below also accomplishes the same thing.\r\n\r\n1. Download the source code using the **Download ZIP** button [on the I-Nex project page] (https://github.com/eloaders/I-Nex)  Save as **~/rpmbuild/SOURCES/I-Nex-master.zip**\r\n2. Save the text for *i-nex.spec* (below) as **~/rpmbuild/SPECS/i-nex.spec**\r\n3. Save the text for *i-nex-7.4.0-lib64.patch* (below) as **~/rpmbuild/SOURCES/i-nex-7.4.0-lib64.patch**  This fixes #11 \r\n4. Save the text for *i-nex-7.4.0-distro-quotes.patch* (below) as **~/rpmbuild/SOURCES/i-nex-7.4.0-distro-quotes.patch**  This fixes #10 \r\n5. Save the text for *i-nex-7.4.0-spd-labelnames.patch* (below) as **~/rpmbuild/SOURCES/i-nex-7.4.0-spd-labelnames.patch**  This fixes #12 \r\n6. Save the text for *i-nex-7.4.0-rpm-dpkg.patch* (below) as **~/rpmbuild/SOURCES/i-nex-7.4.0-rpm-dpkg.patch**  This fixes #14 \r\n  * Optional: Follow the instructions at #16 to enable distro detection of CentOS on the System tab including **i-nex-7.4.0-centos-logo.patch** and  **centos.png**.\r\n7. Install **gambas3*** from the [Fedora Rawhide repo] (https://fedoraproject.org/wiki/Releases/Rawhide) and **libcpuid11** from [brollylssj's Fedora 23 repo] (https://copr.fedoraproject.org/coprs/brollylssj/libcpuid/)\r\n   * See [I-Nex/requirements.md] (https://github.com/eloaders/I-Nex/blob/master/requirements.md) for the complete list.\r\n8. Verify that all the RPMs needed  as **Prerequisites** and **Required RPMs for Build Environment** are installed as per [the previous instructions] (https://github.com/eloaders/I-Nex/issues/10)\r\n9. **Build the I-Nex for CentOS 7 RPMs** with the command: `rpmbuild -ba ~/rpmbuild/SPECS/i-nex.spec`\r\n10. **Install the new RPMs** with the command: `sudo yum install ~/rpmbuild/RPMS/noarch/i-nex-data-7.4.0-*.el7.centos.noarch.rpm ~/rpmbuild/RPMS/x86_64/i-nex-7.4.0-*.el7.centos.x86_64.rpm`\r\n\r\n\r\n\r\n**i-nex-7.4.0-lib64.patch**\r\n```\r\n--- I-Nex-master/I-Nex/i-nex/.src/FSystemInfo.class     2015-09-19 17:24:12.000000000 -0400\r\n+++ I-Nex-7.4.0/I-Nex/i-nex/.src/FSystemInfo.class      2015-09-27 11:39:04.000000000 -0400\r\n@@ -187,7 +187,7 @@\r\n   cFile = New Collection\r\n\r\n   aText.Add(\"[Libraries]\")\r\n-  For Each sDir In [\"/lib\", \"/usr/lib\"]\r\n+  For Each sDir In [\"/lib\", \"/usr/lib\", \"/lib64\", \"/usr/lib64\"]\r\n     For Each sFile In RDir(sDir, \"\", gb.File, False).Sort(gb.IgnoreCase)\r\n       sFile = File.Name(sFile)\r\n       For Each sPattern In cSearch\r\n```\r\n\r\n**i-nex-7.4.0-distro-quotes.patch**\r\n```\r\n--- I-Nex-master/I-Nex/i-nex/Data/screenfetch-dev       2015-09-19 17:24:12.000000000 -0400\r\n+++ I-Nex-7.4.0/I-Nex/i-nex/Data/screenfetch-dev        2015-09-27 12:41:25.658612840 -0400\r\n@@ -3374,6 +3374,8 @@\r\n NETTOOLS=$(ifconfig --version 2>&1 | grep tools | awk 'NR==1{print $NF}')\r\n WIRELESS_TOOLS=$(iwconfig --version 2>&1 | awk '(NR==1 && ($3 == \"version\")) {print $4}')\r\n\r\n+distro=$(echo $distro | sed 's/\\\"//g')\r\n+\r\n cat > ~/.i-nex/screenfetch.json <<EOF\r\n {\r\n   \"DE\": \"$DE\",\r\n\r\n```\r\n\r\n**i-nex-7.4.0-spd-labelnames.patch**\r\n```\r\n--- I-Nex-master/I-Nex/i-nex/.src/MDecode_dimms.module  2015-10-01 05:29:33.781844202 -0400\r\n+++ I-Nex-7.4.0/I-Nex/i-nex/.src/MDecode_dimms.module.new       2015-10-01 05:31:03.277023619 -0400\r\n@@ -15,6 +15,11 @@\r\n  Try Finfosys.ComboBox10.List = Dir(\"/sys/bus/i2c/drivers/eeprom/\", \"*-****\")\r\n  Try Finfosys.ComboBox10.Index = 0\r\n+\r\n+ If Finfosys.ComboBox10.Count = 0 Then\r\n+  SETNULL()\r\n+  FINALIZE()\r\n+ Endif\r\n End\r\n\r\nPublic Sub _inits()\r\n```\r\n\r\n\r\n**i-nex-7.4.0-rpm-dpkg.patch**\r\n\r\n```\r\n\r\n--- I-Nex-master/I-Nex/i-nex/.src/Finfosys.class        2015-10-02 10:05:12.512531894 -0400\r\n+++ I-Nex-7.4.0/I-Nex/i-nex/.src/Finfosys.class         2015-10-02 15:26:07.800809195 -0400\r\n@@ -774,7 +774,9 @@\r\n\r\n Public Sub Button7_Click()\r\n   Dim packages As String\r\n+  If Exist(\"/var/lib/dpkg/status\")\r\n   Shell \"grep \\\"^Status: install ok installed\\\" /var/lib/dpkg/status | wc -l\" Wait To packages\r\n+  Endif\r\n   If ChkPrm.ChkExec(\"rpm\") = True And IsNull(packages) = True Then\r\n   Shell \"rpm -qa | wc -l\" Wait To packages\r\n   Endif\r\n```\r\n\r\n\r\n\r\n\r\n**i-nex.spec**\r\n```\r\n#\r\n# spec file for package i-nex\r\n#\r\n# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.\r\n#\r\n# All modifications and additions to the file contributed by third parties\r\n# remain the property of their copyright owners, unless otherwise agreed\r\n# upon. The license for this file, and modifications and additions to the\r\n# file, is the same license as for the pristine package itself (unless the\r\n# license for the pristine package is not an Open Source License, in which\r\n# case the license is the MIT License). An \"Open Source License\" is a\r\n# license that conforms to the Open Source Definition (Version 1.9)\r\n# published by the Open Source Initiative.\r\n\r\n# Please submit bugfixes or comments via http://bugs.opensuse.org/\r\n#\r\n\r\n# The gittag version below ensures that the source tag points to the correct commit in GitHub and that it is reflected in the RPM versions (and names).\r\n\r\n%define gittag 3455715bbc\r\n\r\nName:           i-nex\r\nVersion:        7.4.0\r\nRelease:        4.20150919+git%{?gittag}%{?dist}\r\nSummary:        System information tool\r\n\r\nLicense:        GPL-3.0+\r\nUrl:            http://i-nex.linux.pl\r\nGroup:          System/X11/Utilities\r\nSource0:        https://github.com/eloaders/I-Nex/archive/%{gittag}.zip#/I-Nex-master.zip\r\nPatch0:\t\ti-nex-7.4.0-lib64.patch\r\nPatch1:\t\ti-nex-7.4.0-distro-quotes.patch\r\nPatch2:\t\ti-nex-7.4.0-spd-labelnames.patch\r\nPatch3:\t\ti-nex-7.4.0-rpm-dpkg.patch\r\n\r\nBuildRequires:  ImageMagick\r\nBuildRequires:  autoconf\r\nBuildRequires:  automake\r\n%if 0%{?suse_version} <= 1210\r\nBuildRequires:  freeglut\r\n%else\r\nBuildRequires:  Mesa-demo-x\r\n%endif\r\nBuildRequires:  fdupes\r\nBuildRequires:  gambas3-devel >= 3.5.0\r\nBuildRequires:  gambas3-gb-desktop >= 3.5.0\r\nBuildRequires:  gambas3-gb-form >= 3.5.0\r\nBuildRequires:  gambas3-gb-form-dialog >= 3.5.0\r\nBuildRequires:  gambas3-gb-form-stock >= 3.5.0\r\nBuildRequires:  gambas3-gb-gtk >= 3.5.0\r\nBuildRequires:  gambas3-gb-gui >= 3.5.0\r\nBuildRequires:  gambas3-gb-image >= 3.5.0\r\nBuildRequires:  gambas3-gb-qt4 >= 3.5.0\r\nBuildRequires:  gambas3-gb-qt4-ext >= 3.5.0\r\nBuildRequires:  gambas3-gb-settings >= 3.5.0\r\nBuildRequires:  hicolor-icon-theme\r\n%if 0%{?suse_version}\r\nBuildRequires:  lsb-release\r\n%endif\r\nBuildRequires:  net-tools\r\n%if 0%{?suse_version}\r\nBuildRequires:  openSUSE-release\r\n%endif\r\nBuildRequires:  pkgconfig\r\nBuildRequires:  pkgconfig(libcpuid) >= 0.2.1\r\nBuildRequires:  pkgconfig(libprocps)\r\nBuildRequires:  pkgconfig(x11)\r\nBuildRequires:  pkgconfig(gl)\r\nBuildRequires:  pkgconfig(xext)\r\nBuildRequires:  pciutils\r\nBuildRequires:  procps\r\nBuildRequires:  procps-ng\r\nBuildRequires:  procps-ng-devel\r\n#BuildRequires:  update-desktop-files\r\n%if 0%{?suse_version}\r\nBuildRequires:  xorg-x11 >= 7.5\r\n%endif\r\nBuildRequires:  xz\r\nRequires:       %{name}-data = %{version}\r\nRequires:       gambas3-gb-desktop >= 3.5.0\r\nRequires:       gambas3-gb-form >= 3.5.0\r\nRequires:       gambas3-gb-form-dialog >= 3.5.0\r\nRequires:       gambas3-gb-form-stock >= 3.5.0\r\n#Requires:       gambas3-gb-geom >= 3.4.0\r\nRequires:       gambas3-gb-gtk >= 3.5.0\r\nRequires:       gambas3-gb-gui >= 3.5.0\r\nRequires:       gambas3-gb-image >= 3.5.0\r\nRequires:       gambas3-gb-qt4 >= 3.5.0\r\nRequires:       gambas3-gb-qt4-ext >= 3.5.0\r\nRequires:       gambas3-gb-settings >= 3.5.0\r\nRequires:       gambas3-runtime >= 3.5.0\r\n%if 0%{?rhel}%{?fedora}\r\n#BuildRequires:  desktop-file-utils\r\nRequires:\ti2c-tools\r\n%endif\r\n%if 0%{?suse_version}\r\n%if 0%{?suse_version} <= 1210\r\nRecommends:     freeglut\r\n%else\r\nRecommends:     Mesa-demo-x\r\nRecommends:     xrandr\r\n%endif\r\nRecommends:     lsb-release\r\nRecommends:     net-tools\r\nRecommends:     pastebinit >= 1.3\r\nRecommends:     pciutils\r\nRecommends:     procps\r\nRecommends:     python\r\nRecommends:     python-configobj\r\nRecommends:     xorg-x11 >= 7.5\r\n%endif\r\n\r\n%description\r\nAn application that gathers information for hardware\r\ncomponents available on your system and displays it using an\r\nuser interface similar to the popular Windows tool CPU-Z.\r\npastebinit required for publishing the hardware configuration.\r\n\r\n%package        data\r\nSummary:        I-Nex noarch data\r\nBuildArch:      noarch\r\nRequires:       %{name} = %{version}\r\n\r\n%description    data\r\nI-Nex arch independent data.\r\n\r\n%prep\r\n%setup -q -n I-Nex-master\r\n%patch0 -p1\r\n%patch1 -p1\r\n%patch2 -p1\r\n%patch3 -p1\r\n# A hack to be able to run the program via the name execution.\r\n#+ some info tools are under *sbin\r\ncat > %{name}.sh <<HERE\r\n#!/bin/sh\r\n\r\nexport LIBOVERLAY_SCROLLBAR=0 PATH=/sbin:/usr/sbin:\\$PATH\r\nexec %{_bindir}/%{name}.gambas\r\nHERE\r\n\r\n#using system's pastebinit\r\n%__sed -i \\\r\n       '\\|/usr/share/i-nex/pastebinit/|s|/usr/share/i-nex/pastebinit/||' \\\r\n       I-Nex/i-nex/.src/Reports/MPastebinit.module\r\n%__cp I-Nex/i-nex/logo/i-nex.0.4.x.png $RPM_SOURCE_DIR/%{name}.png\r\n%{__sed} -e 's|env LIBOVERLAY_SCROLLBAR=0 /usr/bin/i-nex.gambas|i-nex|' \\\r\n         -e '/^Icon=/s|=.*|=%{name}|' debian/%{name}.desktop > %{name}.desktop\r\n\r\n%build\r\ncd I-Nex\r\nautoreconf -fiv\r\n%configure\r\ncd ..\r\nmake \\\r\n     %{?_smp_mflags} \\\r\n     STATIC=false \\\r\n     V=1 \\\r\n     additional_confflags+=\"%{optflags}\"\r\n\r\n%install\r\nmake V=1 DESTDIR=%{buildroot} install\r\n\r\n# A hack to be able to run the program via the name execution.\r\n%{__install} -D -m 755 %{name}.sh %{buildroot}%{_bindir}/%{name}\r\n\r\n# Let's use %%doc macro.\r\nrm -rf %{buildroot}%{_datadir}/doc/%{name}\r\n\r\n# Let's use system's `pastebinit`.\r\nrm -rf %{buildroot}%{_datadir}/%{name}/pastebinit\r\n\r\n%if 0%{?suse_version}\r\n%suse_update_desktop_file -r %{name} 'System;HardwareSettings;'\r\n%suse_update_desktop_file -r %{name}-library 'System;HardwareSettings;'\r\n%endif\r\n\r\n%fdupes -s %{buildroot}%{_datadir}\r\n\r\n%if 0%{?suse_version} >= 1140\r\n%post   data\r\n%desktop_database_post\r\n%endif\r\n\r\n%if 0%{?suse_version} >= 1140\r\n%postun data\r\n%desktop_database_postun\r\n%endif\r\n\r\n%files\r\n%defattr(-,root,root,-)\r\n%doc docs/copyright docs/I-Nex.LICENSE I-Nex/COPYING\r\n%{_bindir}/%{name}-*\r\n%doc %{_mandir}/man*/%{name}*\r\n\r\n\r\n%files  data\r\n%defattr(-,root,root,-)\r\n%{_bindir}/%{name}\r\n%{_bindir}/%{name}.gambas\r\n%{_datadir}/applications/%{name}*.desktop\r\n%{_datadir}/pixmaps/%{name}*\r\n%doc debian/changelog* changelogs/changelog*\r\n%doc I-Nex/AUTHORS I-Nex/ChangeLog I-Nex/README\r\n/etc/i-nex\r\n/etc/udev/rules.d/i2c_smbus.rules\r\n\r\n%changelog\r\n* Sat Oct 3 2015 <GitHub/eloarders/I-Nex/alphastar868>\r\n- Modified specfile to reflect commit date and short GitTag in  \r\n  RPM versions.\r\n\r\n* Fri Oct 2 2015 <GitHub/eloarders/I-Nex/alphastar868>\r\n- Patched SPD labelnames and blank RPM Package count\r\n  (GitHub Issue # 12 and 14).\r\n\r\n* Thu Oct 1 2015 <GitHub/eloarders/I-Nex/alphastar868>\r\n- Patched specfile for x86_64 lib64 detection and JSON \r\n  O/S distro double quotes fixes (GitHub Issue # 10, 11).\r\n- Added i2c_tools requirement to specfile.\r\n- Removed %post and %postun requirements for CentOS.\r\n- Updated version to I-Nex 7.4.0 commit 3455715bbc\r\n```\r\n\r\n\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27089805-building-and-installing-eloaders-i-nex-for-centos-7?utm_campaign=plugin&utm_content=tracker%2F488098&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F488098&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eloaders/I-Nex/issues/comments/162176058","html_url":"https://github.com/eloaders/I-Nex/issues/13#issuecomment-162176058","issue_url":"https://api.github.com/repos/eloaders/I-Nex/issues/13","id":162176058,"user":{"login":"eloaders","id":622016,"avatar_url":"https://avatars.githubusercontent.com/u/622016?v=3","gravatar_id":"","url":"https://api.github.com/users/eloaders","html_url":"https://github.com/eloaders","followers_url":"https://api.github.com/users/eloaders/followers","following_url":"https://api.github.com/users/eloaders/following{/other_user}","gists_url":"https://api.github.com/users/eloaders/gists{/gist_id}","starred_url":"https://api.github.com/users/eloaders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eloaders/subscriptions","organizations_url":"https://api.github.com/users/eloaders/orgs","repos_url":"https://api.github.com/users/eloaders/repos","events_url":"https://api.github.com/users/eloaders/events{/privacy}","received_events_url":"https://api.github.com/users/eloaders/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T12:00:15Z","updated_at":"2015-12-05T12:00:15Z","body":"I applied patches for Centos: https://github.com/eloaders/I-Nex/commit/5813d16340787a2287513f65755b3caa9599ef86"}}