]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
- adapter(ized) and partialy rewrited.
authorkloczek <kloczek@pld-linux.org>
Sat, 27 Nov 1999 14:24:09 +0000 (14:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd.spec -> 1.4

apcupsd.spec

index 9f933affb124bfd1681f13ad0de7156fa4ce5020..f4ec3c3f986f98a422a1ef772d87e70d83378711 100644 (file)
@@ -1,32 +1,25 @@
-Name: apcupsd
-Version: 3.5.8
-Release: 2
-Copyright: GPL v2
-Group: System Environment/Daemons
-Url: http://www.brisse.dk/site/apcupsd/
-Packager: Bert de Bruijn <bob@ccl.kuleuven.ac.be>
-Source: http://www.brisse.dk/site/apcupsd/download/%{name}-%{version}.src.tar.gz
-Patch0: apcups-initscript.patch
-Patch1: apcups-makefile.patch
-Summary: power management software for APC UPS hardware
-BuildRoot: /var/tmp/%{name}-root
-Prefix: /usr
-Prefix: /etc
-Prefix: /sbin
-Prefix: /bin
-Prefix: /var
-#Icon: apcupsd-logo.xpm
+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
+Patch0:                apcups-initscript.patch
+Patch1:                apcups-makefile.patch
+Summary:       power management software for APC UPS hardware
+URL:           http://www.brisse.dk/site/apcupsd/
+BuildRoot:     /tmp/%{name}-%{version}-root
+#Icon:         apcupsd-logo.xpm
 
 %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
+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.
 
 %prep
-%setup -n %{name}-%{version}.src
+%setup -q -n %{name}-%{version}.src
 %patch0 -p1
 %patch1 -p1
 
@@ -39,15 +32,17 @@ cat Makefile.orig \
 make linux
 
 %install
+rm -rf ${RPM_BUILD_ROOT}
+
 # Some issues :
 # - why doesn't the Makefile know that it should install *-linux ??
 # - make install tries to stop apcupsd. That's not necessary (buildroot) (hany: not issue anymore)
 
-mkdir -p ${RPM_BUILD_ROOT}/{sbin,bin,etc/rc.d/init.d,usr/man/man8,var/log}
+install -d ${RPM_BUILD_ROOT}/{sbin,bin,etc/rc.d/init.d,usr/man/man8,var/log}
 NAME="-linux" make install
 # hany: why this? we're just building. not installing
 #[ -x /sbin/powersc ] && /sbin/powersc RESTARTME
-gzip -9 -f ${RPM_BUILD_ROOT}/usr/man/*/*.?
+gzip -9nf \b ${RPM_BUILD_ROOT}/usr/man/*/*.?
 cp -f installs/apcupsd.conf ${RPM_BUILD_ROOT}/etc
 cp -f installs/apcups.rhs ${RPM_BUILD_ROOT}/etc/rc.d/init.d/apcups
 touch ${RPM_BUILD_ROOT}/var/log/apcupsd.log
@@ -82,13 +77,13 @@ echo correct invocation of /sbin/powersc .
 chkconfig --del apcups
 
 %files
-%defattr(-, root, root)
+%defattr(644,root,root,755)
 %attr(-, root, root) %doc README.NEW Changelog port.gif Statement.APCC
 %attr(-, root, root) %doc %{name}-%{version}.src.lsm
 %attr(-, root, root) %doc readmes/*
 %attr(-, root, root) %doc docs/apcupsd.docs
 %attr(-, root, root) %doc installs/halt.rhs installs/apcups.rhs installs/powersc
-%attr(644, root, man) /usr/man/man8/apcupsd.8.gz
+/usr/man/man8/apcupsd.8.gz
 %attr(755, root, bin)  /sbin/apcupsd
 %attr(755, root, root) /bin/apcaccess
 %attr(755, root, bin)  %config /sbin/powersc
@@ -96,13 +91,3 @@ chkconfig --del apcups
 %attr(755, root, root) %config /etc/rc.d/init.d/apcups
 %ghost /var/log/apcupsd.log
 %ghost /etc/apcupsd.status
-
-%changelog
-* Fri Aug  6 1999 Peter Hanecak <hanecak@megaloman.sk>
-- build process cleaned (so non-root users can do that smoothly)
-- build-root changed
-- %defattr
-
-* Sun Jun  6 1999 Bert de Bruijn <bob@ccl.kuleuven.ac.be>
-- new spec file, first rpm release since source release under GPL ?
-- use sed in %build to force buildroot.
This page took 0.084592 seconds and 4 git commands to generate.