Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
lshw
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 22
[-]
[+]
Changed
lshw.spec
@@ -1,3 +1,77 @@ +%define disable_gui 0 +%if 0%{?sles_version} + %if 0%{?sles_version} == 9 || 0%{?sles_version} == 10 + %define disable_gui 1 + %endif +%endif +%if 0%{?rhel} == 5 || 0%{?centos_version} == 5 + %define disable_gui 1 +%endif +%if 0%{?rhel_version} + %if 0%{?rhel_version} == 500 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 501 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 502 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 503 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 504 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 505 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 506 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 507 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 508 + %define disable_gui 1 + %endif + %if 0%{?rhel_version} == 509 + %define disable_gui 1 + %endif +%endif +%if 0%{?sl_version} + %if 0%{?sl_version} == 500 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 501 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 502 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 503 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 504 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 505 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 506 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 507 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 508 + %define disable_gui 1 + %endif + %if 0%{?sl_version} == 509 + %define disable_gui 1 + %endif +%endif + Summary: HardWare LiSter Name: lshw Version: B.02.16 @@ -26,7 +100,7 @@ http://www.ezix.org/software/lshw.html -%if 0%{?sles_version} != 9 +%if 0%{?disable_gui} == 1 %package gui Summary: HardWare LiSter (GUI version) @@ -37,7 +111,7 @@ %endif -%if 0%{?sles_version} != 9 +%if 0%{?disable_gui} == 1 %description gui lshw (Hardware Lister) is a small tool to provide detailed informaton on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configura @@ -59,14 +133,14 @@ %build %{__make} -%if 0%{?sles_version} != 9 +%if 0%{?disable_gui} == 1 %{__make} gui %endif %install make DESTDIR=$RPM_BUILD_ROOT PREFIX=%_prefix SBINDIR=%_sbindir MANDIR=%_mandir install -%if 0%{?sles_version} != 9 +%if 0%{?disable_gui} == 1 make DESTDIR=$RPM_BUILD_ROOT PREFIX=%_prefix SBINDIR=%_sbindir MANDIR=%_mandir install-gui %endif @@ -83,7 +157,7 @@ %config(noreplace) %{_datadir}/lshw/usb.ids %{_datadir}/locale/fr/LC_MESSAGES/lshw.mo -%if 0%{?sles_version} != 9 +%if 0%{?disable_gui} == 1 %files gui %defattr(-,root,root) %doc COPYING