Репозиторий Sisyphus
Последнее обновление: 21 апреля 2019 | Пакетов: 17649 | Посещений: 13454564
en ru br
Репозитории ALT
S:2.18-alt2
5.1: 2.14-alt1
4.1: 2.12-alt1
4.0: 2.10-alt1
3.0: 2.05-alt1
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: lshw

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable snapshot

Name: lshw
Version: 2.18
Release: alt2
%define real_version B.0%version

Summary: Hardware Lister
License: GPLv2 only
Group: System/Kernel and hardware
Url: http://ezix.org/project/wiki/HardwareLiSter

%if_disabled snapshot
Source: http://ezix.org/software/files/%name-%real_version.tar.gz
%else
Source: %name-%real_version.tar
%endif
Source1: lshw.consolehelper
Source2: lshw.pam
Source100: lshw-icons.tar.bz2
Source101: lshw.desktop

Patch1: lshw-2.11-guiname.patch
Patch2: lshw-2.13-gcc43.patch
Patch3: lshw-B.02.18-alt-build_gui.patch
# fc (rhbz #1332486)
Patch10: lshw-B.02.18-non-root.patch

Requires: pciids usbids

# Automatically added by buildreq on Sun Jan 15 2012

BuildRequires: gcc-c++ libgtk+2-devel libsqlite3-devel

%description
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 configuration, CPU version and speed, cache
configuration, bus speed, etc. on DMI-capable x86 systems, on some PowerPC
machines (PowerMac G4 is known to work) and AMD64.

Information can be output in plain text, XML or HTML.

%package gui
Summary: Graphical hardware lister
Group: System/Kernel and hardware
Requires: pciids usbids
# Probably we should drop this requirements...
Requires: lshw = %version-%release

%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 configuration, CPU version and speed, cache
configuration, bus speed, etc. on DMI-capable x86 systems, on some PowerPC
machines (PowerMac G4 is known to work) and AMD64.

This package provides graphical (GTK+) front-end to lshw.

%prep
%setup -n lshw-%real_version -a 100
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch10 -p1

%build
#subst 's/\(DEFINES=\)/\1-D_FILE_OFFSET_BITS=64 /' src/core/Makefile src/gui/Makefile src/Makefile
%add_optflags -D_FILE_OFFSET_BITS=64
export SQLITE=1
export NPROCS=1
%make_build all gui

%install
export SQLITE=1
%make_install install install-gui DESTDIR=%buildroot

install -Dp -m644 lshw.png %buildroot%_pixmapsdir/lshw.png
install -Dp -m644 lshw-16x16.png %buildroot%_miconsdir/lshw.png
install -Dp -m644 lshw-32x32.png %buildroot%_niconsdir/lshw.png
install -Dp -m644 lshw-48x48.png %buildroot%_liconsdir/lshw.png
install -Dp -m644 %_sourcedir/lshw.desktop %buildroot%_desktopdir/lshw.desktop

# To run GUI via consolehelper

install -pD -m640 %_sourcedir/lshw.pam %buildroot%_sysconfdir/pam.d/lshw-gui
install -pD -m640 %_sourcedir/lshw.consolehelper %buildroot%_sysconfdir/security/console.apps/lshw-gui
install -d %buildroot%_bindir
ln -s %_bindir/consolehelper %buildroot%_bindir/lshw-gui

%find_lang lshw

%files -f lshw.lang
%_sbindir/lshw
%exclude %_datadir/lshw/*.txt
%exclude %_datadir/lshw/*.ids
%_man1dir/*

%files gui
%_bindir/lshw-gui
%_sbindir/lshw-gui
%_sysconfdir/security/console.apps/*
%_sysconfdir/pam.d/*
%dir %_datadir/lshw
%_datadir/lshw/ui/
%_datadir/lshw/artwork/
%_pixmapsdir/*
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%_desktopdir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin