KNutClient – visual client for UPS systems using NUT
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.6 KiB

Summary: NUT GUI Interface
Name: knutclient
Version: 0.9.5
Release: 1
License: GNU GPL
Vendor: Daniel Prynych <>
Packager: Daniel Prynych <>
Group: Applications/System
Prefix: /usr
Source: knutclient-0.9.5.tar.gz
BuildRoot: %{_tmppath}/build-root-%{name}
Knutclient is a GUI interface for UPS system NUT
make -f Makefile.cvs
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} $LOCALFLAGS
# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
make -j$numprocs
make install-strip DESTDIR=$RPM_BUILD_ROOT
#mkdir -p var/lib/menu/kde/Applications/Extras/Accessories/
#mkdir -p usr/share/applications/
#cp -a usr/share/applnk/Utilities/knutclient.desktop usr/share/applications/
#rm -rf usr/share/applnk
#cd var/lib/menu/kde/Applications/Extras/Accessories/
#ln -s /usr/share/applications/knutclient.desktop kde-knutclient.desktop
# as defattr point to root,root this will not work
#chown desktop.desktop kde-knutclient.desktop
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/%{name}
rm -rf ../file.list.%{name}
%files -f ../file.list.%{name}