]> git.pld-linux.org Git - packages/PowerChutePlus.git/blobdiff - PowerChutePlus.spec
- spec adapterized.
[packages/PowerChutePlus.git] / PowerChutePlus.spec
index 7ebaeee0843a0d492aa15b090e2956acb2e9aa48..5b7305c00ef220c2dee387a9bd494ef028a532c4 100644 (file)
@@ -3,15 +3,17 @@ Name:         PowerChutePlus
 Version:       4.5.2.1
 Release:       2
 Copyright:     (c) 1999 APC, inc.
-Group:         Utilities/System
+Group:         Applications/System
+Group(de):     Applikationen/System
+Group(pl):     Aplikacje/System
 Source0:       ftp://ftp.apcc.com/apc/public/software/unix/linux/pcplus/4521/pc4521_glibc.tar
 Source1:       ftp://ftp.apcc.com/apc/public/software/unix/linux/pcplus/4521/pclinxug.pdf
 Source2:       upsd.init
-Source3:       PowerChutePlus-xpowerchute.sh
-Source4:       PowerChutePlus-Config.sh
-Source5:       PowerChutePlus-powerchute.ini
-Source6:       PowerChutePlus-powerchute.ini_templ
-Patch:         PowerChutePlus-fix-sh.patch
+Source3:       %{name}-xpowerchute.sh
+Source4:       %{name}-Config.sh
+Source5:       %{name}-powerchute.ini
+Source6:       %{name}-powerchute.ini_templ
+Patch0:                %{name}-fix-sh.patch
 ExclusiveOS:   linux
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,16 +40,16 @@ done
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/powerchute} \
        $RPM_BUILD_ROOT/etc/rc.d/init.d \
-       $RPM_BUILD_ROOT/usr/X11R6/{bin,lib/X11/{app-defaults,uid}}
+$RPM_BUILD_ROOT%{_prefix}/X11R6/{bin,lib/X11/{app-defaults,uid}}
 
 install %{SOURCE1} .
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/upsd
-install %{SOURCE3} $RPM_BUILD_ROOT/usr/X11R6/bin/xpowerchute
+install %{SOURCE3} $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xpowerchute
 install %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/powerchute/Config.sh
 install %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/powerchute/powerchute.ini_templ
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/powerchute.ini
+install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/powerchute.ini
 
-ln -s /etc/powerchute.ini $RPM_BUILD_ROOT%{_libdir}/powerchute/
+ln -s %{_sysconfdir}/powerchute.ini $RPM_BUILD_ROOT%{_libdir}/powerchute/
 
 install _upsd $RPM_BUILD_ROOT%{_sbindir}/upsd
 
@@ -69,9 +71,9 @@ install upsoff $RPM_BUILD_ROOT%{_libdir}/powerchute
 install upswrite $RPM_BUILD_ROOT%{_libdir}/powerchute
 install wall.sh $RPM_BUILD_ROOT%{_libdir}/powerchute
 install what_os.sh $RPM_BUILD_ROOT%{_libdir}/powerchute
-install pwrchute.uid $RPM_BUILD_ROOT/usr/X11R6/lib/X11/uid/
+install pwrchute.uid $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/uid/
 
-install pwrchute.ad $RPM_BUILD_ROOT/usr/X11R6/lib/X11/app-defaults/pwrchute
+install pwrchute.ad $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/app-defaults/pwrchute
 
 ln -s /var/run/upsd.pid $RPM_BUILD_ROOT%{_libdir}/powerchute/
 ln -s /var/run/bkupsd.pid $RPM_BUILD_ROOT%{_libdir}/powerchute/
@@ -119,7 +121,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc help/* apachesh.pdf language.txt.gz readme_apache.gz pclinxug.pdf
 %attr(754,root,root) /etc/rc.d/init.d/upsd
-%config(noreplace) %verify(not size mtime md5) /etc/powerchute.ini
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/powerchute.ini
 %attr(755,root,root) %{_sbindir}/upsd
 %attr(755,root,root) %{_libdir}/powerchute/Config.sh
 %attr(755,root,root) %{_libdir}/powerchute/_xpwrchute
@@ -142,8 +144,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/powerchute/what_os.sh
 %{_libdir}/powerchute/powerchute.ini
 %{_libdir}/powerchute/powerchute.ini_templ
-%attr(755,root,root) /usr/X11R6/bin/xpowerchute
-/usr/X11R6/lib/X11/app-defaults/*
-/usr/X11R6/lib/X11/uid/*
+%attr(755,root,root) %{_prefix}/X11R6/bin/xpowerchute
+%{_prefix}/X11R6/lib/X11/app-defaults/*
+%{_prefix}/X11R6/lib/X11/uid/*
 %config(noreplace) %verify(not size mtime md5) %{_libdir}/powerchute/upsd.pid
 %config(noreplace) %verify(not size mtime md5) %{_libdir}/powerchute/bkupsd.pid
This page took 0.042555 seconds and 4 git commands to generate.