summaryrefslogtreecommitdiffstats
path: root/specs/knutclient.spec.fedora.5
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 18:17:02 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-19 18:17:02 +0000
commitf867212c1762e156553d039319b904a17f7b563d (patch)
tree461c1a743b3ff8291e03360742dbbfb4cc0087e4 /specs/knutclient.spec.fedora.5
downloadknutclient-f867212c1762e156553d039319b904a17f7b563d.tar.gz
knutclient-f867212c1762e156553d039319b904a17f7b563d.zip
Added KDE3 version of knutclient
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1092914 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'specs/knutclient.spec.fedora.5')
-rw-r--r--specs/knutclient.spec.fedora.556
1 files changed, 56 insertions, 0 deletions
diff --git a/specs/knutclient.spec.fedora.5 b/specs/knutclient.spec.fedora.5
new file mode 100644
index 0000000..35a89e9
--- /dev/null
+++ b/specs/knutclient.spec.fedora.5
@@ -0,0 +1,56 @@
+Summary: NUT GUI Interface
+Name: knutclient
+Version: 0.9.5
+Release: 1
+License: GPL
+Vendor: Daniel Prynych <[email protected]>
+Url: http://www.knut.noveradsl.cz/knutclient
+Packager: Daniel Prynych <[email protected]>
+Group: Applications/System
+Prefix: /usr
+Source: knutclient-0.9.5.tar.gz
+BuildRoot: %{_tmppath}/build-root-%{name}
+
+%description
+Knutclient is a GUI interface for UPS system NUT
+
+%prep
+%setup
+CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} $LOCALFLAGS
+
+%build
+# Setup for parallel builds
+numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
+if [ "$numprocs" = "0" ]; then
+ numprocs=1
+fi
+
+make -j$numprocs
+
+%install
+make install-strip DESTDIR=$RPM_BUILD_ROOT
+
+cd $RPM_BUILD_ROOT
+
+#mkdir -p usr/share/applications/
+#cp -a usr/share/applnk/Applications/knutclient.desktop usr/share/applications/
+#rm -rf usr/share/applnk
+
+# as defattr point to root,root this will not work
+#chown desktop.desktop kde-knutclient.desktop
+
+cd $RPM_BUILD_ROOT
+
+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}
+
+%clean
+rm -rf $RPM_BUILD_ROOT/*
+rm -rf $RPM_BUILD_DIR/%{name}
+rm -rf ../file.list.%{name}
+
+
+%files -f ../file.list.%{name}
+%defattr(-,root,root,0755)
+