- spec adapterized.
authorkloczek <kloczek@pld-linux.org>
Wed, 17 May 2000 23:02:34 +0000 (23:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd.spec -> 1.10

apcupsd.spec

index f93b1ed..3a681ac 100644 (file)
@@ -2,8 +2,9 @@ Name:           apcupsd
 Version:       3.5.8
 Release:       2
 License:       GPL v2
-Group:         System Environment/Daemons
-Source:                http://www.brisse.dk/site/apcupsd/download/%{name}-%{version}.src.tar.gz
+Group:         Networking/Daemons
+Group(pl):     Sieciowe/Serwery
+Source0:       http://www.brisse.dk/site/apcupsd/download/%{name}-%{version}.src.tar.gz
 Patch0:                apcups-initscript.patch
 Patch1:                apcups-makefile.patch
 Patch2:                apcupsd-Makefile-fix.patch
@@ -12,15 +13,15 @@ URL:                http://www.brisse.dk/site/apcupsd/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 #Icon:         apcupsd-logo.xpm
 
-%define        _prefix /
-%define _mandir        /usr/share/man
+%define                _prefix         /
+%define                _mandir         /usr/share/man
 
 %description
 UPS power management under Linux for APCC Products. It allows your
-computer/server to run during power problems for a specified length of time
-or the life of the batteries in your BackUPS, BackUPS Pro, SmartUPS v/s, or
-SmartUPS, and then properly executes a controlled shutdown during an
-extended power failure.
+computer/server to run during power problems for a specified length of
+time or the life of the batteries in your BackUPS, BackUPS Pro,
+SmartUPS v/s, or SmartUPS, and then properly executes a controlled
+shutdown during an extended power failure.
 
 %prep
 %setup -q -n %{name}-%{version}.src
@@ -37,7 +38,7 @@ cat Makefile.orig \
 make linux
 
 %install
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
 
 # Some issues :
 # - why doesn't the Makefile know that it should install *-linux ??
@@ -47,14 +48,14 @@ rm -rf ${RPM_BUILD_ROOT}
 install -d ${RPM_BUILD_ROOT}/{bin,sbin,usr/share/man/man8}
 install -d ${RPM_BUILD_ROOT}/{etc/rc.d/init.d,var/log}
 
-NAME="-linux"  make MANPREFIX="${RPM_BUILD_ROOT}/usr/share/" install
+NAME="-linux"  make MANPREFIX="${RPM_BUILD_ROOT}%{_datadir}/" install
 # hany: why this? we're just building. not installing
 #[ -x /sbin/powersc ] && /sbin/powersc RESTARTME
-gzip -9nf ${RPM_BUILD_ROOT}/usr/share/man/man8/*
-install installs/apcupsd.conf ${RPM_BUILD_ROOT}/etc
+gzip -9nf ${RPM_BUILD_ROOT}%{_mandir}/man8/*
+install installs/apcupsd.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
 install installs/apcups.rhs ${RPM_BUILD_ROOT}/etc/rc.d/init.d/apcups
 touch ${RPM_BUILD_ROOT}/var/log/apcupsd.log
-touch ${RPM_BUILD_ROOT}/etc/apcupsd.status
+touch ${RPM_BUILD_ROOT}%{_sysconfdir}/apcupsd.status
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
@@ -88,14 +89,13 @@ chkconfig --del apcups
 %defattr(644,root,root,755)
 %doc README.NEW Changelog port.gif Statement.APCC
 %doc %{name}-%{version}.src.lsm
-%doc readmes/*
-%doc docs/apcupsd.docs
+%doc readmes/* docs/apcupsd.docs
 %doc installs/halt.rhs installs/apcups.rhs installs/powersc
-%attr(644,root,root) /usr/share/man/man8/apcupsd.8.gz
-%attr(755, root, bin)  /sbin/apcupsd
-%attr(755, root, root) /bin/apcaccess
-%attr(755, root, bin)  %config /sbin/powersc
-%attr(640, root, root) %config(noreplace) /etc/apcupsd.conf
-%attr(754, root, root) /etc/rc.d/init.d/apcups
+%{_mandir}/man8/apcupsd.8*
+%attr(755,root,root) /sbin/apcupsd
+%attr(755,root,root) /bin/apcaccess
+%attr(755,root,root) %config /sbin/powersc
+%attr(640,root,root) %config(noreplace) %{_sysconfdir}/apcupsd.conf
+%attr(754,root,root) /etc/rc.d/init.d/apcups
 %ghost /var/log/apcupsd.log
-%ghost /etc/apcupsd.status
+%ghost %{_sysconfdir}/apcupsd.status
This page took 0.112099 seconds and 4 git commands to generate.