Sisyphus repositório
Última atualização: 28 setembro 2020 | SRPMs: 17704 | Visitas: 19306742
en ru br
ALT Linux repositórios
S:3.2.2-alt8
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: alt1
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