-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from alphastar868/centos
Centos
- Loading branch information
Showing
2 changed files
with
168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
# Please set the 3 %define values based on the source code - https://github.com/eloaders/I-Nex | ||
|
||
# The gittag version below ensures that the source tag points to the latest commit in GitHub e.g. latest commit as of 14 Aug 2016 is f57f4a5 | ||
|
||
%define gittag f57f4a5 | ||
%define gitlong 657f4a5ddd5dd7c64fc0c2730c5ea1dd635ce703 | ||
%define gitdate 20160625 | ||
|
||
Name: i-nex | ||
Version: 7.4.0.1 | ||
Release: %{gitdate}.bzr910.git%{?gittag}%{?dist} | ||
Summary: System information tool | ||
|
||
License: GPL-3.0+ | ||
Url: http://i-nex.linux.pl | ||
Group: System/X11/Utilities | ||
Source0: https://github.com/eloaders/I-Nex/archive/%{gittag}.zip#/I-Nex-%{gitlong}.zip | ||
|
||
BuildRequires: ImageMagick | ||
BuildRequires: autoconf | ||
BuildRequires: automake | ||
BuildRequires: Mesa-demo-x | ||
BuildRequires: fdupes | ||
BuildRequires: gambas3-devel >= 3.8.4 | ||
BuildRequires: gambas3-gb-desktop >= 3.8.4 | ||
BuildRequires: gambas3-gb-form >= 3.8.4 | ||
BuildRequires: gambas3-gb-form-dialog >= 3.8.4 | ||
BuildRequires: gambas3-gb-form-stock >= 3.8.4 | ||
BuildRequires: gambas3-gb-gtk >= 3.8.4 | ||
BuildRequires: gambas3-gb-gui >= 3.8.4 | ||
BuildRequires: gambas3-gb-image >= 3.8.4 | ||
BuildRequires: gambas3-gb-qt5 >= 3.8.4 | ||
BuildRequires: gambas3-gb-qt5-opengl >= 3.8.4 | ||
BuildRequires: gambas3-gb-qt5-webkit >= 3.8.4 | ||
BuildRequires: gambas3-gb-settings >= 3.8.4 | ||
BuildRequires: hicolor-icon-theme | ||
BuildRequires: net-tools | ||
BuildRequires: pkgconfig | ||
BuildRequires: pkgconfig(libcpuid) >= 0.3.0 | ||
BuildRequires: pkgconfig(libprocps) | ||
BuildRequires: pkgconfig(x11) | ||
BuildRequires: pkgconfig(gl) | ||
BuildRequires: pkgconfig(xext) | ||
BuildRequires: pciutils | ||
BuildRequires: procps-ng | ||
BuildRequires: procps-ng-devel | ||
BuildRequires: xz | ||
Requires: %{name}-data = %{version} | ||
Requires: gambas3-gb-desktop >= 3.8.4 | ||
Requires: gambas3-gb-form >= 3.8.4 | ||
Requires: gambas3-gb-form-dialog >= 3.8.4 | ||
Requires: gambas3-gb-form-stock >= 3.8.4 | ||
Requires: gambas3-gb-gtk >= 3.8.4 | ||
Requires: gambas3-gb-gui >= 3.8.4 | ||
Requires: gambas3-gb-image >= 3.8.4 | ||
Requires: gambas3-gb-qt5 >= 3.8.4 | ||
Requires: gambas3-gb-qt5-opengl >= 3.8.4 | ||
Requires: gambas3-gb-qt5-webkit >= 3.8.4 | ||
Requires: gambas3-gb-settings >= 3.8.4 | ||
Requires: gambas3-runtime >= 3.8.4 | ||
Requires: i2c-tools | ||
Requires: procps-ng | ||
Recommends: Mesa-demo-x | ||
Recommends: xrandr | ||
Recommends: lsb-release | ||
Recommends: net-tools | ||
Recommends: pastebinit >= 1.3 | ||
Recommends: pciutils | ||
Recommends: python | ||
Recommends: python-configobj | ||
Recommends: xorg-x11 >= 7.5 | ||
|
||
%description | ||
An application that gathers information for hardware | ||
components available on your system and displays it using an | ||
user interface similar to the popular Windows tool CPU-Z. | ||
pastebinit required for publishing the hardware configuration. | ||
|
||
%package data | ||
Summary: I-Nex noarch data | ||
BuildArch: noarch | ||
Requires: %{name} = %{version} | ||
|
||
%description data | ||
I-Nex arch independent data. | ||
|
||
%prep | ||
%setup -q -n I-Nex-%{gitlong} | ||
|
||
# A hack to be able to run the program via the name execution. | ||
#+ some info tools are under *sbin | ||
cat > %{name}.sh <<HERE | ||
#!/bin/sh | ||
|
||
export LIBOVERLAY_SCROLLBAR=0 PATH=/sbin:/usr/sbin:\$PATH | ||
exec %{_bindir}/%{name}.gambas | ||
HERE | ||
|
||
#using system's pastebinit | ||
%__sed -i \ | ||
'\|/usr/share/i-nex/pastebinit/|s|/usr/share/i-nex/pastebinit/||' \ | ||
I-Nex/i-nex/.src/Reports/MPastebinit.module | ||
%__cp I-Nex/i-nex/logo/i-nex.0.4.x.png $RPM_SOURCE_DIR/%{name}.png | ||
%{__sed} -e 's|env LIBOVERLAY_SCROLLBAR=0 /usr/bin/i-nex.gambas|i-nex|' \ | ||
-e '/^Icon=/s|=.*|=%{name}|' debian/%{name}.desktop > %{name}.desktop | ||
|
||
%build | ||
cd I-Nex | ||
autoreconf -fiv | ||
%configure | ||
cd .. | ||
make \ | ||
%{?_smp_mflags} \ | ||
STATIC=false \ | ||
V=1 \ | ||
additional_confflags+="%{optflags}" | ||
|
||
%install | ||
make V=1 DESTDIR=%{buildroot} install | ||
|
||
# A hack to be able to run the program via the name execution. | ||
%{__install} -D -m 755 %{name}.sh %{buildroot}%{_bindir}/%{name} | ||
|
||
# Using %%doc macro, so files not needed | ||
rm -rf %{buildroot}%{_datadir}/doc/%{name} | ||
|
||
%fdupes -s %{buildroot}%{_datadir} | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%doc docs/copyright docs/I-Nex.LICENSE I-Nex/COPYING | ||
%{_bindir}/%{name}-* | ||
%doc %{_mandir}/man*/%{name}* | ||
/usr/share/i-nex/pastebinit | ||
|
||
%files data | ||
%defattr(-,root,root,-) | ||
%{_bindir}/%{name} | ||
%{_bindir}/%{name}.gambas | ||
%{_datadir}/applications/%{name}*.desktop | ||
%{_datadir}/pixmaps/%{name}* | ||
%doc debian/changelog* changelogs/changelog* | ||
%doc I-Nex/AUTHORS I-Nex/ChangeLog I-Nex/README | ||
/etc/i-nex | ||
/etc/udev/rules.d/i2c_smbus.rules | ||
|
||
%changelog | ||
* Wed Aug 17 2016 <GitHub/eloaders/I-Nex/alphastar868> | ||
- New SPEC file for 2016 RedHat RPM distros |