Sophie

Sophie

distrib > Mageia > 8 > aarch64 > by-pkgid > b459b2d72c04dce2702cc8883c5fa632 > files > 8

apmd-3.2.2-39.mga8.src.rpm

%define libname_orig	libapm
%define major		1
%define libname		%mklibname apm %{major}
%define develname	%mklibname apm -d

Summary:	Advanced Power Management (APM) BIOS utilities for laptops
Name:		apmd
Version:	3.2.2
Release:	%mkrel 39
Source:		ftp://ftp.debian.org/debian/pool/main/a/apmd/%{name}_%{version}.orig.tar.bz2
Source1:	apmd.init
Source3:	apmd_proxy
Patch0:		apmd-3.2.2.orig-lib64.patch
Patch1:		apmd-3.2.2.orig-graphicswitch.patch
Patch2:		apmd-3.2.2.orig-optimization.patch
Patch5:		apmd-3.2.2.orig-security.patch
Patch9:		apmd-3.2.2.orig-proxy-timeout.patch
Patch10:	apmd-3.2.2-libtool.patch
License:	GPLv2+
Group:		System/Servers
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)
BuildRequires:	libtool
Requires:	initscripts

%description
APMD is a set of programs for controlling the Advanced Power 
Management daemon and utilities found in most modern laptop 
computers. APMD can watch your notebook's battery and warn 
users when the battery is low. APMD is also capable of shutting 
down the PCMCIA sockets before a suspend.

Install the apmd package if you need to control the APM system 
on your laptop.

%package -n %{libname}
Summary:	Main library for %{libname_orig}
Group:		System/Libraries
Provides:	%{libname_orig} = %{version}-%{release}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{libname_orig}.

%package -n %{develname}
Summary:	Development library for %{libname_orig}
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{libname_orig}-devel = %{version}-%{release}
Obsoletes:	%{name}-devel
Obsoletes:	%{mklibname apm 1 -d}
Provides:	%{name}-devel

%description -n %{develname}
This package contains the developmeent library needed to compile
programs that use %{libname_orig}.

%prep
%setup -q -n apmd-%{version}.orig
%autopatch -p1
echo "LIB = %_lib" > config.make

%build
%serverbuild
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%{ldflags}" PROXY_DIR=%{_sbindir}

%install
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/apm-scripts

%make_install PREFIX=%{_prefix} MANDIR=%{_mandir}

for i in apm.1 apmsleep.1;do install -m644 $i -D %{buildroot}/%{_mandir}/man1/$i;done
install -m644 apmd.8 -D %{buildroot}/%{_mandir}/man8/apmd.8

install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/apmd
install -m755 %{SOURCE3} -D %{buildroot}%{_sbindir}/apmd_proxy
rm -f %{buildroot}%{_bindir}/on_ac_power

%post 
%_post_service apmd

%preun
%_preun_service apmd

%triggerpostun -- apmd <= 3.0final-6
/sbin/chkconfig --add apmd

%files
%doc AUTHORS ChangeLog README apmsleep.README
%{_mandir}/man?/*
%{_bindir}/*
%{_sbindir}/*
%config(noreplace) %{_initrddir}/apmd

%files -n %{libname}
%{_libdir}/*.so.*

%files -n %{develname}
%{_libdir}/*so
%{_libdir}/*a
%{_includedir}/*





%changelog
* Tue Mar 31 2020 danf <danf> 3.2.2-39.mga8
+ Revision: 1562809
- Update libtool.patch for libtool 2.4.6

* Tue Feb 11 2020 umeabot <umeabot> 3.2.2-38.mga8
+ Revision: 1489035
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%makeinstall_std

* Sat Sep 08 2018 wally <wally> 3.2.2-37.mga7
+ Revision: 1257851
- build on all arches

* Sat Feb 13 2016 umeabot <umeabot> 3.2.2-36.mga6
+ Revision: 959517
- Mageia 6 Mass Rebuild

* Wed Sep 16 2015 tv <tv> 3.2.2-35.mga6
+ Revision: 879777
- really reenable debuginfo

* Wed Sep 16 2015 tv <tv> 3.2.2-34.mga6
+ Revision: 879772
- reenable debuginfo & fix empty debuginfo

* Wed Sep 09 2015 neoclust <neoclust> 3.2.2-33.mga6
+ Revision: 875058
- Fix build with new rpm ( empty debuginfo)

* Wed Oct 15 2014 umeabot <umeabot> 3.2.2-32.mga5
+ Revision: 738979
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 3.2.2-31.mga5
+ Revision: 677864
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 3.2.2-30.mga4
+ Revision: 502561
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 3.2.2-29.mga3
+ Revision: 345956
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Jan 02 2013 pterjan <pterjan> 3.2.2-28.mga3
+ Revision: 337665
- Fix build
+ zezinho <zezinho>
- spec cleanup

* Wed Mar 09 2011 ennael <ennael> 3.2.2-26.mga1
+ Revision: 66853
- clean spec file
- imported package apmd