Группа :: Система/Библиотеки
Пакет: libhw
Главная Изменения Спек Патчи Загрузить Bugs and FR
#
# $Id: libhw.spec,v 1.36 2005/04/28 13:13:11 rider Exp $
#
Name: libhw
Version: 0.2.12
Release: alt0.M24.2
Summary: The Linux hardware detection and setup library
Summary(ru_RU.KOI8-R): Библиотека для определения и настройки оборудования в Linux
License: GPL
Group: System/Libraries
Requires: hwdatabase >= 0.3.6
URL: http://www.altlinux.com/
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 XFree86-libs
BuildPreReq: libfdisk0-devel, chrpath, libsysfs-devel >= 1.2.0-alt1.M24.1, libe2fs-devel, pciutils-devel-static >= 2.1.11-alt9.M24.1
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
Conflicts: hotplug < 1:2004_09_23
%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"
%install
%makeinstall DESTDIR=%buildroot
# 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 можно просмотреть здесь
# $Id: libhw.spec,v 1.36 2005/04/28 13:13:11 rider Exp $
#
Name: libhw
Version: 0.2.12
Release: alt0.M24.2
Summary: The Linux hardware detection and setup library
Summary(ru_RU.KOI8-R): Библиотека для определения и настройки оборудования в Linux
License: GPL
Group: System/Libraries
Requires: hwdatabase >= 0.3.6
URL: http://www.altlinux.com/
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 XFree86-libs
BuildPreReq: libfdisk0-devel, chrpath, libsysfs-devel >= 1.2.0-alt1.M24.1, libe2fs-devel, pciutils-devel-static >= 2.1.11-alt9.M24.1
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
Conflicts: hotplug < 1:2004_09_23
%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"
%install
%makeinstall DESTDIR=%buildroot
# 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 можно просмотреть здесь