Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37768155
en ru br
Репозитории ALT
5.1: 0.5.13-alt3.M51.1
4.1: 0.5.11-alt21.M41.4
4.0: 0.5.10-alt9.M40.1
3.0: 0.5.4-alt6
www.altlinux.org/Changes

Другие репозитории
Upstream:0.5.10

Группа :: Система/Серверы
Пакет: hal

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

%define _libexecdir %_prefix/libexec
%define _haldocdir  %_docdir/lib%name-devel-%version

%def_disable console_kit
%def_disable policy_kit

Name: hal
Version: 0.5.10
Release: alt9.M40.1

Summary: Hardware Abstraction Layer
Summary(ru_RU.UTF-8): HAL - п©я─п╬я│п╩п╬п╧п╨п╟ п╢п╩я▐ п╟п╠я│я┌я─п╟пЁп╦я─п╬п╡п╟п╫п╦я▐ п╬п╠п╬я─я┐п╢п╬п╡п╟п╫п╦я▐
Summary(be_BY.UTF-8): HAL (Hardware Abstraction Layer) - п©я─п╟я│п╩п╬п╧п╨п╟ п╟п╠я│я┌я─п╟пЁп╟п╡п╟п╫я▄п╫я▐ п╟п╠я│я┌п╟п╩я▐п╡п╟п╫я▄п╫я▐

Group: System/Servers
License: AFL/GPL
Url: http://www.freedesktop.org/wiki/Software/hal

Source0: http://hal.freedesktop.org/releases/%name-%version.tar.gz

Source100: %name.init

Patch0: hal-0.5.10-alt-autoconf.patch
Patch1: hal-0.5.10-alt-hibernate.patch
Patch2: hal-0.5.10-alt-dir.patch
Patch3: hal-0.5.10-alt-libvolume_id.patch
Patch4: hal-0.5.8.1-alt-partutil.patch
Patch5: hal-0.5.9.1-alt-man.patch
Patch6: hal-0.5.9-alt-policy.patch
Patch7: hal-0.5.9.1-alt-crypt.patch
Patch8: hal-0.5.9.1-alt-vfat-flush.patch
Patch9: hal-0.5.10-alt-x11.patch
Patch10: hal-0.5.10-alt-int_outof.patch

Patch100: hal-0.5.10-git-GSList-related-memleaks.patch
Patch101: hal-0.5.10-git-wol.patch
Patch102: hal-0.5.10-git-libhal-memleak.patch
Patch103: hal-0.5.10-git-drm-subsystem.patch
Patch104: hal-0.5.10-git-Eject-dm-devices.patch
Patch105: hal-0.5.10-git-fdi-cache-recreation.patch
Patch106: hal-0.5.10-git-battery-remaining-time.patch
Patch107: hal-0.5.10-git-normalised_rate.patch
Patch108: hal-0.5.10-git-keyboard-addon.patch
Patch109: hal-0.5.10-git-addon-exiting.patch
Patch110: hal-0.5.10-git-disc-type-detection.patch
Patch111: hal-0.5.10-git-match-rules.patch

Conflicts: hal-fstab-sync
PreReq: lib%name = %version-%release dbus >= 1.0.2-alt4 udev
%if_enabled console_kit
PreReq: ConsoleKit >= 0.2.3
%endif
%if_enabled policy_kit
PreReq: PolicyKit >= 0.6
%endif
Requires: hal-info dmidecode
PreReq: shadow-utils

AutoReq: yes, noshell
# Automatically added by buildreq on Mon Feb 26 2007 (-bi)
BuildRequires: docbook-utils gcc-c++ gtk-doc intltool libdbus-glib-devel libexpat-devel
BuildRequires: libusb-devel libvolume_id-devel perl-XML-Parser python-devel gperf
BuildRequires: python-modules-compiler python-modules-encodings xmlto
%if_enabled console_kit
BuildRequires: libConsoleKit-devel >= 0.2.3
%endif
%if_enabled policy_kit
BuildRequires: PolicyKit libPolicyKit-devel >= 0.6
%endif
%ifarch %ix86 x86_64
BuildRequires: libsmbios-devel
%endif
%ifarch %ix86
BuildRequires: pciutils-devel-static zlib-devel
%endif

%description
HAL is daemon for collection and maintaining information from several
sources about the hardware on the system. It provdes a live device
list through D-BUS.

%description -l ru_RU.UTF-8
HAL - я█я┌п╬ п©я─п╬я│п╩п╬п╧п╨п╟, п╟п╠я│я┌я─п╟пЁп╦я─я┐я▌я┴п╟я▐ п╬п╠п╬я─я┐п╢п╬п╡п╟п╫п╦п╣

%description -l be_BY.UTF-8
HAL (Hardware Abstraction Layer) - п©я─п╟я│п╩п╬п╧п╨п╟ п╟п╠я│я┌я─п╟пЁп╟п╡п╟п╫я▄п╫я▐ п╟п╠я│я┌п╟п╩я▐п╡п╟п╫я▄п╫я▐

%package dell-backlight
Summary: Addon and policy for Dell backlight support
Group: System/Configuration/Hardware
Requires: %name = %version-%release libsmbios-tools

%description dell-backlight
This is for controlling LCD brightness on DELL computers.
DELL require the use of libsmbios to control the panel together with the dcdbas kernel module.

%package -n lib%name
Summary: Shared libraries for HAL
Group: System/Libraries
Requires: hwdatabase

%description -n lib%name
This package provides shared libraries for HAL.

%package -n lib%name-devel
Summary: Libraries and headers for HAL
Summary(be_BY.UTF-8): п╓п╟п╧п╩я▀ я─п╟я│п©я─п╟я├п╬я·п╨я√ п©п╟я┌я─я█п╠п╫я▀я▐ п╢п╩я▐ п©п╟п╠я┐п╢п╬п╡я▀ п╢п╟я│я┌п╟я│п╟п╡п╟п╫я▄п╫я▐я· п╥ %name
Summary(ru_RU.UTF-8): п╓п╟п╧п╩я▀ я─п╟п╥я─п╟п╠п╬я┌п╨п╦ п╫я┐п╤п╫я▀п╣ п╢п╩я▐ п©п╬я│я┌я─п╬п╣п╫п╦я▐ п©я─п╦п╩п╬п╤п╣п╫п╦п╧ я│ %name
Group: Development/C
Requires: lib%name = %version-%release
Obsoletes: %name-devel < %version-%release lib%name-devel-doc < %version-%release
Provides: %name-devel = %version-%release lib%name-devel-doc = %version-%release

%description -n lib%name-devel
Headers for HAL.

%description -n lib%name-devel -l be_BY.UTF-8
п╓п╟п╧п╩я▀ я─п╟я│п©я─п╟я├п╬я·п╨я√ п©п╟я┌я─я█п╠п╫я▀я▐ п╢п╩я▐ п©п╟п╠я┐п╢п╬п╡я▀ п╢п╟я│я┌п╟я│п╟п╡п╟п╫я▄п╫я▐я· п╥ %name

%description -n lib%name-devel -l ru_RU.UTF-8
п╓п╟п╧п╩я▀ я─п╟п╥я─п╟п╠п╬я┌п╨п╦ п╫я┐п╤п╫я▀п╣ п╢п╩я▐ п©п╬я│я┌я─п╬п╣п╫п╦я▐ п©я─п╦п╩п╬п╤п╣п╫п╦п╧ я│ %name

%prep
%setup -q

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1

%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
%patch109 -p1
%patch110 -p1
%patch111 -p1

%build
%__autoreconf
%configure \
--disable-static \
--enable-docbook-docs \
--enable-gtk-doc \
--with-doc-dir=%_haldocdir \
--with-html-dir=%_haldocdir/api \
%ifarch %ix86 x86_64
--enable-acpi-ibm \
--enable-acpi-toshiba \
%endif
--disable-acpi-proc \
--disable-pmu \
%{subst_enable console_kit} \
%{subst_enable policy_kit} \
%if_enabled policy_kit
--enable-acl-management \
%endif
--with-hal-user=haldaemon \
--with-hal-group=haldaemon \
--with-hwdata=%_datadir/hwdatabase \
--with-pid-file=%_var/run/hal.pid \
--localstatedir=%_var

%make -C doc/api ||:
%make_build

%install
%make DESTDIR=%buildroot install

%__mkdir_p %buildroot%_var/{run,cache}/hald
%__mkdir_p %buildroot%_sysconfdir/hal/fdi/{information,policy,preprobe}
%__install -Dp -m755 %SOURCE100 %buildroot%_initdir/haldaemon

%find_lang %name

%triggerun -n %name -- %name < 0.5.7
/sbin/chkconfig --del hal
/sbin/chkconfig --add haldaemon

%triggerpostun -n %name -- %name <= 0.5.9.1-alt4
/sbin/chkconfig haldaemon resetpriorities

%pre
%_sbindir/groupadd -r -f haldaemon >/dev/null 2>&1 || :
%_sbindir/useradd -r -g haldaemon -d '/' -s /sbin/nologin -c "HAL daemon" haldaemon >/dev/null 2>&1 ||:

%post
%post_service haldaemon

%preun
%preun_service haldaemon

%post -n lib%name
%post_ldconfig

%postun -n lib%name
%postun_ldconfig

%files -f %name.lang
%doc AUTHORS NEWS README doc/TODO
%config(noreplace) %verify(not size mtime md5) %_sysconfdir/dbus*/system.d/hal.conf
%_sysconfdir/udev/rules.d/90-hal.rules
%_initdir/haldaemon
%dir %_sysconfdir/hal
%dir %_sysconfdir/hal/fdi
%dir %_sysconfdir/hal/fdi/information
%dir %_sysconfdir/hal/fdi/policy
%dir %_sysconfdir/hal/fdi/preprobe
%_sbindir/*
%_bindir/hal-device
%_bindir/hal-find*
%_bindir/hal-set*
%_bindir/hal-get*
%_bindir/hal-is*
%_bindir/hal-lock
%_bindir/hal-disable-polling
%_bindir/lshal
%_libexecdir/hal
%dir %_datadir/hal
%_datadir/hal/fdi
%_datadir/hal/scripts
%_man1dir/*.1*
%_man8dir/*.8*
%attr(0775,root,haldaemon) %_var/*/hald
%if_enabled policy_kit
%_datadir/PolicyKit/policy/*.policy
%endif

%ifarch %ix86 x86_64
%exclude %_libexecdir/hal/hald-addon-dell-backlight
%exclude %_datadir/hal/fdi/policy/10osvendor/10-dell-laptop-brightness.fdi

%files dell-backlight
%_libexecdir/hal/hald-addon-dell-backlight
%_datadir/hal/fdi/policy/10osvendor/10-dell-laptop-brightness.fdi
%endif

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_haldocdir
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*

%changelog

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

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