Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37822621
en ru br
Репозитории ALT
5.1: 0.2.26-alt1
4.1: 0.2.25.1-alt1.1
4.0: 0.2.24-alt1
3.0: 0.2.21-alt1
+updates:0.2.21.2-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libhw

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

#
# $Id: libhw.spec 229 2005-09-13 12:54:22Z rider $
#
Name: libhw
Version: 0.2.21
Release: alt1
Summary: The Linux hardware detection and setup library
Summary(ru_RU.KOI8-R): Библиотека для определения и настройки оборудования в Linux
License: GPL
Group: System/Libraries
Requires: hwdatabase >= 0.3.16
URL: http://www.altlinux.com/

Packager: Anton Farygin <rider at altlinux.ru>

Source: %name-%version.tar.bz2

# Automatically added by buildreq on Fri Oct 15 2004

BuildRequires: boost-devel fontconfig freetype2 gcc-c++ libqt3-devel libstdc++-devel libsysfs-devel xorg-x11-libs

BuildPreReq: libfdisk0-devel, chrpath, libsysfs-devel >= 1.2.0-alt1, libe2fs-devel, pciutils-devel-static >= 2.1.11-alt9, libvbe-devel >= 2.0
PreReq: libfdisk0
%description
libhw is a hardware detection and setup library.

%package devel
Summary: Development part of %name
Group: Development/C++
Requires: %name = %version-%release

%description devel
Contents header files and development libraries for %name

%package devel-static
Summary: Static libraries for %name
Group: Development/C++
Requires: %name-devel = %version-%release

%description devel-static
Contents static libraries for %name

%package tools
Summary: The Linux hardware detection tools
Group: System/Kernel and hardware
Requires: %name = %version-%release

%description tools
Hardware detection tools

%package tools-x11
Summary: Various hardware-specific tools for X11
Group: System/Kernel and hardware
Requires: %name = %version-%release

%description tools-x11
Various hardware-specific tools for X11

%prep
%setup -q

%define _optlevel s

%build
%make_build CFLAGS="$RPM_OPT_FLAGS" LIBDIR=%_libdir X11LIBDIR=%_x11libdir

%install
%makeinstall DESTDIR=%buildroot LIBDIR=%_libdir

# icon

mkdir -p $RPM_BUILD_ROOT%_datadir/icons/{mini,large}
install -m644 misc/xcpufreq-48x48.png $RPM_BUILD_ROOT%_liconsdir/xcpufreq.png
install -m644 misc/xcpufreq-16x16.png $RPM_BUILD_ROOT%_miconsdir/xcpufreq.png
install -m644 misc/xcpufreq-32x32.png $RPM_BUILD_ROOT%_iconsdir/xcpufreq.png

# menu

install -m 755 -d $RPM_BUILD_ROOT%_menudir
install -m 644 misc/xcpufreq.menu $RPM_BUILD_ROOT%_menudir/xcpufreq

%post tools-x11
%update_menus

%postun tools-x11
%clean_menus

%files
%_libdir/*.so.*

%files devel
%_libdir/*.so
%dir %_includedir/%name
%_includedir/%name/*
%_bindir/getpciids

%files devel-static
%_libdir/*.a

%files tools
%_bindir/*
%exclude %_bindir/getpciids

%files tools-x11
%_x11bindir/*
%_liconsdir/*.png
%_miconsdir/*.png
%_iconsdir/*.png
%_menudir/*

%changelog

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

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