Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37047252
en ru br
ALT Linux repositórios
S:3.2.2-alt9
5.0: 3.2.2-alt4
4.1: 3.2.2-alt2
4.0: 3.2.2-alt2
3.0: 3.2.2-alt1

Group :: Sistema/Servidores
RPM: apmd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: apmd
Version: 3.2.2
Release: alt2
Epoch: 1
%define subver 3

#  Devel-static is omitted by default,

#  but may be overridden using 'rpmbuid --with static ...'
%def_without static

Summary: Advanced Power Management (APM) BIOS utilities for laptops
Summary(ru_RU.KOI8-R): õÔÉÌÉÔÙ ÕÐÒÁ×ÌÅÎÉÑ ÓÉÓÔÅÍÏÊ ÐÉÔÁÎÉÑ (APM BIOS)
License: GPL
Group: System/Servers
ExclusiveArch: %ix86
Url: ftp://ftp.debian.org/debian/pool/main/a/%name

Source0: %url/%{name}_%version.orig.tar.gz
Source1: apmd.init
Source2: apmd_proxy
Source3: apmd.conf
Source4: apmd.README.ALT

Patch1: %url/%{name}_%version-%subver.diff.gz
Patch2: %name-3.2.1-alt-makefile.patch
Patch3: %name-3.2.1-alt-doc.patch
Patch4: %name-3.2.1-alt-fixes.patch

Requires: libapm = %version-%release
PreReq: powermgmt-base
Requires(post): %post_service
Requires(preun): %preun_service

BuildPreReq: XFree86-devel

%package -n xapm
Summary: The X11 utility that displays APM BIOS information
Summary(ru_RU.KOI8-R): çÒÁÆÉÞÅÓËÁÑ ÕÔÉÌÉÔÁ ÄÌÑ ÐÏËÁÚÁ ÉÎÆÏÒÍÁÃÉÉ BIOS ÏÂ APM
Group: System/XFree86
Requires: %name = %version-%release
Provides: %name-x11 = %version-%release
Obsoletes: %name-x11

%package -n libapm
Summary: The shared library for interacting with the kernel APM driver
Summary(ru_RU.KOI8-R): âÉÂÌÉÏÔÅËÁ ÄÌÑ ×ÚÁÉÍÏÄÅÊÓÔ×ÉÑ Ó APM-ÄÒÁÊ×ÅÒÏÍ ÑÄÒÁ
Group: System/Libraries

%package -n libapm-devel
Summary: The development library and header files for APM
Summary(ru_RU.KOI8-R): óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÄÏÓÔÕÐÁ Ë APM
Group: Development/C
Requires: libapm = %version-%release
Provides: apmd-devel = %version-%release
Obsoletes: apmd-devel

%if_with static
%package -n libapm-devel-static
Summary: The development library for linking APM access functions statically
Summary(ru_RU.KOI8-R): óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÒÁÂÏÔÙ Ó APM
Group: Development/C
Requires: libapm-devel = %version-%release
%endif

%description
On laptop computers, the Advanced Power Management (APM) support provides
access to battery status information and may help you to conserve
battery power, depending on your laptop and the APM implementation.
The apmd program also lets you run arbitrary programs when APM events
happen (for example, you can eject PCMCIA devices when you suspend,
or change hard drive timeouts when you connect the battery).

This package contains apmd(8), a daemon for logging and acting on APM
events; and apm(1), a client that prints the information in /proc/apm
in a readable format.

%description -l ru_RU.KOI8-R
îÁ ÐÏÒÔÁÔÉ×ÎÙÈ ËÏÍÐØÀÔÅÒÁÈ ÆÕÎËÃÉÉ ÒÁÓÛÉÒÅÎÎÏÇÏ ÕÐÒÁ×ÌÅÎÉÑ ÐÉÔÁÎÉÅÍ
(Advanced Power Management, APM) ÓÌÕÖÁÔ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÉÎÆÏÒÍÁÃÉÉ
Ï ÓÏÓÔÏÑÎÉÉ ÂÁÔÁÒÅÉ É ÕÐÒÁ×ÌÅÎÉÑ ÒÅÖÉÍÏÍ ÜÎÅÒÇÏÐÏÔÒÅÂÌÅÎÉÑ.

äÁÎÎÙÊ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ apmd(8), ÄÅÍÏÎ ÄÌÑ ÐÒÏÔÏËÏÌÉÒÏ×ÁÎÉÑ É ÒÅÁËÃÉÉ
ÎÁ ÉÓÈÏÄÑÝÉÅ ÏÔ APM ÓÏÂÙÔÉÑ, Á ÔÁËÖÅ ËÏÎÓÏÌØÎÕÀ ÕÔÉÌÉÔÕ apm(1)
ÄÌÑ ÒÁÓÐÅÞÁÔËÉ ÉÎÆÏÒÍÁÃÉÉ ÉÚ /proc/apm × ÞÉÔÁÂÅÌØÎÏÍ ×ÉÄÅ.

ðÒÉÍÅÒÁÍÉ ÒÅÁËÃÉÉ ÎÁ APM-ÓÏÂÙÔÉÑ ÍÏÇÕÔ ÓÌÕÖÉÔØ ÏÔËÌÀÞÅÎÉÅ PCMCIA-ÕÓÔÒÏÊÓÔ×
ÐÒÉ ÐÅÒÅÈÏÄÅ × ÓÐÑÝÉÊ ÒÅÖÉÍ ÉÌÉ Õ×ÅÌÉÞÅÎÉÅ ÔÁÊÍÁÕÔÁ ÂÅÚÄÅÊÓÔ×ÉÑ ÄÉÓËÁ
ÐÒÉ ÐÏÄËÌÀÞÅÎÉÉ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÂÁÔÁÒÅÉ.

%description -n xapm
On laptop computers, the Advanced Power Management (APM) support provides
access to battery status information and may help you to conserve battery
power, depending on your laptop and the APM implementation.

This package contains xapm(1), an X11 utility that displays APM BIOS
information.

%description -n xapm -l ru_RU.KOI8-R
îÁ ÐÏÒÔÁÔÉ×ÎÙÈ ËÏÍÐØÀÔÅÒÁÈ ÆÕÎËÃÉÉ ÒÁÓÛÉÒÅÎÎÏÇÏ ÕÐÒÁ×ÌÅÎÉÑ ÐÉÔÁÎÉÅÍ
(Advanced Power Management, APM) ÓÌÕÖÁÔ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÉÎÆÏÒÍÁÃÉÉ
Ï ÓÏÓÔÏÑÎÉÉ ÂÁÔÁÒÅÉ É ÕÐÒÁ×ÌÅÎÉÑ ÒÅÖÉÍÏÍ ÜÎÅÒÇÏÐÏÔÒÅÂÌÅÎÉÑ.

äÁÎÎÙÊ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ xapm, ÕÔÉÌÉÔÕ ÄÌÑ ÐÏËÁÚÁ ÓÏÓÔÏÑÎÉÑ APM
× ÇÒÁÆÉÞÅÓËÏÍ ÒÅÖÉÍÅ.

%description -n libapm
On laptop computers, the Advanced Power Management (APM) support provides
access to battery status information and may help you to conserve battery
power, depending on your laptop and the APM implementation.

This package contains a shared library that provides support for
interacting with the APM driver in the kernel.

%description -n libapm -l ru_RU.KOI8-R
îÁ ÐÏÒÔÁÔÉ×ÎÙÈ ËÏÍÐØÀÔÅÒÁÈ ÆÕÎËÃÉÉ ÒÁÓÛÉÒÅÎÎÏÇÏ ÕÐÒÁ×ÌÅÎÉÑ ÐÉÔÁÎÉÅÍ
(Advanced Power Management, APM) ÓÌÕÖÁÔ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÉÎÆÏÒÍÁÃÉÉ
Ï ÓÏÓÔÏÑÎÉÉ ÂÁÔÁÒÅÉ É ÕÐÒÁ×ÌÅÎÉÑ ÒÅÖÉÍÏÍ ÜÎÅÒÇÏÐÏÔÒÅÂÌÅÎÉÑ.

äÁÎÎÙÊ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÄÉÎÁÍÉÞÅÓËÕÀ ÒÁÚÄÅÌÑÅÍÕÀ ÂÉÂÌÉÏÔÅËÕ,
ÞÅÒÅÚ ËÏÔÏÒÕÀ ÐÒÏÇÒÁÍÍÙ ÏÓÕÝÅÓÔ×ÌÑÀÔ ×ÚÁÉÍÏÄÅÊÓÔ×ÉÅ Ó ÄÒÁÊ×ÅÒÏÍ APM,
ÒÁÓÐÏÌÏÖÅÎÎÙÍ × ÑÄÒÅ.

%description -n libapm-devel
On laptop computers, the Advanced Power Management (APM) support provides
access to battery status information and may help you to conserve battery
power, depending on your laptop and the APM implementation.

This package contains a library and header files needed to write programs
that interact with the APM driver in the kernel.

%description -n libapm-devel -l ru_RU.KOI8-R
îÁ ÐÏÒÔÁÔÉ×ÎÙÈ ËÏÍÐØÀÔÅÒÁÈ ÆÕÎËÃÉÉ ÒÁÓÛÉÒÅÎÎÏÇÏ ÕÐÒÁ×ÌÅÎÉÑ ÐÉÔÁÎÉÅÍ
(Advanced Power Management, APM) ÓÌÕÖÁÔ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÉÎÆÏÒÍÁÃÉÉ
Ï ÓÏÓÔÏÑÎÉÉ ÂÁÔÁÒÅÉ É ÕÐÒÁ×ÌÅÎÉÑ ÒÅÖÉÍÏÍ ÜÎÅÒÇÏÐÏÔÒÅÂÌÅÎÉÑ.

äÁÎÎÙÊ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÚÁÇÏÌÏ×ÏÞÎÙÅ ÆÁÊÌÙ É ÐÏÄÓËÁÚËÉ, ÎÅÏÂÈÏÄÉÍÙÅ
ÄÌÑ ÒÁÚÒÁÂÏÔËÉ É ÓÂÏÒËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÂÉÂÌÉÏÔÅËÕ ÄÏÓÔÕÐÁ
Ë ÆÕÎËÃÉÑÍ ÄÒÁÊ×ÅÒÁ APM.

%if_with static

%description -n libapm-devel-static
On laptop computers, the Advanced Power Management (APM) support provides
access to battery status information and may help you to conserve battery
power, depending on your laptop and the APM implementation.

This package contains a library needed to static linking programs
that interact with the APM driver in the kernel.

%description -n libapm-devel-static -l ru_RU.KOI8-R
îÁ ÐÏÒÔÁÔÉ×ÎÙÈ ËÏÍÐØÀÔÅÒÁÈ ÆÕÎËÃÉÉ ÒÁÓÛÉÒÅÎÎÏÇÏ ÕÐÒÁ×ÌÅÎÉÑ ÐÉÔÁÎÉÅÍ
(Advanced Power Management, APM) ÓÌÕÖÁÔ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÉÎÆÏÒÍÁÃÉÉ
Ï ÓÏÓÔÏÑÎÉÉ ÂÁÔÁÒÅÉ É ÕÐÒÁ×ÌÅÎÉÑ ÒÅÖÉÍÏÍ ÜÎÅÒÇÏÐÏÔÒÅÂÌÅÎÉÑ.

äÁÎÎÙÊ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÕ ÄÌÑ ÓÔÁÔÉÞÅÓËÏÊ ËÏÍÐÏÎÏ×ËÉ ÐÒÏÇÒÁÍÍ,
ÉÓÐÏÌØÚÕÀÝÉÈ APM.

%endif

%prep
%setup -q -n %name-%version.orig
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%__install -p -m644 %SOURCE4 README.ALT

%build
%make_build

%install
%__mkdir_p $RPM_BUILD_ROOT%_mandir/man{1,8}
%make_install install DESTDIR=$RPM_BUILD_ROOT
%__install -p -m644 {apm,apmsleep,xapm}.1 $RPM_BUILD_ROOT%_man1dir/
%__install -p -m644 apmd.8 $RPM_BUILD_ROOT%_man8dir/
%__install -pD -m755 %SOURCE1 $RPM_BUILD_ROOT%_initdir/%name
%__install -pD -m755 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/apm/apmd_proxy
%__install -pD -m644 %SOURCE3 $RPM_BUILD_ROOT%_sysconfdir/sysconfig/%name

%post
%post_service apmd

%preun
%preun_service apmd

%post -n libapm -p %post_ldconfig
%postun -n libapm -p %postun_ldconfig

%files
%_sbindir/*
%_bindir/*
%exclude %_bindir/xapm
%_mandir/man?/*
%exclude %_man1dir/xapm.*
%config %_initdir/%name
%config %_sysconfdir/apm/apmd_proxy
%config(noreplace) %_sysconfdir/sysconfig/%name
%doc AUTHORS ChangeLog LSM *README*

%files -n xapm
%_bindir/xapm
%_man1dir/xapm.*

%files -n libapm
%_libdir/*.so.*

%files -n libapm-devel
%_libdir/*.so
%_includedir/*

%if_with static
%files -n libapm-devel-static
%_libdir/libapm.a
%else
%exclude %_libdir/libapm.a
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009